view gaiac_precision_calculation/gaiac_precision_calculation.xml @ 3:1f9e67edde6a draft default tip

planemo upload for repository https://github.com/jaidevjoshi83/gaiac commit e9587f93346c7b55e1be00bad5844bf2db3ed03d-dirty
author jay
date Thu, 10 Jul 2025 19:42:02 +0000
parents 69b3190e5e64
children
line wrap: on
line source

<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__/gaiac_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="${tool.name} on $on_string (tabular)" 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>