comparison coefficient_variation_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_coefficient_variation_flags" name="Coefficient of Variation (CV) Flags" version="@WRAPPER_VERSION@">
2 <description>- Calculate the coefficient of variation and flag potential outliers.</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements" />
7 <command detect_errors="exit_code"><![CDATA[
8 coefficient_variation_flags.py
9 --input $input
10 --design $design
11 --ID $uniqID
12 --figure $CVplot
13 --flag $CVflag
14 #if $group:
15 --group $group
16 #end if
17 #if $CVcutoff:
18 --CVcutoff $CVcutoff
19 #end if
20 ]]></command>
21 <inputs>
22 <param name="input" type="data" format="tabular" label="Wide Dataset" help="Input your tab-separated wide format dataset. If file is not tab separated see TIP below."/>
23 <param name="design" type="data" format="tabular" label="Design File" help="Input your design file (tab-separated). Note: you need a 'sampleID' column. If not tab separated see TIP below."/>
24 <param name="uniqID" type="text" size="30" value="" label="Unique Feature ID" help="Name of the column in your wide dataset that contains unique feature identifiers."/>
25 <param name="group" type="text" size="30" label="Group/Treatment [Optional]" help="Name of the column in your design file that contains group classifications." />
26 <param name="CVcutoff" type="float" optional="true" size="4" value="0.1" label="CV Cutoff [Optional]" help="The cutoff (in decimals) that specifies the proportion of features to flag. The default CV cutoff is 0.1 which implies that 10% of the features with the largest CV-s will be flagged."/>
27 </inputs>
28 <outputs>
29 <data format="pdf" name="CVplot" label="${tool.name} on ${on_string}: Plot" />
30 <data format="tabular" name="CVflag" label="${tool.name} on ${on_string}: Flag" />
31 </outputs>
32 <tests>
33 <test>
34 <param name="input" value="ST000006_data.tsv"/>
35 <param name="design" value="ST000006_design.tsv"/>
36 <param name="uniqID" value="Retention_Index" />
37 <param name="group" value="White_wine_type_and_source" />
38 <output name="CVplot" file="ST000006_coefficient_variation_flags_with_group_figure.pdf" compare="sim_size" delta="100000"/>
39 <output name="CVflag" file="ST000006_coefficient_variation_flags_with_group_flag.tsv" />
40 </test>
41 </tests>
42 <help><![CDATA[
43
44 @TIP_AND_WARNING@
45
46 **Tool Description**
47
48 This tool calculates the coefficient of variation (standard deviation as a percentage of the mean) and is often used to look at the consistency of features across samples.
49 The user can define what percent of features with the highest CV to flag.
50 If no percentage is selected, then the top 10% of features with the highest CV are flagged (default value of 0.1).
51 The CV value corresponding to the percentage is given in the resulting histogram plot.
52
53 --------------------------------------------------------------------------------
54
55 **Input**
56
57 - Two input datasets are required.
58
59 @WIDE@
60
61 **NOTE:** The sample IDs must match the sample IDs in the Design File (below).
62 Extra columns will automatically be ignored.
63
64 @METADATA@
65
66 @UNIQID@
67
68 **CV cutoff [Optional]**
69
70 - The cutoff (in decimals) that specifies the proportion of the features to flag. The default CV cutoff is 0.1 which implies that 10% of the features with the largest CV will be flagged. If the Group/Treatment variable is provided, then the analysis is performed independently for each group. If no Group/Treatment variable is provided, the analysis is performed on the entire dataset.
71
72 @GROUP_OPTIONAL@
73
74
75 --------------------------------------------------------------------------------
76
77 **Output**
78
79 This tool outputs two different files:
80
81 (1) a TSV file containing the CV Flags for each feature for each group (if group variable is specified). A flag value of one (1) corresponds to features with large CV values as specified by the CV cutoff.
82 (2) a PDF file containing histograms with overlayed density plots of the coefficients of variation for each group (optional) and a summary density plot containing the densities for each group without the histograms.
83 ]]></help>
84 <expand macro="citations"/>
85 </tool>