comparison msstats.xml @ 1:3e2606fa85bf draft

"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msstats commit fa543ac667f63409bfb2e28fd6c711e74d828a79"
author galaxyp
date Sat, 25 Jul 2020 14:49:56 -0400
parents 80b40b9ab835
children 52ac6fde9a5b
comparison
equal deleted inserted replaced
0:80b40b9ab835 1:3e2606fa85bf
1 <tool id="msstats" name="MSstats" version="@VERSION@.0" python_template_version="3.5"> 1 <tool id="msstats" name="MSstats" version="@VERSION@.0">
2 <description>statistical relative protein significance analysis in DDA, SRM and DIA Mass Spectrometry</description> 2 <description>statistical relative protein significance analysis in DDA, SRM and DIA Mass Spectrometry</description>
3 <macros> 3 <macros>
4 <token name="@VERSION@">3.20.1</token> 4 <token name="@VERSION@">3.20.1</token>
5 <xml name="useUniquePeptide"> 5 <xml name="useUniquePeptide">
6 <param name="useUniquePeptide" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="true" label="remove peptides that are assigned for more than one proteins" help="We assume to use unique peptide for each protein"/> 6 <param name="useUniquePeptide" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="true" label="remove peptides that are assigned for more than one proteins" help="We assume to use unique peptide for each protein"/>
25 <requirements> 25 <requirements>
26 <requirement type="package" version="@VERSION@">bioconductor-msstats</requirement> 26 <requirement type="package" version="@VERSION@">bioconductor-msstats</requirement>
27 </requirements> 27 </requirements>
28 <command detect_errors="exit_code"><![CDATA[ 28 <command detect_errors="exit_code"><![CDATA[
29 cat '$msstats_script' > '$r_script' && 29 cat '$msstats_script' > '$r_script' &&
30 cat '$msstats_script' &&
31 Rscript '$msstats_script' 30 Rscript '$msstats_script'
32 && cat msstats*.log > $log 31 && cat msstats*.log > '$log'
33 ]]></command> 32 ]]></command>
34 <configfiles> 33 <configfiles>
35 <configfile name="msstats_script"><![CDATA[ 34 <configfile name="msstats_script"><![CDATA[
36 library('MSstats', warn.conflicts = F, quietly = T, verbose = F) 35 library('MSstats', warn.conflicts = F, quietly = T, verbose = F)
37 36
215 214
216 #if 'model_qc' in $group.select_outputs 215 #if 'model_qc' in $group.select_outputs
217 write.table(comparisons\$ModelQC, "ModelQC.tsv", sep = "\t", quote = F, row.names = F, dec = ".") 216 write.table(comparisons\$ModelQC, "ModelQC.tsv", sep = "\t", quote = F, row.names = F, dec = ".")
218 #end if 217 #end if
219 218
220 ## TODO: transform fittedmodel to table
221 ##class(DDA2009.comparisons$fittedmodel) # list, probably good to output this somehow
222
223 ## Visualizations: 219 ## Visualizations:
224 220
225 #if 'qqplot' in $group.select_outputs 221 #if 'qqplot' in $group.select_outputs
226 \# normal quantile-quantile plots 222 \# normal quantile-quantile plots
227 modelBasedQCPlots(data=comparisons, type="QQPlots", 223 modelBasedQCPlots(data=comparisons, type="QQPlots",
260 <inputs> 256 <inputs>
261 <conditional name="input"> 257 <conditional name="input">
262 <param name="input_src" type="select" label="input source"> 258 <param name="input_src" type="select" label="input source">
263 <option value="MSstats">MStats 10 column format</option> 259 <option value="MSstats">MStats 10 column format</option>
264 <option value="MaxQuant">MaxQuant</option> 260 <option value="MaxQuant">MaxQuant</option>
261 <!--
265 <option value="OpenMS">OpenMS</option> 262 <option value="OpenMS">OpenMS</option>
263 -->
266 <option value="OpenSWATH">OpenSWATH</option> 264 <option value="OpenSWATH">OpenSWATH</option>
267 </param> 265 </param>
268 <when value="MSstats"> 266 <when value="MSstats">
269 <param name="msstats_input" type="data" format="tabular,csv" label="MSstats 10-column input"/> 267 <param name="msstats_input" type="data" format="tabular,csv" label="MSstats 10-column input"/>
270 </when> 268 </when>
283 <param name="removeMpeptides" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="true" label="Remove the peptides including 'M' sequence"/> 281 <param name="removeMpeptides" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="true" label="Remove the peptides including 'M' sequence"/>
284 <param name="removeOxidationMpeptides" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="true" label="Remove the peptides including Oxidized 'M' sequence"/> 282 <param name="removeOxidationMpeptides" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="true" label="Remove the peptides including Oxidized 'M' sequence"/>
285 <expand macro="removeProtein_with1Peptide"/> 283 <expand macro="removeProtein_with1Peptide"/>
286 </section> 284 </section>
287 </when> 285 </when>
286 <!--
288 <when value="OpenMS"> 287 <when value="OpenMS">
289 <param name="evidence" type="data" format="tabular,csv" label="OpenSWATH_input"/> 288 <param name="evidence" type="data" format="tabular,csv" label="OpenSWATH_input"/>
290 <param name="annotation" type="data" format="tabular,csv" label="OpenSWATH_annotation"/> 289 <param name="annotation" type="data" format="tabular,csv" label="OpenSWATH_annotation"/>
291 <section name="input_options" title="MaxQtoMSstatsFormat Options" expanded="false"> 290 <section name="input_options" title="MaxQtoMSstatsFormat Options" expanded="false">
292 <expand macro="useUniquePeptide"/> 291 <expand macro="useUniquePeptide"/>
293 <expand macro="summaryforMultipleRows"/> 292 <expand macro="summaryforMultipleRows"/>
294 <expand macro="fewMeasurements"/> 293 <expand macro="fewMeasurements"/>
295 <expand macro="removeProtein_with1Peptide"/> 294 <expand macro="removeProtein_with1Peptide"/>
296 </section> 295 </section>
297 </when> 296 </when>
297 -->
298 <when value="OpenSWATH"> 298 <when value="OpenSWATH">
299 <param name="evidence" type="data" format="tabular,csv" label="OpenSWATH_input"/> 299 <param name="evidence" type="data" format="tabular,csv" label="OpenSWATH_input"/>
300 <param name="annotation" type="data" format="tabular,csv" label="OpenSWATH_annotation"/> 300 <param name="annotation" type="data" format="tabular,csv" label="OpenSWATH_annotation"/>
301 <section name="input_options" title="OpenSWATHtoMSstatsFormat Options" expanded="false"> 301 <section name="input_options" title="OpenSWATHtoMSstatsFormat Options" expanded="false">
302 <param name="filter_with_mscore" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="true" label="Remove the peptides including 'M' sequence"/> 302 <param name="filter_with_mscore" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="true" label="Remove the peptides including 'M' sequence"/>
419 <data name="r_script" format="txt" label="MSstats Rscript"> 419 <data name="r_script" format="txt" label="MSstats Rscript">
420 <filter>'r_script' in selected_outputs</filter> 420 <filter>'r_script' in selected_outputs</filter>
421 </data> 421 </data>
422 <data name="processed_data" format="tabular" label="MSstats ProcessedData" from_work_dir="ProcessedData.tsv"> 422 <data name="processed_data" format="tabular" label="MSstats ProcessedData" from_work_dir="ProcessedData.tsv">
423 <filter>'processed_data' in selected_outputs</filter> 423 <filter>'processed_data' in selected_outputs</filter>
424 <actions>
425 <action name="column_names" type="metadata" default="PROTEIN,PEPTIDE,TRANSITION,FEATURE,LABEL,GROUP_ORIGINAL,SUBJECT_ORIGINAL,RUN,GROUP,SUBJECT,INTENSITY,SUBJECT_NESTED,ABUNDANCE,FRACTION,originalRUN,censored" />
426 </actions>
424 </data> 427 </data>
425 <data name="runlevel_data" format="tabular" label="MSstats RunlevelData" from_work_dir="RunlevelData.tsv"> 428 <data name="runlevel_data" format="tabular" label="MSstats RunlevelData" from_work_dir="RunlevelData.tsv">
426 <filter>'runlevel_data' in selected_outputs</filter> 429 <filter>'runlevel_data' in selected_outputs</filter>
430 <actions>
431 <action name="column_names" type="metadata" default="RUN,Protein,LogIntensities,NumMeasuredFeature,MissingPercentage,more50missing,NumImputedFeature,originalRUN,GROUP,GROUP_ORIGINAL,SUBJECT_ORIGINAL,SUBJECT_NESTED,SUBJECT" />
432 </actions>
427 </data> 433 </data>
428 <data name="qcplot" format="pdf" label="MSstats QCPlot.pdf" from_work_dir="MSStats_only_QCPlot.pdf"> 434 <data name="qcplot" format="pdf" label="MSstats QCPlot.pdf" from_work_dir="MSStats_only_QCPlot.pdf">
429 <filter>'qcplot' in selected_outputs</filter> 435 <filter>'qcplot' in selected_outputs</filter>
430 </data> 436 </data>
431 <data name="profile_plot" format="pdf" label="MSstats ProfilePlot.pdf" from_work_dir="MSStats_only_ProfilePlot.pdf"> 437 <data name="profile_plot" format="pdf" label="MSstats ProfilePlot.pdf" from_work_dir="MSStats_only_ProfilePlot.pdf">
440 <data name="quant_sample_matrix" format="tabular" label="MSstats SampleQuantificationMatrix.tsv" from_work_dir="SampleQuantificationMatrix.tsv"> 446 <data name="quant_sample_matrix" format="tabular" label="MSstats SampleQuantificationMatrix.tsv" from_work_dir="SampleQuantificationMatrix.tsv">
441 <filter>'quant_sample_matrix' in selected_outputs</filter> 447 <filter>'quant_sample_matrix' in selected_outputs</filter>
442 </data> 448 </data>
443 <data name="quant_sample_long" format="tabular" label="MSstats SampleQuantificationLong.tsv" from_work_dir="SampleQuantificationLong.tsv"> 449 <data name="quant_sample_long" format="tabular" label="MSstats SampleQuantificationLong.tsv" from_work_dir="SampleQuantificationLong.tsv">
444 <filter>'quant_sample_long' in selected_outputs</filter> 450 <filter>'quant_sample_long' in selected_outputs</filter>
451 <actions>
452 <action name="column_names" type="metadata" default="Protein,Group_Subject,LogIntensity" />
453 </actions>
445 </data> 454 </data>
446 <data name="quant_group_matrix" format="tabular" label="MSstats GroupQuantificationMatrix.tsv" from_work_dir="GroupQuantificationMatrix.tsv"> 455 <data name="quant_group_matrix" format="tabular" label="MSstats GroupQuantificationMatrix.tsv" from_work_dir="GroupQuantificationMatrix.tsv">
447 <filter>'quant_group_matrix' in selected_outputs</filter> 456 <filter>'quant_group_matrix' in selected_outputs</filter>
448 </data> 457 </data>
449 <data name="quant_group_long" format="tabular" label="MSstats GroupQuantificationLong.tsv" from_work_dir="GroupQuantificationLong.tsv"> 458 <data name="quant_group_long" format="tabular" label="MSstats GroupQuantificationLong.tsv" from_work_dir="GroupQuantificationLong.tsv">
450 <filter>'quant_group_long' in selected_outputs</filter> 459 <filter>'quant_group_long' in selected_outputs</filter>
460 <actions>
461 <action name="column_names" type="metadata" default="Protein,Group,LogIntensity" />
462 </actions>
451 </data> 463 </data>
452 <data name="comparison_result" format="tabular" label="MSstats ComparisonResult.tsv" from_work_dir="ComparisonResult.tsv"> 464 <data name="comparison_result" format="tabular" label="MSstats ComparisonResult.tsv" from_work_dir="ComparisonResult.tsv">
453 <filter> group['group_comparison'] == 'yes' and 'comparison_result' in group['select_outputs']</filter> 465 <filter> group['group_comparison'] == 'yes' and 'comparison_result' in group['select_outputs']</filter>
466 <actions>
467 <action name="column_names" type="metadata" default="Protein,Label,log2FC,SE,Tvalue,DF,pvalue,adj.pvalue,issue,MissingPercentage,ImputationPercentage" />
468 </actions>
454 </data> 469 </data>
455 <data name="fittedmodel" format="txt" label="MSstats ComparisonFittedModel.txt" from_work_dir="ComparisonFittedModel.txt"> 470 <data name="fittedmodel" format="txt" label="MSstats ComparisonFittedModel.txt" from_work_dir="ComparisonFittedModel.txt">
456 <filter> group['group_comparison'] == 'yes' and 'fittedmodel' in group['select_outputs']</filter> 471 <filter> group['group_comparison'] == 'yes' and 'fittedmodel' in group['select_outputs']</filter>
457 </data> 472 </data>
458 <data name="model_qc" format="tabular" label="MSstats ModelQC.tsv" from_work_dir="ModelQC.tsv"> 473 <data name="model_qc" format="tabular" label="MSstats ModelQC.tsv" from_work_dir="ModelQC.tsv">
459 <filter> group['group_comparison'] == 'yes' and 'model_qc' in group['select_outputs']</filter> 474 <filter> group['group_comparison'] == 'yes' and 'model_qc' in group['select_outputs']</filter>
475 <actions>
476 <action name="column_names" type="metadata" default="RUN,PROTEIN,ABUNDANCE,NumMeasuredFeature,MissingPercentage,more50missing,NumImputedFeature,originalRUN,GROUP,GROUP_ORIGINAL,SUBJECT_ORIGINAL,SUBJECT_NESTED,SUBJECT,residuals,fitted" />
477 </actions>
460 </data> 478 </data>
461 <data name="qqplot" format="pdf" label="MSstats ModelQQ.pdf" from_work_dir="MSStats_group_QQPlot.pdf"> 479 <data name="qqplot" format="pdf" label="MSstats ModelQQ.pdf" from_work_dir="MSStats_group_QQPlot.pdf">
462 <filter> group['group_comparison'] == 'yes' and 'qqplot' in group['select_outputs']</filter> 480 <filter> group['group_comparison'] == 'yes' and 'qqplot' in group['select_outputs']</filter>
463 </data> 481 </data>
464 <data name="residualplot" format="pdf" label="MSstats ResidualPlot.pdf" from_work_dir="MSStats_group_ResidualPlot.pdf"> 482 <data name="residualplot" format="pdf" label="MSstats ResidualPlot.pdf" from_work_dir="MSStats_group_ResidualPlot.pdf">
471 <filter> group['group_comparison'] == 'yes' and 'heatmap' in group['select_outputs']</filter> 489 <filter> group['group_comparison'] == 'yes' and 'heatmap' in group['select_outputs']</filter>
472 </data> 490 </data>
473 <data name="comparisonplot" format="pdf" label="MSstats ComparisonPlot.pdf" from_work_dir="MSStats_group_ComparisonPlot.pdf"> 491 <data name="comparisonplot" format="pdf" label="MSstats ComparisonPlot.pdf" from_work_dir="MSStats_group_ComparisonPlot.pdf">
474 <filter> group['group_comparison'] == 'yes' and 'comparisonplot' in group['select_outputs']</filter> 492 <filter> group['group_comparison'] == 'yes' and 'comparisonplot' in group['select_outputs']</filter>
475 </data> 493 </data>
476 <!--
477 Tabular file (from groupcomparison): "fittedmodel"
478 -->
479 </outputs> 494 </outputs>
480 <tests> 495 <tests>
481 496
482 <test> 497 <test>
483 <conditional name="input"> 498 <conditional name="input">
573 </output> 588 </output>
574 <output name="condition_plot" file="condition_plot.pdf" compare="sim_size"/> 589 <output name="condition_plot" file="condition_plot.pdf" compare="sim_size"/>
575 <output name="qqplot" file="qq_plot.pdf" compare="sim_size"/> 590 <output name="qqplot" file="qq_plot.pdf" compare="sim_size"/>
576 </test> 591 </test>
577 592
578
579
580
581 <!-- 593 <!--
582 <test> 594 <test>
583 <conditional name="input"> 595 <conditional name="input">
584 <param name="input_src" value="OpenMS"/> 596 <param name="input_src" value="OpenMS"/>
585 <param name="evidence" ftype="tabular" value=""/> 597 <param name="evidence" ftype="tabular" value=""/>