Mercurial > repos > recetox > mfassignr_kmdnoise
annotate mfassignr_kmdnoise.xml @ 6:a7a823839ae3 draft default tip
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 7d98b78ae27b24ee581d40ff0b624d7ecb288030
author | recetox |
---|---|
date | Fri, 01 Nov 2024 08:19:22 +0000 |
parents | f60df05dd038 |
children |
rev | line source |
---|---|
0
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
1 <tool id="mfassignr_kmdnoise" name="MFAssignR KMDNoise" version="@TOOL_VERSION@+galaxy0" profile="23.0"> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
2 <description>Noise level assessment using the KMDNoise.</description> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
3 <macros> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
4 <import>macros.xml</import> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
5 <import>help.xml</import> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
6 </macros> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
7 <edam_topics> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
8 <edam_topic>topic_3172</edam_topic> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
9 </edam_topics> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
10 <edam_operations> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
11 <edam_operation>operation_2940</edam_operation> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
12 </edam_operations> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
13 <expand macro="creator" /> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
14 <expand macro="requirements" /> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
15 <command detect_errors="exit_code"><![CDATA[ |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
16 Rscript '${run_script}' |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
17 ]]></command> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
18 <configfiles> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
19 <configfile name="run_script"><![CDATA[ |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
20 df <- read.delim("$input_file", sep="\t") |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
21 names(df)[c(1,2)] <- c("mass", "intensity") |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
22 assess_noise <- MFAssignR::KMDNoise( |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
23 df = df, |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
24 upper.y = $upper_y, |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
25 lower.y = $lower_y, |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
26 #if $upper_x |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
27 upper.x = $upper_x, |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
28 #end if |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
29 #if $lower_x |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
30 lower.x = $lower_x |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
31 #end if |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
32 ) |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
33 noise <- assess_noise[['Noise']] |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
34 write.table(noise, file = '$Noise', row.names= FALSE, col.names = FALSE) |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
35 ggplot2::ggsave(filename = "KMDplot.png", assess_noise[['KMD']]) |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
36 ]]></configfile> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
37 </configfiles> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
38 <inputs> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
39 <expand macro="kmdnoise_param"/> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
40 </inputs> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
41 <outputs> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
42 <data name="Noise" format="txt" label="Noise level estimate by ${tool.name} on ${on_string}"/> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
43 <data name="KMD_plot" format="png" label="KMD plot by ${tool.name} on ${on_string}" from_work_dir="KMDplot.png"/> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
44 </outputs> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
45 <tests> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
46 <test> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
47 <param name="input_file" value="QC1_1_POS_500.tabular" /> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
48 <output name="Noise" ftype="txt"> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
49 <assert_contents> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
50 <has_text text="3294705.63963789" /> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
51 </assert_contents> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
52 </output> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
53 <output name="KMD_plot" ftype="png"> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
54 <assert_contents> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
55 <has_size size="1164615" delta="200"/> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
56 </assert_contents> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
57 </output> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
58 </test> </tests> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
59 <help><![CDATA[ |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
60 @KMDNOISE_HELP@ |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
61 |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
62 @GENERAL_HELP@ |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
63 ]]></help> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
64 <expand macro="citations" /> |
f60df05dd038
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
recetox
parents:
diff
changeset
|
65 </tool> |