annotate coverage_distributions.xml @ 0:2c498d40ecde

Uploaded
author miller-lab
date Mon, 09 Apr 2012 12:03:06 -0400
parents
children 7a94f11fe71f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
1 <tool id="gd_coverage_distributions" name="Coverage" version="1.0.0">
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
2 <description>distributions</description>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
3
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
4 <command interpreter="python">
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
5 coverage_distributions.py "$input" "0" "$output" "$output.extra_files_path"
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
6 #if $individuals.choice == '0'
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
7 "all_individuals"
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
8 #else if $individuals.choice == '1'
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
9 #set $arg = 'individuals:%s' % str($individuals.p1_input)
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
10 "$arg"
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
11 #else if $individuals.choice == '2'
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
12 #for $population in $individuals.populations
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
13 #set $arg = 'population:%s:%s' % (str($population.p_input), str($population.p_input.name))
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
14 "$arg"
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
15 #end for
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
16 #end if
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
17 #for $individual, $individual_col in zip($input.dataset.metadata.individual_names, $input.dataset.metadata.individual_columns)
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
18 #set $individual_arg = 'individual:%s:%s' % ($individual_col, $individual)
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
19 "$individual_arg"
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
20 #end for
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
21 </command>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
22
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
23 <inputs>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
24 <param name="input" type="data" format="wsf" label="SNP table" />
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
25
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
26 <conditional name="individuals">
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
27 <param name="choice" type="select" label="Individuals">
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
28 <option value="0" selected="true">All</option>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
29 <option value="1">Individuals in a population</option>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
30 <option value="2">Population totals</option>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
31 </param>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
32 <when value="0" />
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
33 <when value="1">
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
34 <param name="p1_input" type="data" format="ind" label="Population individuals" />
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
35 </when>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
36 <when value="2">
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
37 <repeat name="populations" title="Population" min="1">
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
38 <param name="p_input" type="data" format="ind" label="individuals" />
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
39 </repeat>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
40 </when>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
41 </conditional>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
42
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
43 <!--
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
44 <param name="data_source" type="select" label="Data source">
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
45 <option value="0" selected="true">Sequence coverage</option>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
46 <option value="1">Genotype quality</option>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
47 </param>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
48 -->
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
49 </inputs>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
50
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
51 <outputs>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
52 <data name="output" format="html" />
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
53 </outputs>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
54
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
55 <tests>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
56 <test>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
57 <param name="input" value="test_in/sample.wsf" ftype="wsf" />
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
58 <param name="choice" value="0" />
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
59 <output name="output" file="test_out/coverage_distributions/coverage.html" ftype="html" compare="diff" lines_diff="2">
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
60 <extra_files type="file" name="coverage.pdf" value="test_out/coverage_distributions/coverage.pdf" compare="sim_size" delta = "1000"/>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
61 <extra_files type="file" name="coverage.txt" value="test_out/coverage_distributions/coverage.txt" />
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
62 </output>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
63 </test>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
64 </tests>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
65
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
66 <help>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
67 **What it does**
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
68
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
69 This tool reports distributions of SNP reliability indicators for
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
70 individuals or populations. The reliability is measured by the sequence
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
71 coverage. Textual and graphical reports are generated, where the text
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
72 output gives the cumulative distributions.
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
73 </help>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
74 </tool>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
75