Mercurial > repos > recetox > recetox_aplcms_two_step_hybrid
comparison recetox_aplcms_two_step_hybrid.xml @ 0:c67f0eb6a909 draft
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit b3e0c34f12c9c38fb34bf48197974620d60b50c5
author | recetox |
---|---|
date | Thu, 26 May 2022 16:47:09 +0000 |
parents | |
children | 87b669bdb51a |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c67f0eb6a909 |
---|---|
1 <tool id="recetox_aplcms_two_step_hybrid" name="RECETOX apLCMS Two-Step Hybrid" version="@TOOL_VERSION@+galaxy0"> | |
2 <description>generate a feature table from LC/MS spectra of multi-batch experiments</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="creator"> | |
7 <person | |
8 givenName="Maksym" | |
9 familyName="Skoryk" | |
10 url="https://github.com/maximskorik" | |
11 identifier="0000-0003-2056-8018" /> | |
12 </expand> | |
13 | |
14 <expand macro="requirements"/> | |
15 <command detect_errors="aggressive"><![CDATA[ | |
16 sh ${symlink_inputs} && | |
17 Rscript -e 'source("${__tool_directory__}/main.R")' -e 'source("${run_script}")' | |
18 ]]></command> | |
19 <configfiles> | |
20 <configfile name="symlink_inputs"> | |
21 #for $infile in $files | |
22 ln -s '${infile}' '${infile.element_identifier}' | |
23 #end for | |
24 </configfile> | |
25 <configfile name="run_script"><![CDATA[ | |
26 #set filenames_str = str("', '").join([str($f.element_identifier) for $f in $files]) | |
27 | |
28 two_step_hybrid_main( | |
29 sample_files = c('$filenames_str'), | |
30 known_table_file = '${known_table}', | |
31 updated_known_table_file = '${updated_known_table}', | |
32 recovered_file = '${recovered_feature_sample_table}', | |
33 aligned_file = '${aligned_feature_sample_table}', | |
34 out_format = '$output_format.out_format', | |
35 metadata = '${metadata}', | |
36 cluster = as.integer(Sys.getenv('GALAXY_SLOTS', unset = 1)), | |
37 min.within.batch.prop.detect = $multibatch_processing.min_within_batch_prop_detect, | |
38 min.within.batch.prop.report = $multibatch_processing.min_within_batch_prop_detect, | |
39 min.batch.prop = $multibatch_processing.min_batch_prop, | |
40 batch.align.mz.tol = $multibatch_processing.batch_align_mz_tol, | |
41 batch.align.chr.tol = $multibatch_processing.batch_align_chr_tol, | |
42 min.pres = $noise_filtering.min_pres, | |
43 min.run = $noise_filtering.min_run, | |
44 mz.tol = $noise_filtering.mz_tol, | |
45 baseline.correct.noise.percentile = $noise_filtering.baseline_correct_noise_percentile, | |
46 baseline.correct = $noise_filtering.baseline_correct, | |
47 intensity.weighted = $noise_filtering.intensity_weighted, | |
48 shape.model = '$feature_detection.shape_model', | |
49 peak.estim.method = '$feature_detection.peak_estim_method', | |
50 BIC.factor = $feature_detection.BIC_factor, | |
51 min.bw = $feature_detection.min_bandwidth, | |
52 max.bw = $feature_detection.max_bandwidth, | |
53 sd.cut = c($feature_detection.sd_cut_min, $feature_detection.sd_cut_max), | |
54 sigma.ratio.lim = c($feature_detection.sigma_ratio_lim_min, $feature_detection.sigma_ratio_lim_max), | |
55 component.eliminate = $feature_detection.component_eliminate, | |
56 moment.power = $feature_detection.moment_power, | |
57 align.mz.tol = $peak_alignment.align_mz_tol, | |
58 align.chr.tol = $peak_alignment.align_chr_tol, | |
59 max.align.mz.diff = $peak_alignment.max_align_mz_diff, | |
60 recover.mz.range = $weak_signal_recovery.recover_mz_range, | |
61 recover.chr.range = $weak_signal_recovery.recover_chr_range, | |
62 use.observed.range = $weak_signal_recovery.use_observed_range, | |
63 recover.min.count = $weak_signal_recovery.recover_min_count, | |
64 match.tol.ppm = $history_db.match_tol_ppm, | |
65 new.feature.min.count = $history_db.new_feature_min_count | |
66 ) | |
67 ]]></configfile> | |
68 </configfiles> | |
69 | |
70 <expand macro="inputs"> | |
71 <param name="metadata" type="data" format="csv" label="metadata" help="A csv table with two columns, where the first column contains sample names and the second batch labels for each sample."/> | |
72 <expand macro="history_db"/> | |
73 <expand macro="noise_filtering" /> | |
74 <expand macro="feature_detection"/> | |
75 <expand macro="peak_alignment"/> | |
76 <expand macro="weak_signal_recovery"/> | |
77 <expand macro="multibatch_processing"/> | |
78 <expand macro="output_format"/> | |
79 </expand> | |
80 | |
81 <outputs> | |
82 <expand macro="unsupervised_outputs"/> | |
83 </outputs> | |
84 | |
85 <tests> | |
86 <test> | |
87 <param name="known_table" value="known_table.parquet" ftype="parquet"/> | |
88 <param name="files" value="mbr_test0.mzml,mbr_test1.mzml,mbr_test2.mzml,mbr_test0_copy.mzml" ftype="mzml"/> | |
89 <param name="metadata" value="two_step_hybrid_info.csv" ftype="csv"/> | |
90 <param name="moment_power" value="2"/> | |
91 <param name="sd_cut_max" value="100"/> | |
92 <param name="sd_cut_min" value="0.1"/> | |
93 <param name="sigma_ratio_lim_max" value="20"/> | |
94 <param name="sigma_ratio_lim_min" value="0.05"/> | |
95 <section name="output_format"> | |
96 <param name="out_format" value="recetox"/> | |
97 </section> | |
98 <output name="recovered_feature_sample_table" file="two_step_hybrid.recetox.parquet" ftype="parquet"/> | |
99 </test> | |
100 </tests> | |
101 | |
102 <help> | |
103 <![CDATA[ | |
104 @HELP_two-step-hybrid@ | |
105 ]]> | |
106 </help> | |
107 | |
108 <expand macro="citations"> | |
109 <citation type="doi">10.1038/s41598-020-70850-0</citation> | |
110 </expand> | |
111 </tool> |