Mercurial > repos > recetox > recetox_aplcms_align_features
annotate recetox_aplcms_align_features.xml @ 6:c280a10b274a draft
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 505c3374a3e1e9aa450fcb752f2b8f87558fedbb
| author | recetox | 
|---|---|
| date | Thu, 25 May 2023 09:12:35 +0000 | 
| parents | 7bb4564d7b1a | 
| children | 88ae786c9592 | 
| rev | line source | 
|---|---|
| 
2
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
1 <tool id="recetox_aplcms_align_features" name="recetox-aplcms - align features" version="@TOOL_VERSION@+galaxy0"> | 
| 
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
2 <description>align peaks across samples</description> | 
| 
0
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
3 <macros> | 
| 
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
4 <import>macros.xml</import> | 
| 
2
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
5 <import>help.xml</import> | 
| 
0
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
6 </macros> | 
| 
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
7 <expand macro="creator"/> | 
| 
2
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
8 <expand macro="requirements"/> | 
| 
0
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
9 | 
| 
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
10 <command detect_errors="aggressive"><![CDATA[ | 
| 
4
 
dd9469db158b
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit ce3d81b59ef0895b61fcb1e17fa1553ccb28b077
 
recetox 
parents: 
3 
diff
changeset
 | 
11 Rscript -e "cluster <- \${GALAXY_SLOTS:-1}" -e 'source("${__tool_directory__}/utils.R")' -e 'source("${run_script}")' | 
| 
0
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
12 ]]></command> | 
| 
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
13 <configfiles> | 
| 
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
14 <configfile name="run_script"><![CDATA[ | 
| 
2
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
15 #set filenames = str("', '").join([str($f) for $f in $files]) | 
| 
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
16 feature_tables <- load_parquet_collection(c('$filenames')) | 
| 
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
17 sample_names <- unlist(lapply(feature_tables, load_sample_name)) | 
| 
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
18 | 
| 
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
19 validate_sample_names(sample_names) | 
| 
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
20 | 
| 
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
21 ordering <- order(sample_names) | 
| 
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
22 feature_tables <- feature_tables[ordering] | 
| 
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
23 sample_names <- sample_names[ordering] | 
| 
0
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
24 | 
| 
2
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
25 aligned_features <- create_aligned_feature_table( | 
| 
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
26 features_table = dplyr::bind_rows(feature_tables), | 
| 
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
27 min_occurrence = $min_occurrence, | 
| 
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
28 sample_names = sample_names, | 
| 
5
 
7bb4564d7b1a
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 724ecb1b81ebd8a67488b8a9397177b2ff0357db
 
recetox 
parents: 
4 
diff
changeset
 | 
29 mz_tol_relative = $mz_tol_relative_ppm * 1e-06, | 
| 
 
7bb4564d7b1a
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 724ecb1b81ebd8a67488b8a9397177b2ff0357db
 
recetox 
parents: 
4 
diff
changeset
 | 
30 rt_tol_relative = $rt_tol, | 
| 
4
 
dd9469db158b
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit ce3d81b59ef0895b61fcb1e17fa1553ccb28b077
 
recetox 
parents: 
3 
diff
changeset
 | 
31 cluster = cluster | 
| 
2
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
32 ) | 
| 
0
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
33 | 
| 
2
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
34 save_aligned_features(aligned_features, '$metadata_file', '$rt_file', '$intensity_file') | 
| 
0
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
35 ]]></configfile> | 
| 
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
36 </configfiles> | 
| 
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
37 | 
| 
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
38 <inputs> | 
| 
2
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
39 <param name="files" type="data_collection" collection_type="list" format="parquet" | 
| 
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
40 label="Clustered features" help="List of tables containing clustered features." /> | 
| 
5
 
7bb4564d7b1a
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 724ecb1b81ebd8a67488b8a9397177b2ff0357db
 
recetox 
parents: 
4 
diff
changeset
 | 
41 <expand macro="tolerances"/> | 
| 
3
 
d0b77b35819f
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 4254c6f6f05915ceab5af5d7040ac2c44a8364b4
 
recetox 
parents: 
2 
diff
changeset
 | 
42 <param name="min_occurrence" type="integer" min="2" value="2" label="Minimal occurrence in samples" | 
| 
2
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
43 help="A feature has to show up in at least this number of profiles to be included in the final result." /> | 
| 
0
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
44 </inputs> | 
| 
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
45 | 
| 
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
46 <outputs> | 
| 
2
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
47 <data name="metadata_file" format="parquet" label="${tool.name} on ${on_string} (metadata table)"/> | 
| 
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
48 <data name="rt_file" format="parquet" label="${tool.name} on ${on_string} (rt table)"/> | 
| 
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
49 <data name="intensity_file" format="parquet" label="${tool.name} on ${on_string} (intensity table)"/> | 
| 
0
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
50 </outputs> | 
| 
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
51 | 
| 
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
52 <tests> | 
| 
2
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
53 | 
| 
0
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
54 </tests> | 
| 
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
55 | 
| 
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
56 <help> | 
| 
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
57 <![CDATA[ | 
| 
2
 
4d1583e15960
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 506df2aef355b3791567283e1a175914f06b405a
 
recetox 
parents: 
1 
diff
changeset
 | 
58 @ALIGN_FEATURES_HELP@ | 
| 
0
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
59 | 
| 
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
60 @GENERAL_HELP@ | 
| 
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
61 ]]> | 
| 
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
62 </help> | 
| 
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
63 | 
| 
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
64 <expand macro="citations"/> | 
| 
 
e867e0c90d29
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/recetox_aplcms commit 19de0924a65bc65cbbf7c1fc17e9b5348305f95c
 
recetox 
parents:  
diff
changeset
 | 
65 </tool> | 
