Mercurial > repos > pieterlukasse > prims_metabolomics2
comparison GCMS/library_lookup.py @ 22:f0c6feab06e7
fixed import match_library
author | linda.bakker@wur.nl <linda.bakker@wur.nl> |
---|---|
date | Wed, 03 Jun 2015 11:54:12 +0200 |
parents | f70b2c169e3a |
children |
comparison
equal
deleted
inserted
replaced
21:43902da5d00e | 22:f0c6feab06e7 |
---|---|
1 ''' | 1 ''' |
2 Logic for searching a Retention Index database file given output from NIST | 2 Logic for searching a Retention Index database file given output from NIST |
3 ''' | 3 ''' |
4 import os | |
5 import sys | |
6 import inspect | |
7 import re | |
8 import csv | |
9 | |
10 | |
11 #a not so perfect solution to import parent dir file match_library | |
12 currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) | |
13 parentdir = os.path.dirname(currentdir) | |
14 sys.path.append(parentdir) | |
4 import match_library | 15 import match_library |
5 import re | 16 |
6 import sys | |
7 import csv | |
8 | 17 |
9 __author__ = "Marcel Kempenaar" | 18 __author__ = "Marcel Kempenaar" |
10 __contact__ = "brs@nbic.nl" | 19 __contact__ = "brs@nbic.nl" |
11 __copyright__ = "Copyright, 2012, Netherlands Bioinformatics Centre" | 20 __copyright__ = "Copyright, 2012, Netherlands Bioinformatics Centre" |
12 __license__ = "MIT" | 21 __license__ = "MIT" |
301 | 310 |
302 | 311 |
303 def main(): | 312 def main(): |
304 ''' | 313 ''' |
305 Library Lookup main function | 314 Library Lookup main function |
306 ''' | 315 ''' |
307 library_file = sys.argv[1] | 316 library_file = sys.argv[1] |
308 nist_tabular_filename = sys.argv[2] | 317 nist_tabular_filename = sys.argv[2] |
309 ctype = sys.argv[3] | 318 ctype = sys.argv[3] |
310 polar = sys.argv[4] | 319 polar = sys.argv[4] |
311 outfile = sys.argv[5] | 320 outfile = sys.argv[5] |