Mercurial > repos > recetox > rcx_tk
view rcx-tk.xml @ 1:9b4b624c4d60 draft default tip
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/rcx-tk/ commit 48dbee053949c9e18cf965805b0115320d05af3c
author | recetox |
---|---|
date | Mon, 19 May 2025 11:03:48 +0000 |
parents | 54401f9d1a30 |
children |
line wrap: on
line source
<tool id="rcx-tk" name="rcx-tk" version="@TOOL_VERSION@+galaxy1" profile="23.05"> <description>Processes and standardizes metadata or alkane files by rearranging columns, validating file names, and deriving new columns for downstream analysis.</description> <macros> <token name="@TOOL_VERSION@">0.1.0</token> </macros> <edam_topics> <edam_topic>topic_3172</edam_topic> <edam_topic>topic_0091</edam_topic> <edam_topic>topic_3520</edam_topic> </edam_topics> <edam_operations> <edam_operation>operation_0336</edam_operation> <edam_operation>operation_3695</edam_operation> </edam_operations> <requirements> <requirement type="package" version="@TOOL_VERSION@">rcx-tk</requirement> </requirements> <creator> <person givenName="Zargham" familyName="Ahmad" url="https://github.com/zargham-ahmad" identifier="0000-0000-0000-0000"/> <person givenName="Kristina" familyName="Gomoryova" url="https://github.com/KristinaGomoryova" identifier="0000-0003-4407-3917" /> <person givenName="Helge" familyName="Hecht" url="https://github.com/hechth" identifier="0000-0001-6744-996X" /> <organization url="https://www.recetox.muni.cz/" email="GalaxyToolsDevelopmentandDeployment@space.muni.cz" name="RECETOX MUNI" /> </creator> <command detect_errors="aggressive"><![CDATA[ #if $input_file.ext == "tabular" #set $input_file_new = 'input.tsv' #else #set $input_file_new = 'input.' + str($input_file.ext) #end if cp ${input_file} ${input_file_new} && python3 -m rcx_tk --method ${method} ${input_file_new} 'output.tsv' ]]></command> <inputs> <param name="input_file" type="data" format="csv,tabular,tsv,xls,xlsx,txt" label="Input data file" help="Upload your sample metadata (sequence) or alkane file."/> <param name="method" type="select" label="Processing method" help="Select whether to process a metadata file or an alkane file. This determines the column arrangement and validation steps."> <option value="metadata" selected="true">Metadata file</option> <option value="alkanes">Alkane file</option> </param> </inputs> <outputs> <data name="output_file" format="tabular" from_work_dir = "output.tsv" label="Processed ${method} (dataset ${input_file.id})"/> </outputs> <tests> <test> <param name="input_file" value="input_metadata.tabular"/> <param name="method" value="metadata"/> <output name="output_file" file="output_metadata.tsv"/> </test> <test> <param name="input_file" value="input_alkanes.txt"/> <param name="method" value="alkanes"/> <output name="output_file" file="output_alkanes.tsv"/> </test> </tests> <help><![CDATA[ .. _rcx_tk: ====================================== rcx-tk: Metadata/Alkane File Processor ====================================== **Tool Description** rcx-tk is a tool for processing sample metadata (sequence) and alkane files. It standardizes your input by rearranging columns, validating file names, and deriving new columns such as `sampleName`, `sequenceIdentifier`, `sampleIdentifier`, and `localOrder`. This ensures your data is ready for downstream analysis and compatible with standardized workflows. How it works ------------ - **Column rearrangement**: Ensures columns are in the correct order for further processing. - **File name validation**: Checks that file names follow expected conventions. - **Derivation of new columns**: Automatically generates useful columns for sample tracking and analysis. Inputs ------ 1. **Input data file** Upload your sample metadata (sequence) or alkane file. Supported formats: CSV, TSV, tabular, XLS, XLSX, or TXT. 2. **Processing method** Select whether to process a metadata file or an alkane file. This determines the column arrangement and validation steps. Outputs ------- - **Processed file** A standardized TSV file with rearranged columns and additional derived columns, ready for downstream analysis. Example ------- Suppose you have a metadata file in CSV or tabular format. Select "Metadata file" as the processing method and upload your file. The tool will output a processed TSV file with standardized columns and additional identifiers. Notes ----- - Ensure your input file is correctly formatted and contains the necessary columns for your chosen processing method. - The tool supports a variety of input formats for flexibility. - The output file can be directly used in downstream data analysis workflows. ]]></help> <citations> <citation type="doi">10.5281/zenodo.4471245</citation> </citations> </tool>