Miscellaneous |
Version lineage of this tool (guids ordered most recent to oldest) |
toolshed.g2.bx.psu.edu/repos/galaxyp/openms_internalcalibration/InternalCalibration/2.8+galaxy0 (this tool) |
toolshed.g2.bx.psu.edu/repos/galaxyp/openms_internalcalibration/InternalCalibration/2.6+galaxy0 |
toolshed.g2.bx.psu.edu/repos/galaxyp/openms_internalcalibration/InternalCalibration/2.5+galaxy0 |
toolshed.g2.bx.psu.edu/repos/galaxyp/openms_internalcalibration/InternalCalibration/2.3.0 |
toolshed.g2.bx.psu.edu/repos/galaxyp/openms_internalcalibration/InternalCalibration/2.2.0.1 |
toolshed.g2.bx.psu.edu/repos/galaxyp/openms_internalcalibration/InternalCalibration/2.1.0 |
InternalCalibration |
Requirements (dependencies defined in the <requirements> tag set) |
name | version | type |
openms | 2.8 | package |
openms-thirdparty | 2.8 | package |
omssa | 2.1.9 | package |
blast | 2.13.0 | package |
ctdopts | 1.4 | 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': 'xml'} #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'} #return m[g] #end def #import re ## Preprocessing mkdir in && ln -s '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' && mkdir out && #if $cal.id_in: mkdir cal.id_in && ln -s '$cal.id_in' 'cal.id_in/${re.sub("[^\w\-_]", "_", $cal.id_in.element_identifier)}.$gxy2omsext($cal.id_in.ext)' && #end if #if $cal.lock_in: mkdir cal.lock_in && ln -s '$cal.lock_in' 'cal.lock_in/${re.sub("[^\w\-_]", "_", $cal.lock_in.element_identifier)}.$gxy2omsext($cal.lock_in.ext)' && #end if #if "lock_out_FLAG" in str($OPTIONAL_OUTPUTS).split(',') mkdir cal_lock_out && #end if #if "lock_fail_out_FLAG" in str($OPTIONAL_OUTPUTS).split(',') mkdir cal_lock_fail_out && #end if #if "models_FLAG" in str($OPTIONAL_OUTPUTS).split(',') mkdir quality_control_models && #end if #if "models_plot_FLAG" in str($OPTIONAL_OUTPUTS).split(',') mkdir quality_control_models_plot && #end if #if "residuals_FLAG" in str($OPTIONAL_OUTPUTS).split(',') mkdir quality_control_residuals && #end if #if "residuals_plot_FLAG" in str($OPTIONAL_OUTPUTS).split(',') mkdir quality_control_residuals_plot && #end if ## Main program call set -o pipefail && InternalCalibration -write_ctd ./ && python3 '$__tool_directory__/fill_ctd.py' 'InternalCalibration.ctd' '$args_json' '$hardcoded_json' && InternalCalibration -ini InternalCalibration.ctd -in 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' -out 'out/output.${gxy2omsext("mzml")}' #if $cal.id_in: -cal:id_in 'cal.id_in/${re.sub("[^\w\-_]", "_", $cal.id_in.element_identifier)}.$gxy2omsext($cal.id_in.ext)' #end if #if $cal.lock_in: -cal:lock_in 'cal.lock_in/${re.sub("[^\w\-_]", "_", $cal.lock_in.element_identifier)}.$gxy2omsext($cal.lock_in.ext)' #end if #if "lock_out_FLAG" in str($OPTIONAL_OUTPUTS).split(',') -cal:lock_out 'cal_lock_out/output.${gxy2omsext("mzml")}' #end if #if "lock_fail_out_FLAG" in str($OPTIONAL_OUTPUTS).split(',') -cal:lock_fail_out 'cal_lock_fail_out/output.${gxy2omsext("mzml")}' #end if #if "models_FLAG" in str($OPTIONAL_OUTPUTS).split(',') -quality_control:models 'quality_control_models/output.${gxy2omsext("csv")}' #end if #if "models_plot_FLAG" in str($OPTIONAL_OUTPUTS).split(',') -quality_control:models_plot 'quality_control_models_plot/output.${gxy2omsext("png")}' #end if #if "residuals_FLAG" in str($OPTIONAL_OUTPUTS).split(',') -quality_control:residuals 'quality_control_residuals/output.${gxy2omsext("csv")}' #end if #if "residuals_plot_FLAG" in str($OPTIONAL_OUTPUTS).split(',') -quality_control:residuals_plot 'quality_control_residuals_plot/output.${gxy2omsext("png")}' #end if #if len(str($OPTIONAL_OUTPUTS).split(',')) == 0 | tee '$stdout' #end if ## Postprocessing && mv 'out/output.${gxy2omsext("mzml")}' '$out' #if "lock_out_FLAG" in str($OPTIONAL_OUTPUTS).split(',') && mv 'cal_lock_out/output.${gxy2omsext("mzml")}' '$cal_lock_out' #end if #if "lock_fail_out_FLAG" in str($OPTIONAL_OUTPUTS).split(',') && mv 'cal_lock_fail_out/output.${gxy2omsext("mzml")}' '$cal_lock_fail_out' #end if #if "models_FLAG" in str($OPTIONAL_OUTPUTS).split(',') && mv 'quality_control_models/output.${gxy2omsext("csv")}' '$quality_control_models' #end if #if "models_plot_FLAG" in str($OPTIONAL_OUTPUTS).split(',') && mv 'quality_control_models_plot/output.${gxy2omsext("png")}' '$quality_control_models_plot' #end if #if "residuals_FLAG" in str($OPTIONAL_OUTPUTS).split(',') && mv 'quality_control_residuals/output.${gxy2omsext("csv")}' '$quality_control_residuals' #end if #if "residuals_plot_FLAG" in str($OPTIONAL_OUTPUTS).split(',') && mv 'quality_control_residuals_plot/output.${gxy2omsext("png")}' '$quality_control_residuals_plot' #end if #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS && mv 'InternalCalibration.ctd' '$ctd_out' #end if
Functional tests |
name | inputs | outputs | required files |
Test-1 |
in: InternalCalibration_1_BSA1.mzML ppm_match_tolerance: 25.0 ms_level: 1 RT_chunking: -1.0 cal|id_in: InternalCalibration_1_BSA1_OMSSA.idXML cal|lock_require_mono: False cal|lock_require_iso: False cal|model_type: linear RANSAC|enabled: True RANSAC|threshold: 1.0 RANSAC|pc_inliers: 30 RANSAC|iter: 500 goodness|median: 4.0 goodness|MAD: 2.0 adv_opts|force: False adv_opts|test: true OPTIONAL_OUTPUTS: ['ctd_out_FLAG', 'models_FLAG', 'residuals_FLAG'] |
name: value name: value name: value name: value |
InternalCalibration_1_BSA1.mzML InternalCalibration_1_BSA1_OMSSA.idXML value |
Test-2 |
in: InternalCalibration_2_lockmass.mzML.gz ppm_match_tolerance: 25.0 ms_level: 1 2 3 RT_chunking: 60.0 cal|lock_in: InternalCalibration_2_lock.csv cal|lock_require_mono: True cal|lock_require_iso: False cal|model_type: linear RANSAC|enabled: False RANSAC|threshold: 10.0 RANSAC|pc_inliers: 30 RANSAC|iter: 70 goodness|median: 4.0 goodness|MAD: 2.0 adv_opts|force: False adv_opts|test: true OPTIONAL_OUTPUTS: ['ctd_out_FLAG', 'models_FLAG', 'residuals_FLAG'] |
name: value name: value name: value name: value |
InternalCalibration_2_lockmass.mzML.gz InternalCalibration_2_lock.csv value |