Mercurial > repos > recetox > recetox_aplcms_remove_noise
diff recetox_aplcms_remove_noise.xml @ 0:7e1217022278 draft
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
author | recetox |
---|---|
date | Mon, 13 Feb 2023 10:27:15 +0000 |
parents | |
children | e9e9677e8147 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/recetox_aplcms_remove_noise.xml Mon Feb 13 10:27:15 2023 +0000 @@ -0,0 +1,58 @@ +<tool id="recetox_aplcms_remove_noise" name="recetox-aplcms - remove noise" version="@TOOL_VERSION@+galaxy0"> + <description>filter noise and detect peaks in high resolution mass spectrometry (HRMS) profile data</description> + <macros> + <import>macros.xml</import> + <import>help.xml</import> + </macros> + <expand macro="creator"/> + <expand macro="requirements"/> + + <command detect_errors="aggressive"><![CDATA[ + python '${__tool_directory__}/mzml_id_getter.py' '$input_file'; + Rscript -e 'source("${__tool_directory__}/utils.R")' -e 'source("${run_script}")' + ]]></command> + <configfiles> + <configfile name="run_script"><![CDATA[ + sample_name <- readChar('sample_name.txt', file.info('sample_name.txt')\$size) + + profile <- proc.cdf( + filename = '$input_file', + min_pres = $min_pres, + min_run = $min_run, + mz_tol = $mz_tol, + baseline_correct = $baseline_correct, + baseline_correct_noise_percentile = 0.05, + intensity_weighted = $intensity_weighted, + do.plot = FALSE, + cache = FALSE + ) + + profile <- save_sample_name(profile, sample_name) + save_data_as_parquet_file(profile, '$output_file') + ]]></configfile> + </configfiles> + + <inputs> + <param label="Input spectra data" name="input_file" type="data" format="mzml" + help="Sample data in .mzml format acquired in profile mode." /> + <expand macro="remove_noise_params"/> + </inputs> + + <outputs> + <data label="${tool.name} on ${on_string}" name="output_file" format="parquet" /> + </outputs> + + <tests> + + </tests> + + <help> + <![CDATA[ + @REMOVE_NOISE_HELP@ + + @GENERAL_HELP@ + ]]> + </help> + + <expand macro="citations"/> +</tool>