Mercurial > repos > pieterlukasse > prims_metabolomics2
comparison GCMS/library_lookup.py @ 20:f70b2c169e3a
fixed select column option
author | linda.bakker@wur.nl <linda.bakker@wur.nl> |
---|---|
date | Fri, 01 May 2015 14:08:26 +0200 |
parents | 4393f982d18f |
children | f0c6feab06e7 |
comparison
equal
deleted
inserted
replaced
19:1cfe2b57d7f4 | 20:f70b2c169e3a |
---|---|
21 (data, header) = match_library.read_library(library_file) | 21 (data, header) = match_library.read_library(library_file) |
22 # Test for presence of required columns | 22 # Test for presence of required columns |
23 if ('columntype' not in header or | 23 if ('columntype' not in header or |
24 'columnphasetype' not in header or | 24 'columnphasetype' not in header or |
25 'cas' not in header): | 25 'cas' not in header): |
26 raise IOError('Missing columns in ', library_file) | 26 raise IOError('Missing columns (create_lookup_table) in ', library_file) |
27 | 27 |
28 column_type_column = header.index("columntype") | 28 column_type_column = header.index("columntype") |
29 statphase_column = header.index("columnphasetype") | 29 statphase_column = header.index("columnphasetype") |
30 cas_column = header.index("cas") | 30 cas_column = header.index("cas") |
31 | 31 |