Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metamorpheus initial commit #587

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
712 changes: 712 additions & 0 deletions tools/metamorpheus/macros.xml

Large diffs are not rendered by default.

65 changes: 65 additions & 0 deletions tools/metamorpheus/metamorpheus_calibration.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<tool id="metamorpheus_calibration" name="MetaMorpeus Calibration" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" python_template_version="3.5">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<tool id="metamorpheus_calibration" name="MetaMorpeus Calibration" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" python_template_version="3.5">
<tool id="metamorpheus_calibration" name="MetaMorpeus Calibration" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.01">

<description>identify peptides by their calibrate the m/z values of all peaks in the spectra</description>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="requirements" />
<command detect_errors="exit_code"><![CDATA[
@PREPARE_INPUTS@
@MERGE_TOMLS@
metamorpheus
-t tasksettings.toml
## -s #echo ' '.join($spectrum_names)#
-s $inputs_dir
-d #echo ' '.join($database_names)#
-o output
]]></command>
<configfiles>
<configfile name="default_toml"><![CDATA[#slurp
@DEFAULT_CALIBRATION_TOML@
]]></configfile>
<configfile name="user_toml">
@CALIBRATE_CONFIG@
@COMMON_CONFIG@
</configfile>
<configfile name="task_settings_toml">#slurp
</configfile>
</configfiles>
<inputs>
<expand macro="input_spectrums" multiple="true"/>
<expand macro="input_databases"/>
<expand macro="input_toml"/>
<expand macro="calibrate_params"/>
<expand macro="common_params"/>
</inputs>
<outputs>
<expand macro="output_settings_toml"/>
<data name="results" format="txt" label="${tool.name} on ${on_string} results.txt" from_work_dir="output/allresults.txt"/>
<data name="prose" format="txt" label="${tool.name} on ${on_string} prose.txt" from_work_dir="output/Task1CalibrationTask/prose.txt"/>
<expand macro="calibrated_outputs"/>
</outputs>
<tests>
<test>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add expect_num_outputs .. which is always a good idea if there are outputs with filters.

<param name="spectrums" ftype="mzml" value="SmallCalibratible_Yeast.mzML"/>
<param name="databases" ftype="fasta" value="SmallYeast.fasta"/>
<output name="results">
<assert_contents>
<has_text text="MS2 calibration datapoint count: 819" />
<has_text text="Engine type: CalibrationEngine" />
</assert_contents>
</output>
<output_collection name="calibrated_scans" type="list">
<element name="oe1">
<assert_contents>
<has_text_matching expression="^F\n$" />
</assert_contents>
</element>
</output_collection>

</test>
</tests>
<help><![CDATA[
@METAMORPHEUS_HELP@
]]></help>
<expand macro="citations" />
</tool>
64 changes: 64 additions & 0 deletions tools/metamorpheus/metamorpheus_g_ptm_d.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<tool id="metamorpheus_g_ptm_d" name="MetaMorpeus G-PTM-D" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" python_template_version="3.5">
<description>Post-translational modification (PTM) discovery</description>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="requirements" />
<command detect_errors="exit_code"><![CDATA[
@PREPARE_INPUTS@
@LN_CALIB_TOML@
@MERGE_TOMLS@
metamorpheus
-t tasksettings.toml
## -s #echo ' '.join($spectrum_names)#
-s $inputs_dir
-d #echo ' '.join($database_names)#
-o output
]]></command>
<configfiles>
<configfile name="default_toml"><![CDATA[#slurp
@DEFAULT_GPTMD_TOML@
]]></configfile>
<configfile name="user_toml">
@GPTMD_CONFIG@
@COMMON_CONFIG@
</configfile>
<configfile name="task_settings_toml">#slurp
</configfile>
</configfiles>
<inputs>
<expand macro="input_spectrums" multiple="true" filetype="Calibrated Spectrum"/>
<expand macro="calib_toml"/>
<expand macro="input_databases"/>
<expand macro="input_toml"/>
<expand macro="common_params"/>
</inputs>
<outputs>
<expand macro="output_settings_toml"/>
<data name="results" format="txt" label="${tool.name} on ${on_string} results.txt" from_work_dir="output/allresults.txt"/>
<data name="prose" format="txt" label="${tool.name} on ${on_string} prose.txt" from_work_dir="output/Task*GptmdTask/prose.txt"/>
<data name="db_xml" format="uniprotxml" label="${tool.name} on ${on_string} ${databases[0].name.rsplit('.',1)[0]}GPTMD.xml" from_work_dir="output/Task*GptmdTask/*GPTMD.xml"/>
<data name="psmtsv" format="tabular" label="${tool.name} on ${on_string} GPTMD_Candidates.psmtsv" from_work_dir="output/Task*GptmdTask/GPTMD_Candidates.psmtsv"/>
</outputs>
<tests>
<test>
<param name="spectrums" ftype="mzml" value="SmallCalibratible_Yeast-calib.mzML"/>
<param name="calib_tomls" ftype="toml" value="SmallCalibratible_Yeast-calib.toml"/>
<param name="databases" ftype="fasta" value="SmallYeast_uniprot.xml"/>
<output name="results">
<assert_contents>
<has_text text="Engine type: GptmdEngine" />
</assert_contents>
</output>
<output name="db_xml">
<assert_contents>
<has_text text="mzLibProteinDb" />
</assert_contents>
</output>
</test>
</tests>
<help><![CDATA[
@METAMORPHEUS_HELP@
]]></help>
<expand macro="citations" />
</tool>
72 changes: 72 additions & 0 deletions tools/metamorpheus/metamorpheus_search.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<tool id="metamorpheus_search" name="MetaMorpeus Database Search" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" python_template_version="3.5">
<description>identify peptides by their fragmentation spectra</description>
<macros>
<import>macros.xml</import>
</macros>
<expand macro="requirements" />
<command detect_errors="exit_code"><![CDATA[
@PREPARE_INPUTS@
@LN_CALIB_TOML@
@MERGE_TOMLS@
metamorpheus
-t tasksettings.toml
-s ${inputs_dir}
-d #echo ' '.join($database_names)#
-o output
]]></command>
<configfiles>
<configfile name="default_toml"><![CDATA[#slurp
@DEFAULT_SEARCH_TOML@
]]></configfile>
<configfile name="user_toml">
@SEARCH_CONFIG@
@COMMON_CONFIG@
</configfile>
<configfile name="task_settings_toml">#slurp
</configfile>
</configfiles>
<inputs>
<expand macro="input_spectrums" multiple="true" filetype="Calibrated Spectrum"/>
<expand macro="calib_toml"/>
<expand macro="input_databases"/>
<expand macro="input_toml"/>
<expand macro="common_params"/>
<expand macro="search_params"/>
</inputs>
<outputs>
<expand macro="output_settings_toml"/>
<data name="results" format="txt" label="${tool.name} on ${on_string} results.txt" from_work_dir="output/allresults.txt"/>
<data name="prose" format="txt" label="${tool.name} on ${on_string} prose.txt" from_work_dir="output/Task*SearchTask/prose.txt"/>
<data name="allpsms" format="tabular" label="${tool.name} on ${on_string} AllPSMs.psmtsv" from_work_dir="output/Task*SearchTask/AllPSMs.psmtsv"/>
<data name="allpsms_percolator" format="tabular" label="${tool.name} on ${on_string} AllPSMs_FormattedForPercolator.tab" from_work_dir="output/Task*SearchTask/AllPSMs_FormattedForPercolator.tab"/>
<data name="allpeptides" format="tabular" label="${tool.name} on ${on_string} AllPeptides.psmtsv" from_work_dir="output/Task*SearchTask/AllPeptides.psmtsv"/>
<data name="allquantifiedpeaks" format="tabular" label="${tool.name} on ${on_string} AllQuantifiedPeaks.tsv" from_work_dir="output/Task*SearchTask/AllQuantifiedPeaks.tsv">
</data>
<data name="allquantifiedpeptides" format="tabular" label="${tool.name} on ${on_string} AllQuantifiedPeptides.tsv" from_work_dir="output/Task*SearchTask/AllQuantifiedPeptides.tsv">
</data>
<data name="allquantifiedprotein" format="tabular" label="${tool.name} on ${on_string} AllQuantifiedProteinGroups.tsv" from_work_dir="output/Task*SearchTask/AllQuantifiedProteinGroups.tsv">
</data>
<expand macro="search_collection_outputs"/>
</outputs>
<tests>
<test>
<param name="spectrums" ftype="mzml" value="SmallCalibratible_Yeast-calib.mzML"/>
<param name="calib_tomls" ftype="toml" value="SmallCalibratible_Yeast-calib.toml"/>
<param name="databases" ftype="fasta" value="SmallYeastGPTMD.xml"/>
<output name="results">
<assert_contents>
<has_text text="Engine type: ProteinScoringAndFdrEngine" />
</assert_contents>
</output>
<output name="allpsms">
<assert_contents>
<has_text text="KGNNTANATN[Common Artifact:Deamidation on N]SANTVQK" />
</assert_contents>
</output>
</test>
</tests>
<help><![CDATA[
@METAMORPHEUS_HELP@
]]></help>
<expand macro="citations" />
</tool>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8,122 changes: 8,122 additions & 0 deletions tools/metamorpheus/test-data/SmallCalibratible_Yeast-calib.mzML

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PrecursorMassTolerance = "±3.7699 PPM"
ProductMassTolerance = "±8.4670 PPM"
Loading