Mercurial > repos > jay > gaiac_precision
diff gaiac_precision_calculation/gaiac_precision_calculation.xml @ 0:287d6cc86582 draft
planemo upload for repository https://github.com/jaidevjoshi83/gaiac.git commit c29a769ed165f313a6410925be24f776652a9663-dirty
author | jay |
---|---|
date | Thu, 15 May 2025 14:45:45 +0000 |
parents | |
children | 69b3190e5e64 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gaiac_precision_calculation/gaiac_precision_calculation.xml Thu May 15 14:45:45 2025 +0000 @@ -0,0 +1,83 @@ +<tool id="gaiac_precision" name="GAIAC precision calculation" version="0.1.0" python_template_version="3.10"> + <description>Calculates precision between duplicate instruments as per US EPA recommendation</description> + + <requirements> + <requirement type="package" version="3.10">Python</requirement> + <requirement type="package" version="2.2.5">numpy</requirement> + <requirement type="package" version="2.2.3">pandas</requirement> + <requirement type="package" version="1.15.2">scipy</requirement> + </requirements> + + <command detect_errors="exit_code"><![CDATA[ + python '$__tool_directory__/precision_calculation.py' -I '$infile' --column_1 '$clm1' --column_2 '$clm2' -o '$Out' + ]]></command> + + <inputs> + <param name="infile" type="data" format="tabular" label="Dataset"/> + <param name="clm1" label="Select column containing data from first equipment" type="data_column" data_ref="infile" numerical="True" multiple="false" use_header_names="true"> + <validator type="no_options" message="Please select any one column."/> + </param> + <param name="clm2" label="Select columns containing data from second equipment " type="data_column" data_ref="infile" numerical="True" multiple="false" use_header_names="true"> + <validator type="no_options" message="Please select any one column."/> + </param> + </inputs> + + <outputs> + <data name='Out' format='tabular' label="out.tsv" from_work_dir="out.tsv"/> + </outputs> + + <tests> + <test> + <!-- Provide a test input file --> + <param name="infile" value="test.tsv"/> + <!-- Select columns by name (assuming columns in CSV are 'Device1' and 'Device2') --> + <param name="clm1" value="1"/> + <param name="clm2" value="4"/> + <!-- Check that the output is created and optionally matches expected output --> + <output name="Out" file="out.tsv" ftype="tabular" /> + </test> + </tests> + + <help><![CDATA[ +.. class:: infomark + +**What it does** + +This tool calculates Precision between the duplicate instruments as per the US EPA criteria + + + +----- + +**Inputs** + Precision calculation + * **--infile** Input data frame as a tabular file. + * **--column_1** the column containing data from the first equipment select the column from the list. + * **--column_2** the column containing data from the second equipment select the column from the list. + + +----- + +**Outputs** + * Returns precision value between the duplicate instruments]]></help> + +<citations> + <citation type="bibtex"> + + + @article{dubey2022, + title={AirPiuG-Galaxy software platform based open-source GUI tools for data collection and analysis from low cost air pollution sensors}, + author={Dubey, R and Joshi, J and Patra, A and Blankenberg, D}, + journal={GitHub repository}, + url = {https://github.com/ravishdubey/OPCN3API}, + year={2022}, + publisher={GitHub} + } + + </citation> + +</citations> +</tool> + + +