Mercurial > repos > computational-metabolomics > dimspy_merge_peaklists
comparison merge_peaklists.xml @ 0:201a5178b0cb draft
"planemo upload for repository https://github.com/computational-metabolomics/dimspy-galaxy commit 6321871098b2c4bc9e321d20b7e66fff3d641839"
author | computational-metabolomics |
---|---|
date | Sat, 11 Apr 2020 16:46:21 -0400 |
parents | |
children | 50ec7a43cb62 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:201a5178b0cb |
---|---|
1 <tool id="dimspy_merge_peaklists" name="Merge peaklists" version="@TOOL_VERSION@+galaxy@GALAXY_TOOL_VERSION@"> | |
2 <description> produced by the tools 'Process scans (and SIM-Stitch)' or 'Replicate filter'</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements" /> | |
7 <command detect_errors="exit_code"> | |
8 <![CDATA[ | |
9 dimspy merge-peaklists | |
10 #for $fn in $hdf5_files_in | |
11 --input '$fn' | |
12 #end for | |
13 #if $multilist.flag == 'true' | |
14 --output . | |
15 --filelist $multilist.filelist' | |
16 #else | |
17 --output '$hdf5_file_out' | |
18 #if $filelist | |
19 --filelist '$multilist.filelist' | |
20 #end if | |
21 #end if | |
22 ]]> | |
23 </command> | |
24 <inputs> | |
25 <param name="hdf5_files_in" argument="--input" type="data" format="h5" multiple="true" min="2" label="Peaklist to merge" help="Select a minimum of two hdf5 files" /> | |
26 <conditional name="multilist"> | |
27 <param name="flag" type="boolean" checked="false" truevalue="true" falsevalue="false" label="Create multiple merged peaklists?" help="Based on a 'multilist' column in the filelist text file, divide the peaklists into different lists | |
28 e.g. [pl1, pl2, pl3, pl4] can be converted to 2 new lists: | |
29 [pl1, pl3] [pl2, pl4]"/> | |
30 <when value="true"> | |
31 <param name="filelist" argument="--filelist" type="data" format="tsv,tabular" label="Filelist" /> | |
32 </when> | |
33 <when value="false"> | |
34 <param name="filelist" argument="--filelist" type="data" format="tsv,tabular" optional="true" label="Filelist" /> | |
35 </when> | |
36 </conditional> | |
37 </inputs> | |
38 <outputs> | |
39 <collection name="multiple_merged" type="list" label="${tool.name} on ${on_string}: Peaklists (HDF5)"> | |
40 <filter>multilist["flag"] is True</filter> | |
41 <discover_datasets pattern="(?P<designation>.+)\.hdf5" format="h5" directory="." visible="false" /> | |
42 </collection> | |
43 <data name="hdf5_file_out" format="h5" label="${tool.name} on ${on_string}: Peaklists (HDF5 file)"> | |
44 <filter>multilist["flag"] is False</filter> | |
45 </data> | |
46 </outputs> | |
47 <tests> | |
48 <test> | |
49 <param name="hdf5_files_in" value="pls.h5,pls_QC18.h5" ftype="h5" /> | |
50 <output name="hdf5_file_out" value="merged_01.h5" ftype="h5" compare="sim_size" /> | |
51 </test> | |
52 <test> | |
53 <param name="hdf5_files_in" value="pls.h5,pls_QC18.h5" ftype="h5" /> | |
54 <conditional name="multilist"> | |
55 <param name="filelist" value="filelist_merge.txt" ftype="tsv"/> | |
56 </conditional> | |
57 <output name="hdf5_file_out" value="merged_02.h5" ftype="h5" compare="sim_size" /> | |
58 </test> | |
59 </tests> | |
60 <help> | |
61 --------------- | |
62 Merge Peaklists | |
63 --------------- | |
64 | |
65 .. | |
66 | |
67 ----------------------------------- | |
68 | |
69 Description | |
70 ----------- | |
71 | |
72 This tool allows users to extract and export specific peaklists from one or more .hdf5, to one or more .hdf5 files. If more-than one .hdf5 file is exported, users can control which subset of peaklists are exported to which .hdf5 file. | |
73 | |
74 | |
75 ----------------------------------- | |
76 | |
77 Parameters | |
78 ---------- | |
79 | |
80 **Peaklist to merge** (REQUIRED; minimally requires two .hdf5 files) - selection menu from which the user must select two or more .hdf5 files from the active Galaxy history. | |
81 | |
82 **NOTE**: if a .hdf5 file containing a peak intensity matrix is selected, then the peaklists used in generating that matrix are extracted from the file e.g. [pl1, pl2, pl3] + [pm456] = [pl1, pl2, pl3] + [pl4, pl5, pl6] = [pl1, pl2, pl3, pl4, pl5, pl6] . | |
83 | |
84 | | |
85 | |
86 **Create multiple merged peaklists** (REQUIRED; default = “No”) - binary toggle: | |
87 | |
88 - **No** - all extracted peaklists are exported to a single .hdf5 file in the active Galaxy history. Metadata associated with each peaklist is also captured in this file. | |
89 | |
90 - **Yes** - multiple .hdf5 files are exported to the active Galaxy history, each of which containing a user-defined subset of the extracted peaklist(s) in accordance with the “multilist” column of the input “Filelist”, e.g. using the mock filelist shown below, two .hdf5 files would be exported to history: | |
91 | |
92 The first .hdf5 file would contain peaklists from [sample_rep1.raw, sample_rep2.raw, blank1_rep1.raw and blank1_rep2.raw], i.e. all filenames associated with multilist value '1' | |
93 | |
94 The second .hdf5 file would contain peaklists from [blank_rep1.raw, blank_rep2.raw, blank_rep3.raw and blank_rep4.raw], i.e. all filenames associated with multilist value '2' | |
95 | |
96 **NOTE** - if for each analysed study sample a corresponding blank sample has been analysed, then the multilist column can be used to pair these together in an output .hdf5 file. This enables sample-specific blank filtering at a later stage. | |
97 | |
98 | | |
99 | |
100 **Filelist / Samplelist** (OPTIONAL) - a selection menu from which one or more filelists can be selected. | |
101 | |
102 **Mock example of a filelist** - the optional multilist column determines which peaklists are exported together in .hdf5 format. | |
103 | |
104 +-----------------+------------+-----------+-------+----------------+-----------+-------+ | |
105 | filename | classLabel | replicate | batch | injectionOrder | multilist | [...] | | |
106 +-----------------+------------+-----------+-------+----------------+-----------+-------+ | |
107 | sample_rep1.raw | sample | 1 | 1 | 1 | 1 | [...] | | |
108 +-----------------+------------+-----------+-------+----------------+-----------+-------+ | |
109 | sample_rep2.raw | sample | 2 | 1 | 2 | 1 | [...] | | |
110 +-----------------+------------+-----------+-------+----------------+-----------+-------+ | |
111 | sample_rep3.raw | sample | 3 | 1 | 3 | 2 | [...] | | |
112 +-----------------+------------+-----------+-------+----------------+-----------+-------+ | |
113 | sample_rep4.raw | sample | 4 | 1 | 4 | 2 | [...] | | |
114 +-----------------+------------+-----------+-------+----------------+-----------+-------+ | |
115 | blank_rep1.raw | blank | 1 | 1 | 5 | 1 | [...] | | |
116 +-----------------+------------+-----------+-------+----------------+-----------+-------+ | |
117 | blank_rep2.raw | blank | 2 | 1 | 6 | 1 | [...] | | |
118 +-----------------+------------+-----------+-------+----------------+-----------+-------+ | |
119 | blank_rep3.raw | blank | 3 | 1 | 7 | 2 | [...] | | |
120 +-----------------+------------+-----------+-------+----------------+-----------+-------+ | |
121 | blank_rep4.raw | blank | 4 | 1 | 8 | 2 | [...] | | |
122 +-----------------+------------+-----------+-------+----------------+-----------+-------+ | |
123 | ... | ... | ... | ... | ... | ... | [...] | | |
124 +-----------------+------------+-----------+-------+----------------+-----------+-------+ | |
125 | |
126 | | |
127 | |
128 ----------------------------------- | |
129 | |
130 Output file(s) | |
131 -------------- | |
132 | |
133 One or more .hdf5 file(s), each containing one or more peaklists. | |
134 | |
135 ----------------------------------- | |
136 | |
137 @github_developers_contributors@ | |
138 @license@ | |
139 </help> | |
140 <expand macro="citations" /> | |
141 </tool> |