Mercurial > repos > recetox > recetox_aplcms_correct_time
view recetox_aplcms_correct_time.xml @ 7:d69ec1171d71 draft
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 97249a1af94ac5c387e1ede274dec5364f71cde9
author | recetox |
---|---|
date | Wed, 11 Oct 2023 11:18:10 +0000 |
parents | 474d2bcb22e4 |
children | 9064aecc78a7 |
line wrap: on
line source
<tool id="recetox_aplcms_correct_time" name="recetox-aplcms - correct time" version="@TOOL_VERSION@+galaxy3" profile="21.09"> <description>correct retention time across samples for peak alignment</description> <macros> <import>macros.xml</import> <import>help.xml</import> </macros> <expand macro="annotation"/> <edam_operations> <edam_operation>operation_3628</edam_operation> </edam_operations> <expand macro="refs"/> <expand macro="creator"/> <expand macro="requirements"/> <command detect_errors="aggressive"><![CDATA[ Rscript -e 'source("${__tool_directory__}/utils.R")' -e 'source("${run_script}")' ]]></command> <configfiles> <configfile name="run_script"><![CDATA[ features_table <- load_data_from_parquet_file('$features_table') sample_name <- load_sample_name(features_table) if(is.na(sample_name)) { message("The file does not contain sample name.") } template_features <- load_data_from_parquet_file('$template') corrected_table <- correct_time( this.feature = features_table, template_features = template_features, mz_tol_relative = $mz_tol_relative_ppm * 1e-06, rt_tol_relative = $rt_tol ) corrected_table <- save_sample_name(corrected_table, sample_name) save_data_as_parquet_file(corrected_table, '$output_file') ]]></configfile> </configfiles> <inputs> <param label="Input clustered features table" name="features_table" type="data" format="parquet" help="Mass spectrometry clustered features table." /> <param label="Input template features table" name="template" type="data" format="parquet" help="Template features table." /> <expand macro="tolerances"/> </inputs> <outputs> <data label="${($features_table.element_identifier).rsplit('.',1)[0]}.parquet" name="output_file" format="parquet" /> </outputs> <tests> <test expect_failure="true" /> </tests> <help> <![CDATA[ @CORRECT_TIME_HELP@ @GENERAL_HELP@ ]]> </help> <expand macro="citations"/> </tool>