Mercurial > repos > recetox > ipapy2_clustering
comparison ipapy2_clustering.xml @ 0:cb18b8fcb441 draft default tip
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/ipapy2 commit 64b61ff2823b4f54868c0ab7a4c0dc49eaf2979a
author | recetox |
---|---|
date | Fri, 16 May 2025 08:02:15 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:cb18b8fcb441 |
---|---|
1 <tool id="ipapy2_clustering" name="ipaPy2 clustering" version="@TOOL_VERSION@+galaxy0" profile="@PROFILE@"> | |
2 <description>clustering MS1 features based on correlation across samples as preparation for ipaPy2</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements"/> | |
7 <command detect_errors="exit_code"><![CDATA[ | |
8 python3 '${__tool_directory__}/ipapy2_clustering.py' | |
9 --input_dataset '${unclustered_MS1_intensities}' '${unclustered_MS1_intensities.ext}' | |
10 --Cthr ${Cthr} | |
11 --RTwin ${RTwin} | |
12 --Intmode ${Intmode} | |
13 --output_dataset '${clustered_MS1_intensities}' '${clustered_MS1_intensities.ext}' | |
14 | |
15 ]]></command> | |
16 <inputs> | |
17 <param label="Unclustered data" name="unclustered_MS1_intensities" type="data" format="csv,tsv,tabular,parquet" help="a csv file containing the measured intensities across several samples, yet to be clustered"/> | |
18 <section name="clustering" title="clustering settings" expanded="true"> | |
19 <param name="Cthr" type="float" value="0.8" min="0" max="1"> | |
20 <label>correlation threshold</label> | |
21 <help>Minimum correlation allowed in each cluster. Default value 0.8.</help> | |
22 </param> | |
23 <param name="RTwin" type="float" value="1" min="0"> | |
24 <label>RT threshold</label> | |
25 <help>Maximum difference in RT time between features in the same cluster. Default value 1.</help> | |
26 </param> | |
27 <param name="Intmode" type="select"> | |
28 <label>intensity mode</label> | |
29 <help>intensity mode. Default 'max' or 'ave'.</help> | |
30 <option value="max" selected="true">max</option> | |
31 <option value="ave">ave</option> | |
32 </param> | |
33 </section> | |
34 </inputs> | |
35 <outputs> | |
36 <data label="${tool.name} on ${on_string}" name="clustered_MS1_intensities" format_source="unclustered_MS1_intensities" /> | |
37 </outputs> | |
38 <tests> | |
39 <test> | |
40 <param name="unclustered_MS1_intensities" value="unclustered_MS1_intensities.csv"/> | |
41 <output name="clustered_MS1_intensities" file="clustered_MS1_intensities.csv"/> | |
42 </test> | |
43 </tests> | |
44 <help><![CDATA[ | |
45 Before using the ipaPy2 package, the processed data coming from an untargeted metabolomics experiment must be properly prepared. | |
46 The data must be organized in a pandas dataframe containing the following columns: | |
47 | |
48 - **ids**: an unique numeric id for each mass spectrometry feature | |
49 - **mzs**: mass-to-charge ratios, usually the average across different samples. | |
50 - **RTs**: retention times in seconds, usually the average across different samples. | |
51 - **Int**: representative (e.g., maximum or average) intensity detected for each feature across samples (either peak area or peak intensity) | |
52 | |
53 The clustering of the features is a necessary and must be performed before running the IPA method. | |
54 For this step, the use of widely used data processing software such as mzMatch and CAMERA is recommended. | |
55 Nevertheless, the ipaPy2 library provides a function (clusterFeatures()) able to perform such step, | |
56 starting from a dataframe containing the measured intensities across several samples (at least 3 samples, the more samples the better). | |
57 Such dataframe should be organized as follows: | |
58 | |
59 +----+------+-----+-------------+-------------+-------------+ | |
60 | id | mz | rt | intensity_1 | intensity_2 | intensity_3 | | |
61 +====+======+=====+=============+=============+=============+ | |
62 | 1 | 100 | 10 | 500 | 600 | 700 | | |
63 +----+------+-----+-------------+-------------+-------------+ | |
64 | 2 | 200 | 20 | 800 | 900 | 1000 | | |
65 +----+------+-----+-------------+-------------+-------------+ | |
66 | 3 | 300 | 30 | 1100 | 1200 | 1300 | | |
67 +----+------+-----+-------------+-------------+-------------+ | |
68 ]]></help> | |
69 <expand macro="citations"/> | |
70 </tool> |