Mercurial > repos > recetox > recetox_aplcms_hybrid
annotate aplcms_hybrid.xml @ 0:2bb3c7ae9777 draft
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
author | recetox |
---|---|
date | Tue, 25 Aug 2020 09:17:23 +0000 |
parents | |
children | 30b1888f985a |
rev | line source |
---|---|
0
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
1 <tool id="recetox_aplcms_hybrid" name="apLCMS - Hybrid" version="@VERSION@"> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
2 <macros> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
3 <import>aplcms_macros.xml</import> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
4 </macros> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
5 |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
6 <expand macro="requirements" /> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
7 |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
8 <command detect_errors="aggressive"><![CDATA[ |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
9 #set file_str = str('", "').join([str($f) for $f in $files]) |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
10 |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
11 Rscript |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
12 -e 'result <- apLCMS::hybrid( |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
13 files = c("$file_str"), |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
14 known_table = arrow::read_feather("$known_table"), |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
15 min_exp = $noise_filtering.min_exp, |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
16 min_pres = $noise_filtering.min_pres, |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
17 min_run = $noise_filtering.min_run, |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
18 mz_tol = $noise_filtering.mz_tol, |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
19 baseline_correct = $noise_filtering.baseline_correct, |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
20 baseline_correct_noise_percentile = $noise_filtering.baseline_correct_noise_percentile, |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
21 intensity_weighted = $noise_filtering.intensity_weighted, |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
22 shape_model = "$feature_detection.shape_model", |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
23 BIC_factor = $feature_detection.BIC_factor, |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
24 peak_estim_method = "$feature_detection.peak_estim_method", |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
25 min_bandwidth = $feature_detection.min_bandwidth, |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
26 max_bandwidth = $feature_detection.max_bandwidth, |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
27 sd_cut = c($feature_detection.sd_cut_min, $feature_detection.sd_cut_max), |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
28 sigma_ratio_lim = c($feature_detection.sigma_ratio_lim_min, $feature_detection.sigma_ratio_lim_max), |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
29 component_eliminate = $feature_detection.component_eliminate, |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
30 moment_power = $feature_detection.moment_power, |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
31 align_chr_tol = $peak_alignment.align_chr_tol, |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
32 align_mz_tol = $peak_alignment.align_mz_tol, |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
33 max_align_mz_diff = $peak_alignment.max_align_mz_diff, |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
34 match_tol_ppm = $history_db.match_tol_ppm, |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
35 new_feature_min_count = $history_db.new_feature_min_count, |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
36 recover_mz_range = $weak_signal_recovery.recover_mz_range, |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
37 recover_chr_range = $weak_signal_recovery.recover_chr_range, |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
38 use_observed_range = $weak_signal_recovery.use_observed_range, |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
39 recover_min_count = $weak_signal_recovery.recover_min_count |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
40 )' |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
41 -e 'arrow::write_feather(result\$final_times, "$times")' |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
42 -e 'arrow::write_feather(result\$final_features, "$features")' |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
43 -e 'arrow::write_feather(result\$updated_known_table, "$updated_known_table")' |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
44 -e 'arrow::write_feather(result\$aligned_times, "$aligned_times")' |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
45 -e 'arrow::write_feather(result\$aligned_features, "$aligned_features")' |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
46 -e 'arrow::write_feather(result\$corrected_features, "$corrected_features")' |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
47 -e 'arrow::write_feather(result\$extracted_features, "$extracted_features")' |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
48 ]]></command> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
49 |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
50 <expand macro="inputs"> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
51 <expand macro="history_db" /> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
52 <expand macro="noise_filtering" /> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
53 <expand macro="feature_detection" /> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
54 <expand macro="peak_alignment" /> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
55 <expand macro="weak_signal_recovery" /> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
56 </expand> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
57 |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
58 <outputs> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
59 <data name="times" format="time_table.feather" /> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
60 <data name="features" format="peak_table.feather" /> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
61 <data name="updated_known_table" format="aplcms_history.feather" /> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
62 <data name="aligned_times" format="time_table.feather" hidden="true" /> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
63 <data name="aligned_features" format="peak_table.feather" hidden="true" /> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
64 <data name="corrected_features" format="peak_table.feather" hidden="true" /> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
65 <data name="extracted_features" format="peak_table.feather" hidden="true" /> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
66 </outputs> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
67 |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
68 <help> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
69 This is the Hybrid version of apLCMS which is incorporating the knowledge of known metabolites and historically |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
70 detected features on the same machinery to help detect and quantify lower-intensity peaks. |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
71 |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
72 CAUTION: To use such knowledge, especially historical data, you must keep using (1) the same chromatography |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
73 system (otherwise the retention time will not match), and (2) the same type of samples with similar extraction |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
74 technique, such as human serum. |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
75 |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
76 @GENERAL_HELP@ |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
77 </help> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
78 |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
79 <expand macro="citations" /> |
2bb3c7ae9777
"planemo upload commit 40818fd30d8cf43485c215e7ce10c16757024957-dirty"
recetox
parents:
diff
changeset
|
80 </tool> |