Mercurial > repos > malex > secimtools
comparison merge_flags.xml @ 1:2e7d47c0b027 draft
"planemo upload for repository https://malex@toolshed.g2.bx.psu.edu/repos/malex/secimtools"
author | malex |
---|---|
date | Mon, 08 Mar 2021 22:04:06 +0000 |
parents | |
children | caba07f41453 |
comparison
equal
deleted
inserted
replaced
0:b54326490b4d | 1:2e7d47c0b027 |
---|---|
1 <tool id="secimtools_merge_flags" name="Merge Flag Files" version="@WRAPPER_VERSION@"> | |
2 <description>with the same unique identifiers into a single file.</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements" /> | |
7 <command><![CDATA[ | |
8 merge_flags.py | |
9 --input "$input" | |
10 --output "$output" | |
11 #set names = '" "'.join( [ str( $i.display_name ) for $i in $input ] ) | |
12 --filename "${names}" | |
13 #if $flagUniqID | |
14 --flagUniqID $flagUniqID | |
15 #end if | |
16 ]]></command> | |
17 <inputs> | |
18 <param name="input" format="tabular" type="data" label="Input Flag Files" multiple="true" help="Input your tab-separated flag files. CTRL+CLICK to select multiple files. If not tab separated see TIP below." /> | |
19 <param name="flagUniqID" type="text" size="30" value="" label="Unique identifier in the flag files (feature or sample)" help="Name of the column in your flag file that contains unique identifiers."/> | |
20 </inputs> | |
21 <outputs> | |
22 <data format="tabular" name="output" label="${tool.name} on ${on_string}: Flags"/> | |
23 </outputs> | |
24 <tests> | |
25 <test> | |
26 <param name="input" value="ST000006_run_order_regression_flags.tsv,ST000006_lasso_enet_var_select_flags.tsv"/> | |
27 <param name="flagUniqID" value="Retention_Index" /> | |
28 <param name="filename" value="ST000006_run_order_regression_flags ST000006_lasso_enet_var_select_flags" /> | |
29 <output name="output" file="ST000006_merge_flags_output.tsv" /> | |
30 </test> | |
31 </tests> | |
32 <help><![CDATA[ | |
33 | |
34 @TIP_AND_WARNING@ | |
35 | |
36 **Tool Description** | |
37 | |
38 The tool merges two or more flag files together. The flag files can be either in wide format or in design format. | |
39 | |
40 The merging requirements are: | |
41 | |
42 (1) the number of rows should be the same in all files being merged and | |
43 (2) all files should contain the same unique ID column name to merge by. | |
44 | |
45 **Note:** More broadly, the tool can merge non-metabolomics data as long ast he above requirements are met. | |
46 | |
47 | |
48 -------------------------------------------------------------------------------- | |
49 | |
50 **Input** | |
51 | |
52 - Two or more datasets are required. | |
53 | |
54 @WIDE@ | |
55 | |
56 **NOTE:** The sample IDs must match the sample IDs in the Design File (below). | |
57 Extra columns will automatically be ignored. | |
58 | |
59 @METADATA@ | |
60 | |
61 **Unique ID for Flag file (feature ID or sample ID).** | |
62 | |
63 - Name of the column in your Flag file that contains unique IDs. | |
64 | |
65 | |
66 -------------------------------------------------------------------------------- | |
67 | |
68 **Output** | |
69 | |
70 The TSV output contains all columns from the flag files. The column with the unique row ID will be included once in the output dataset. | |
71 | |
72 **Note:** If the input flag files have the same flag column name in multiple files, the merged file will have columns from all imputed files. | |
73 To distinguish columns obtained from different files, column names will be altered by appending the corresponding file name to the end of the column name. | |
74 All non-supported file name characters will be changed to ‘_’. | |
75 | |
76 | |
77 ]]></help> | |
78 <expand macro="citations"/> | |
79 </tool> |