yoavram / curveball

Predicting microbial growth in a mixed culture from growth curve data
http://curveball.yoavram.com
Other
14 stars 5 forks source link

Error when blank strain or ref strain are not in plate #26

Closed yoavram closed 9 years ago

yoavram commented 9 years ago

Error when blank strain or ref strain are not in plate

C:\Users\user>curveball analyse file.mat
_all_33_9 -o testing2.csv --plate_folder C:\Users\user\Desktop\CurveBall_Anal
ysis --plate_file plate_6_strains.csv
Processing files:  [#####-------------------------------]   14%
Traceback (most recent call last):
  File "C:\Anaconda\Scripts\curveball-script.py", line 9, in <module>
    load_entry_point('curveball==0.1.2.dev0', 'console_scripts', 'curveball')()
  File "C:\Anaconda\lib\site-packages\click\core.py", line 700, in __call__
    return self.main(*args, **kwargs)
  File "C:\Anaconda\lib\site-packages\click\core.py", line 680, in main
    rv = self.invoke(ctx)
  File "C:\Anaconda\lib\site-packages\click\core.py", line 1027, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Anaconda\lib\site-packages\click\core.py", line 873, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Anaconda\lib\site-packages\click\core.py", line 508, in invoke
    return callback(*args, **kwargs)
  File "C:\Anaconda\lib\site-packages\curveball\scripts\runner.py", line 116, in
 analyse
    file_results = process_file(filepath, plate, blank_strain, ref_strain, max_t
ime)
  File "C:\Anaconda\lib\site-packages\curveball\scripts\runner.py", line 155, in
 process_file
    strains.remove(blank_strain)
ValueError: list.remove(x): x not in list
yoavram commented 9 years ago

plate file is at: https://gist.github.com/yoavram/77b1fa5171dab2c9851d

test with curveball analyse data\Tecan_210115.xlsx --plate_file plate_6_strains.csv

yoavram commented 9 years ago

Need to check existence of blank strain and ref strain. Non existent blank strain also causes #32 IMO.