Mercurial > repos > recetox > mfassignr_histnoise
comparison mfassignr_histnoise.xml @ 0:faf7108f3b48 draft
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 87bb82e07c57753a71d9ce4efc757c4367200d15
| author | recetox |
|---|---|
| date | Thu, 15 Aug 2024 12:01:59 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:faf7108f3b48 |
|---|---|
| 1 <tool id="mfassignr_histnoise" name="MFAssignR HistNoise" version="@TOOL_VERSION@+galaxy0" profile="23.0"> | |
| 2 <description>Noise level assessment using the HistNoise</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 <expand macro="creator" /> | |
| 11 <expand macro="requirements" /> | |
| 12 <command detect_errors="exit_code"><![CDATA[ | |
| 13 Rscript '${run_script}' | |
| 14 ]]></command> | |
| 15 <configfiles> | |
| 16 <configfile name="run_script"><![CDATA[ | |
| 17 df <- read.delim("$input_file", sep="\t") | |
| 18 assess_noise <- MFAssignR::HistNoise( | |
| 19 df = df, | |
| 20 SN = $SN, | |
| 21 bin = $bin | |
| 22 ) | |
| 23 noise <- assess_noise[['Noise']] | |
| 24 write.table(noise, file = '$Noise', row.names= FALSE, col.names = FALSE) | |
| 25 ggplot2::ggsave(filename = "histplot.png", assess_noise[['Hist']]) | |
| 26 ]]></configfile> | |
| 27 </configfiles> | |
| 28 <inputs> | |
| 29 <expand macro="histnoise_param"/> | |
| 30 </inputs> | |
| 31 <outputs> | |
| 32 <data name="Noise" format="txt" label="Noise level estimate by ${tool.name} on ${on_string}"/> | |
| 33 <data name="Hist_plot" format="png" label="Histogram plot by ${tool.name} on ${on_string}" from_work_dir="histplot.png"/> | |
| 34 </outputs> | |
| 35 <tests> | |
| 36 <test> | |
| 37 <param name="input_file" value="QC1_1_POS_500.tabular" /> | |
| 38 <output name="Noise" ftype="txt"> | |
| 39 <assert_contents> | |
| 40 <has_text text="674849323.854921" /> | |
| 41 </assert_contents> | |
| 42 </output> | |
| 43 <output name="Hist_plot" ftype="png" file="histnoise/plot.png"> | |
| 44 </output> | |
| 45 </test> | |
| 46 </tests> | |
| 47 <help><![CDATA[ | |
| 48 @HISTNOISE_HELP@ | |
| 49 | |
| 50 @GENERAL_HELP@ | |
| 51 ]]></help> | |
| 52 <expand macro="citations" /> | |
| 53 </tool> |
