comparison mfassignr_kmdnoise.xml @ 0:f60df05dd038 draft

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