Mercurial > repos > galaxyp > hardklor
diff hardklor.py @ 6:73fc27617b2e draft default tip
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tools/hardklor commit 44c3e37a12f60b01521d3e3f18b7f16664f954cc"
author | galaxyp |
---|---|
date | Tue, 07 Apr 2020 03:27:32 -0400 |
parents | d796e6613d19 |
children |
line wrap: on
line diff
--- a/hardklor.py Sat Aug 19 08:00:25 2017 -0400 +++ b/hardklor.py Tue Apr 07 03:27:32 2020 -0400 @@ -10,10 +10,10 @@ CONFIG_FILE = 'hk.conf' extension_lookup = { - 'mzml' : 'mzML', - 'mzxml' : 'mzXML', - 'ms1' : 'MS1', - } + 'mzml': 'mzML', + 'mzxml': 'mzXML', + 'ms1': 'MS1', +} # input: ms1_ext = sys.argv[1] @@ -33,7 +33,7 @@ ms1_ext = extension_lookup[ms1_ext] linkname = 'ms1_dsetlink.{0}'.format(ms1_ext) os.symlink(ms1_file, linkname) - ms1_file = linkname + ms1_file = linkname # load template and dump to config file with open(config_load) as fp: @@ -53,7 +53,7 @@ maxfeat=options['maxfeat'], inputfile=ms1_file, outputfile=output_file, - ) +) with open(CONFIG_FILE, 'w') as fp: fp.write(config_to_dump)