Mercurial > repos > recetox > target_screen
comparison target_screen.xml @ 1:6d51be3d7bb5 draft default tip
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/misc commit d6102c60e41d91adf1c7a876f84ef420a69262e2
| author | recetox |
|---|---|
| date | Mon, 12 May 2025 14:05:37 +0000 |
| parents | d4c2d5bc0524 |
| children |
comparison
equal
deleted
inserted
replaced
| 0:d4c2d5bc0524 | 1:6d51be3d7bb5 |
|---|---|
| 1 <tool id="target_screen" name="MS target screening" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.01" license="MIT"> | 1 <tool id="target_screen" name="MS Target Screening" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.01" license="MIT"> |
| 2 <description>Extract peaks from recetox-aplcms tables using a list of target ions</description> | 2 <description>Extract peaks from recetox-aplcms tables using a list of target ions</description> |
| 3 <macros> | 3 <macros> |
| 4 <token name="@TOOL_VERSION@">0.1.0</token> | 4 <token name="@TOOL_VERSION@">0.1.0</token> |
| 5 <token name="@VERSION_SUFFIX@">0</token> | 5 <token name="@VERSION_SUFFIX@">1</token> |
| 6 </macros> | 6 </macros> |
| 7 | 7 |
| 8 <requirements> | 8 <requirements> |
| 9 <requirement type="package" version="2.2.3">pandas</requirement> | 9 <requirement type="package" version="2.2.3">pandas</requirement> |
| 10 <requirement type="package" version="17.0.0">pyarrow</requirement> | 10 <requirement type="package" version="17.0.0">pyarrow</requirement> |
| 11 </requirements> | 11 </requirements> |
| 12 | 12 |
| 13 <command detect_errors="exit_code"><![CDATA[ | 13 <command detect_errors="exit_code"><![CDATA[ |
| 14 python3 '${__tool_directory__}/target_screen.py' --peaks '$peaks' --markers '$markers' --output '$hits' --ppm $ppm --rt_tol $rt | 14 python3 '${__tool_directory__}/target_screen.py' --peaks '$peaks' '$peaks.ext' --markers '$markers' '$markers.ext' --output '$hits' --ppm $ppm --rt_tol $rt |
| 15 ]]></command> | 15 ]]></command> |
| 16 | 16 |
| 17 <inputs> | 17 <inputs> |
| 18 <param name="peaks" type="data" format="parquet"/> | 18 <param name="peaks" type="data" format="parquet,tabular,tsv,csv" label="Peaks Table" help="Input table containing detected peaks in Parquet format. Each row should represent a peak with columns for m/z, retention time, and intensity." /> |
| 19 <param name="markers" type="data" format="tabular"/> | 19 <param name="markers" type="data" format="parquet,tabular,tsv,csv" label="Target Markers Table" help="Input table containing target markers in tabular format. Each row should represent a marker with columns for m/z and retention time." /> |
| 20 <param name="ppm" type="integer" min="0" max="1000" value="10" label="ppm" help="Tolerance for peak filtering in ppm." /> | 20 <param name="ppm" type="integer" min="0" max="1000" value="10" label="Mass Tolerance (ppm)" help="Tolerance for filtering peaks based on mass-to-charge ratio (m/z) in parts per million (ppm). The tolerance is applied symmetrically (±), so a value of 10 will match peaks within ±10 ppm of the target m/z." /> |
| 21 <param name="rt" type="integer" min="0" max="100" value="10" label="rt tolerance" help="Toelrance regarding retention time to filter out peaks" /> | 21 <param name="rt" type="integer" min="0" max="100" value="10" label="Retention Time Tolerance" help="Tolerance for filtering peaks based on retention time in the same units as the input data. The tolerance is applied symmetrically (±), so a value of 10 will match peaks within ±10 units of the target retention time." /> |
| 22 </inputs> | 22 </inputs> |
| 23 | 23 |
| 24 <outputs> | 24 <outputs> |
| 25 <data name="hits" format="tabular" label="${tool.name} on ${on_string}" /> | 25 <data name="hits" format="tabular" label="Filtered Peaks (${tool.name} on ${on_string})" /> |
| 26 </outputs> | 26 </outputs> |
| 27 | 27 |
| 28 <tests> | 28 <tests> |
| 29 <test> | 29 <test> |
| 30 <param name="peaks" value="target_screen/peaks.parquet"/> | 30 <param name="peaks" value="target_screen/peaks.parquet"/> |
| 36 | 36 |
| 37 .. class:: infomark | 37 .. class:: infomark |
| 38 | 38 |
| 39 **What it does** | 39 **What it does** |
| 40 | 40 |
| 41 This tool pulls out peaks from a table given a list of markers. | 41 This tool extracts peaks from a table of detected peaks based on a list of target markers. Peaks are matched to markers using a specified tolerance for mass-to-charge ratio (ppm) and retention time. Both tolerances are applied symmetrically (±). For example, if the retention time tolerance is set to 10, peaks within ±10 units of the target retention time will be matched. |
| 42 The markers are matched based on m/z values with a specified ppm tolerance and matched based on retention time with a tolerance in units of retention time. | 42 |
| 43 **Inputs** | |
| 44 | |
| 45 1. **Peaks Table (Parquet Format)**: | |
| 46 A table containing detected peaks. The table should be in Parquet format and include the following columns: | |
| 47 | |
| 48 - `mz`: Mass-to-charge ratio (m/z) of the peak. | |
| 49 - `rt`: Retention time of the peak. | |
| 50 - `intensity`: Intensity of the peak. | |
| 51 | |
| 52 Example Peaks Table: | |
| 53 | |
| 54 .. list-table:: Example Peaks Table | |
| 55 :header-rows: 1 | |
| 56 | |
| 57 * - mz | |
| 58 - rt | |
| 59 - intensity | |
| 60 * - 100.123 | |
| 61 - 5.2 | |
| 62 - 1500 | |
| 63 * - 200.456 | |
| 64 - 10.5 | |
| 65 - 3000 | |
| 66 | |
| 67 2. **Target Markers Table (Tabular Format)**: | |
| 68 A table containing target markers. The table should be in tabular format and include the following columns: | |
| 69 | |
| 70 - `mz`: Mass-to-charge ratio (m/z) of the marker. | |
| 71 - `rt`: Retention time of the marker. | |
| 72 | |
| 73 Example Markers Table: | |
| 74 | |
| 75 .. list-table:: Example Markers Table | |
| 76 :header-rows: 1 | |
| 77 | |
| 78 * - mz | |
| 79 - rt | |
| 80 * - 100.123 | |
| 81 - 5.2 | |
| 82 * - 200.456 | |
| 83 - 10.5 | |
| 84 | |
| 85 **Parameters** | |
| 86 | |
| 87 - **Mass Tolerance (ppm)**: | |
| 88 The tolerance for matching peaks to markers based on their mass-to-charge ratio (m/z). The value is specified in parts per million (ppm). The tolerance is applied symmetrically (±), so a value of 10 will match peaks within ±10 ppm of the target m/z. | |
| 89 | |
| 90 - **Retention Time Tolerance**: | |
| 91 The tolerance for matching peaks to markers based on their retention time. The value is specified in the same units as the input data. The tolerance is applied symmetrically (±), so a value of 10 will match peaks within ±10 units of the target retention time. | |
| 92 | |
| 93 **Outputs** | |
| 94 | |
| 95 - **Filtered Peaks Table**: | |
| 96 A tabular file containing the peaks that matched the target markers based on the specified tolerances. | |
| 97 | |
| 98 **Example Usage** | |
| 99 | |
| 100 This tool can be used to filter peaks from a mass spectrometry dataset based on a list of known target markers, enabling targeted analysis of specific compounds. | |
| 43 ]]></help> | 101 ]]></help> |
| 44 <citations> | 102 <citations> |
| 45 <citation type="doi">10.25080/Majora-92bf1922-00a</citation> | 103 <citation type="doi">10.25080/Majora-92bf1922-00a</citation> |
| 46 </citations> | 104 </citations> |
| 47 </tool> | 105 </tool> |
