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