Mercurial > repos > malex > secimtools
comparison compare_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 |
comparison
equal
deleted
inserted
replaced
0:b54326490b4d | 1:2e7d47c0b027 |
---|---|
1 <tool id="secimtools_compare_flags" name="Compare Flags" version="@WRAPPER_VERSION@"> | |
2 <description>within a flag file.</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements" /> | |
7 <command><![CDATA[ | |
8 compare_flags.py | |
9 --input $input | |
10 --output $output | |
11 --flag1 $flag1 | |
12 --flag2 $flag2 | |
13 ]]></command> | |
14 <inputs> | |
15 <param name="input" type="data" format="tabular" label="Flag File" | |
16 help="Input tab-separated Flag File. If file is not tab separated see TIP below."/> | |
17 <param name="flag1" type="text" size="30" optional="False" label="Column Name for Flag 1" help="Name of the column containing the first flag to compare"/> | |
18 <param name="flag2" type="text" size="30" optional="False" label="Column Name for Flag 2" help="Name of the column containing the second flag to compare"/> | |
19 </inputs> | |
20 <outputs> | |
21 <data format="tabular" name="output" label="${tool.name} on ${on_string}: Flag Feature"/> | |
22 </outputs> | |
23 <tests> | |
24 <test> | |
25 <param name="input" value="ST000006_run_order_regression_flags.tsv"/> | |
26 <param name="flag1" value="flag_feature_runOrder_pval_05" /> | |
27 <param name="flag2" value="flag_feature_runOrder_pval_01" /> | |
28 <output name="output" file="ST000006_compare_flags_output.tsv" /> | |
29 </test> | |
30 </tests> | |
31 <help><![CDATA[ | |
32 | |
33 | |
34 **Tool Description** | |
35 | |
36 This tool compares 2 columns containing binary indicators (flags) in a flag file and generates a 'cross tabulation' results file. | |
37 Flags from multiple flag files can by combined by first running the 'Merge_Flags' tool. | |
38 | |
39 -------------------------------------------------------------------------------- | |
40 | |
41 **Input** | |
42 | |
43 The tool is intended to work with Flag Files but will work with Wide Format Datasets as well. Column names should be used instead of flag names for Wide Format Datasets. | |
44 | |
45 | |
46 **Flag File:** | |
47 | |
48 A wide format dataset that contains flags for each sample or feature: | |
49 | |
50 +----------+---------+---------+---------+-----+ | |
51 | Feature | flag_A | flag_B | flag_C | ... | | |
52 +==========+=========+=========+=========+=====+ | |
53 | one | 0 | 0 | 0 | ... | | |
54 +----------+---------+---------+---------+-----+ | |
55 | two | 0 | 1 | 1 | ... | | |
56 +----------+---------+---------+---------+-----+ | |
57 | three | 0 | 1 | 0 | ... | | |
58 +----------+---------+---------+---------+-----+ | |
59 | four | 1 | 0 | 0 | ... | | |
60 +----------+---------+---------+---------+-----+ | |
61 | ... | ... | ... | ... | ... | | |
62 +----------+---------+---------+---------+-----+ | |
63 | |
64 **NOTE:** The 'Feature' column defines the rows within a flag file. | |
65 | |
66 @WIDE@ | |
67 | |
68 | |
69 | |
70 -------------------------------------------------------------------------------- | |
71 | |
72 **Output** | |
73 | |
74 The tool outputs a single TSV file containing the frequencies of the compared flags in the appropriate cells. | |
75 An example is shown below: | |
76 | |
77 +-----------------+----------------+-----------------+ | |
78 | |flag_A_[value1] | flag_A_[value2] | | |
79 +=================+================+=================+ | |
80 | flag_B_[value1] | 12 | 22 | | |
81 +-----------------+----------------+-----------------+ | |
82 | flag_B_[value2] | 0 | 100 | | |
83 +-----------------+----------------+-----------------+ | |
84 | |
85 | |
86 ]]></help> | |
87 <expand macro="citations"/> | |
88 </tool> |