Miscellaneous |
Version lineage of this tool (guids ordered most recent to oldest) |
toolshed.g2.bx.psu.edu/repos/galaxyp/openms_accuratemasssearch/AccurateMassSearch/3.1+galaxy0 (this tool) |
toolshed.g2.bx.psu.edu/repos/galaxyp/openms_accuratemasssearch/AccurateMassSearch/2.8+galaxy0 |
toolshed.g2.bx.psu.edu/repos/galaxyp/openms_accuratemasssearch/AccurateMassSearch/2.6+galaxy0 |
toolshed.g2.bx.psu.edu/repos/galaxyp/openms_accuratemasssearch/AccurateMassSearch/2.5+galaxy0 |
toolshed.g2.bx.psu.edu/repos/galaxyp/openms_accuratemasssearch/AccurateMassSearch/2.3.0 |
toolshed.g2.bx.psu.edu/repos/galaxyp/openms_accuratemasssearch/AccurateMassSearch/2.2.0 |
toolshed.g2.bx.psu.edu/repos/galaxyp/openms_accuratemasssearch/AccurateMassSearch/2.1.0 |
AccurateMassSearch |
Requirements (dependencies defined in the <requirements> tag set) |
name | version | type |
openms | 3.1 | package |
openms-thirdparty | 3.1 | package |
blast | 2.14.1 | package |
ctdopts | 1.5 | package |
Additional information about this tool |
#def quote(s): #set $s = [ _ for _ in $s.split(" ") if _ != "" ] #set $q = False #for $i, $p in enumerate($s): #if $p == "": #continue #end if #if $p.startswith('"'): #set $q = True #end if ## #if p.startswith('-'): ## #set p = "\\" + p ## #elif p.startswith('"-'): ## #set p = "\\" + p[1:] ## #end if #if not $q: #set $s[i] = '"%s"' % p #end if #if $p.endswith('"'): #set $q = False #end if #end for #return " ".join($s) #end def #def oms2gxyext(o) #set m={'txt': 'txt', 'tsv': 'tabular', 'bioml': 'xml', 'consensusXML': 'consensusxml', 'csv': 'csv', 'dta': 'dta', 'dta2d': 'dta2d', 'edta': 'edta', 'fa': 'fasta', 'fas': 'fasta', 'fasta': 'fasta', 'FASTA': 'fasta', 'featureXML': 'featurexml', 'featurexml': 'featurexml', 'html': 'html', 'HTML': 'html', 'idXML': 'idxml', 'json': 'json', 'kroenik': 'kroenik', 'mascotXML': 'mascotxml', 'mgf': 'mgf', 'mrm': 'mrm', 'ms': 'sirius.ms', 'ms2': 'ms2', 'msp': 'msp', 'mzData': 'mzdata', 'mzid': 'mzid', 'mzML': 'mzml', 'mzml': 'mzml', 'mzq': 'mzq', 'mzQC': 'mzqc', 'mzTab': 'mztab', 'mzXML': 'mzxml', 'novor': 'txt', 'obo': 'obo', 'oms': 'sqlite', 'omssaXML': 'idxml', 'osw': 'osw', 'OSW': 'osw', 'params': 'txt', 'paramXML': 'paramxml', 'peplist': 'peplist', 'pep.xml': 'pepxml', 'pepXML': 'pepxml', 'png': 'png', 'PNG': 'png', 'protXML': 'protxml', 'psms': 'psms', 'pqp': 'pqp', 'qcML': 'qcml', 'spec.xml': 'spec.xml', 'splib': 'splib', 'sqMass': 'sqmass', 'tandem.xml': 'tandem', 'trafoXML': 'trafoxml', 'traML': 'traml', 'TraML': 'traml', 'tab': 'tabular', 'raw': 'thermo.raw', 'xls': 'tsv', 'XML': 'xml', 'xml': 'xml', 'xquest.xml': 'xquest.xml', 'xsd': 'xsd', 'zip': 'zip'} #return m[o] #end def #def gxy2omsext(g) #set m={'txt': 'txt', 'tabular': 'tsv', 'xml': 'bioml', 'consensusxml': 'consensusXML', 'csv': 'csv', 'dta': 'dta', 'dta2d': 'dta2d', 'edta': 'edta', 'fasta': 'fa', 'featurexml': 'featureXML', 'html': 'html', 'idxml': 'idXML', 'json': 'json', 'kroenik': 'kroenik', 'mascotxml': 'mascotXML', 'mgf': 'mgf', 'mrm': 'mrm', 'sirius.ms': 'ms', 'ms2': 'ms2', 'msp': 'msp', 'mzdata': 'mzData', 'mzid': 'mzid', 'mzml': 'mzML', 'mzq': 'mzq', 'mzqc': 'mzQC', 'mztab': 'mzTab', 'mzxml': 'mzXML', 'obo': 'obo', 'sqlite': 'oms', 'osw': 'osw', 'paramxml': 'paramXML', 'peff': 'fasta', 'peplist': 'peplist', 'pepxml': 'pep.xml', 'png': 'png', 'protxml': 'protXML', 'psms': 'psms', 'pqp': 'pqp', 'qcml': 'qcML', 'spec.xml': 'spec.xml', 'splib': 'splib', 'sqmass': 'sqMass', 'tandem': 'tandem.xml', 'trafoxml': 'trafoXML', 'traml': 'traML', 'thermo.raw': 'raw', 'tsv': 'xls', 'xquest.xml': 'xquest.xml', 'xsd': 'xsd', 'zip': 'zip'} #return m[g] #end def #import re ## Preprocessing mkdir in && cp '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' && mkdir out && #if "out_annotation_FLAG" in str($OPTIONAL_OUTPUTS).split(',') mkdir out_annotation && #end if #if $positive_adducts: mkdir positive_adducts && cp '$positive_adducts' 'positive_adducts/${re.sub("[^\w\-_]", "_", $positive_adducts.element_identifier)}.$gxy2omsext($positive_adducts.ext)' && #end if #if $negative_adducts: mkdir negative_adducts && cp '$negative_adducts' 'negative_adducts/${re.sub("[^\w\-_]", "_", $negative_adducts.element_identifier)}.$gxy2omsext($negative_adducts.ext)' && #end if #if $db.mapping_cond.mapping: mkdir db.mapping_cond.mapping && #if $db.mapping_cond.mapping_select == "no" mkdir ${' '.join(["'db.mapping_cond.mapping/%s'" % (i) for i, f in enumerate($db.mapping_cond.mapping) if f])} && ${' '.join(["cp '%s' 'db.mapping_cond.mapping/%s/%s.%s' && " % (f, i, re.sub('[^\w\-_]', '_', f.element_identifier), $gxy2omsext(f.ext)) for i, f in enumerate($db.mapping_cond.mapping) if f])} #else cp '$db.mapping_cond.mapping' 'db.mapping_cond.mapping/${re.sub("[^\w\-_]", "_", $db.mapping_cond.mapping.element_identifier)}.$gxy2omsext($db.mapping_cond.mapping.ext)' && #end if #end if #if $db.struct_cond.struct: mkdir db.struct_cond.struct && #if $db.struct_cond.struct_select == "no" mkdir ${' '.join(["'db.struct_cond.struct/%s'" % (i) for i, f in enumerate($db.struct_cond.struct) if f])} && ${' '.join(["cp '%s' 'db.struct_cond.struct/%s/%s.%s' && " % (f, i, re.sub('[^\w\-_]', '_', f.element_identifier), $gxy2omsext(f.ext)) for i, f in enumerate($db.struct_cond.struct) if f])} #else cp '$db.struct_cond.struct' 'db.struct_cond.struct/${re.sub("[^\w\-_]", "_", $db.struct_cond.struct.element_identifier)}.$gxy2omsext($db.struct_cond.struct.ext)' && #end if #end if ## Main program call set -o pipefail && AccurateMassSearch -write_ctd ./ && python3 '$__tool_directory__/fill_ctd.py' 'AccurateMassSearch.ctd' '$args_json' '$hardcoded_json' && AccurateMassSearch -ini AccurateMassSearch.ctd -in 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' -out 'out/output.${gxy2omsext("mztab")}' #if "out_annotation_FLAG" in str($OPTIONAL_OUTPUTS).split(',') -out_annotation 'out_annotation/output.${out_annotation_type}' #end if #if $positive_adducts: -positive_adducts 'positive_adducts/${re.sub("[^\w\-_]", "_", $positive_adducts.element_identifier)}.$gxy2omsext($positive_adducts.ext)' #end if #if $negative_adducts: -negative_adducts 'negative_adducts/${re.sub("[^\w\-_]", "_", $negative_adducts.element_identifier)}.$gxy2omsext($negative_adducts.ext)' #end if #if $db.mapping_cond.mapping: -db:mapping #if $db.mapping_cond.mapping_select == "no" ${' '.join(["'db.mapping_cond.mapping/%s/%s.%s'"%(i, re.sub('[^\w\-_]', '_', f.element_identifier), $gxy2omsext(f.ext)) for i, f in enumerate($db.mapping_cond.mapping) if f])} #else 'db.mapping_cond.mapping/${re.sub("[^\w\-_]", "_", $db.mapping_cond.mapping.element_identifier)}.$gxy2omsext($db.mapping_cond.mapping.ext)' #end if #end if #if $db.struct_cond.struct: -db:struct #if $db.struct_cond.struct_select == "no" ${' '.join(["'db.struct_cond.struct/%s/%s.%s'"%(i, re.sub('[^\w\-_]', '_', f.element_identifier), $gxy2omsext(f.ext)) for i, f in enumerate($db.struct_cond.struct) if f])} #else 'db.struct_cond.struct/${re.sub("[^\w\-_]", "_", $db.struct_cond.struct.element_identifier)}.$gxy2omsext($db.struct_cond.struct.ext)' #end if #end if #if len(str($OPTIONAL_OUTPUTS).split(',')) == 0 | tee '$stdout' #end if ## Postprocessing && mv 'out/output.${gxy2omsext("mztab")}' '$out' #if "out_annotation_FLAG" in str($OPTIONAL_OUTPUTS).split(',') && mv 'out_annotation/output.${out_annotation_type}' '$out_annotation' #end if #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS && mv 'AccurateMassSearch.ctd' '$ctd_out' #end if
Functional tests |
name | inputs | outputs | required files |
Test-1 |
in: ConsensusMapNormalizer_input.consensusXML positive_adducts: CHEMISTRY/PositiveAdducts.tsv negative_adducts: CHEMISTRY/NegativeAdducts.tsv db|mapping_cond|mapping: CHEMISTRY/HMDBMappingFile.tsv db|struct_cond|struct: CHEMISTRY/HMDB2StructMapping.tsv algorithm|mass_error_value: 5.0 algorithm|mass_error_unit: ppm algorithm|ionization_mode: positive algorithm|isotopic_similarity: False algorithm|use_feature_adducts: False algorithm|keep_unidentified_masses: True algorithm|id_format: legacy algorithm|mzTab|exportIsotopeIntensities: False adv_opts|force: False adv_opts|test: true OPTIONAL_OUTPUTS: ctd_out_FLAG |
name: value name: value |
ConsensusMapNormalizer_input.consensusXML CHEMISTRY/PositiveAdducts.tsv CHEMISTRY/NegativeAdducts.tsv CHEMISTRY/HMDBMappingFile.tsv CHEMISTRY/HMDB2StructMapping.tsv value |
Test-2 |
in: AccurateMassSearch_2_input.featureXML out_annotation_type: featureXML positive_adducts: AMS_PositiveAdducts.tsv negative_adducts: AMS_NegativeAdducts.tsv db|mapping_cond|mapping: AMS_test_Mapping.tsv db|struct_cond|struct: AMS_test_Struct.tsv algorithm|mass_error_value: 5.0 algorithm|mass_error_unit: ppm algorithm|ionization_mode: positive algorithm|isotopic_similarity: False algorithm|use_feature_adducts: False algorithm|keep_unidentified_masses: False algorithm|id_format: legacy algorithm|mzTab|exportIsotopeIntensities: True adv_opts|force: False adv_opts|test: true OPTIONAL_OUTPUTS: ['ctd_out_FLAG', 'out_annotation_FLAG'] |
name: value name: value name: value |
AccurateMassSearch_2_input.featureXML AMS_PositiveAdducts.tsv AMS_NegativeAdducts.tsv AMS_test_Mapping.tsv AMS_test_Struct.tsv value |
Test-3 |
in: AccurateMassSearch_2_input.featureXML out_annotation_type: featureXML positive_adducts: AMS_PositiveAdducts.tsv negative_adducts: AMS_NegativeAdducts.tsv db|mapping_cond|mapping: AMS_test_Mapping.tsv db|struct_cond|struct: AMS_test_Struct.tsv algorithm|mass_error_value: 5.0 algorithm|mass_error_unit: ppm algorithm|ionization_mode: positive algorithm|isotopic_similarity: False algorithm|use_feature_adducts: False algorithm|keep_unidentified_masses: True algorithm|id_format: legacy algorithm|mzTab|exportIsotopeIntensities: False adv_opts|force: False adv_opts|test: true OPTIONAL_OUTPUTS: ['ctd_out_FLAG', 'out_annotation_FLAG'] |
name: value name: value name: value |
AccurateMassSearch_2_input.featureXML AMS_PositiveAdducts.tsv AMS_NegativeAdducts.tsv AMS_test_Mapping.tsv AMS_test_Struct.tsv value |
Test-4 |
in: AccurateMassSearch_2_input.featureXML out_annotation_type: oms positive_adducts: AMS_PositiveAdducts.tsv negative_adducts: AMS_NegativeAdducts.tsv db|mapping_cond|mapping: AMS_test_Mapping.tsv db|struct_cond|struct: AMS_test_Struct.tsv algorithm|mass_error_value: 5.0 algorithm|mass_error_unit: ppm algorithm|ionization_mode: positive algorithm|isotopic_similarity: False algorithm|use_feature_adducts: False algorithm|keep_unidentified_masses: True algorithm|id_format: ID algorithm|mzTab|exportIsotopeIntensities: False adv_opts|force: False adv_opts|test: true OPTIONAL_OUTPUTS: ['ctd_out_FLAG', 'out_annotation_FLAG'] |
name: value name: value name: value |
AccurateMassSearch_2_input.featureXML AMS_PositiveAdducts.tsv AMS_NegativeAdducts.tsv AMS_test_Mapping.tsv AMS_test_Struct.tsv value |
Test-5 |
in: AccurateMassSearch_2_input.featureXML out_annotation_type: featureXML positive_adducts: AMS_PositiveAdducts.tsv negative_adducts: AMS_NegativeAdducts.tsv db|mapping_cond|mapping: AMS_test_Mapping.tsv db|struct_cond|struct: AMS_test_Struct.tsv algorithm|mass_error_value: 5.0 algorithm|mass_error_unit: ppm algorithm|ionization_mode: positive algorithm|isotopic_similarity: False algorithm|use_feature_adducts: False algorithm|keep_unidentified_masses: True algorithm|id_format: ID algorithm|mzTab|exportIsotopeIntensities: False adv_opts|force: False adv_opts|test: true OPTIONAL_OUTPUTS: ['ctd_out_FLAG', 'out_annotation_FLAG'] |
name: value name: value name: value |
AccurateMassSearch_2_input.featureXML AMS_PositiveAdducts.tsv AMS_NegativeAdducts.tsv AMS_test_Mapping.tsv AMS_test_Struct.tsv value |