annotate modify_snp_table.xml @ 11:d82a83653e14

Uploaded
author rico
date Thu, 05 Apr 2012 15:16:39 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
d82a83653e14 Uploaded
rico
parents:
diff changeset
1 <tool id="gd_modify_snp_table" name="Modify" version="1.0.0">
d82a83653e14 Uploaded
rico
parents:
diff changeset
2 <description>a SNP table</description>
d82a83653e14 Uploaded
rico
parents:
diff changeset
3
d82a83653e14 Uploaded
rico
parents:
diff changeset
4 <command interpreter="python">
d82a83653e14 Uploaded
rico
parents:
diff changeset
5 modify_snp_table.py "$input" "$p1_input" "$output"
d82a83653e14 Uploaded
rico
parents:
diff changeset
6 #if $limit_coverage.choice == "0"
d82a83653e14 Uploaded
rico
parents:
diff changeset
7 "-1" "-1" "-1" "-1"
d82a83653e14 Uploaded
rico
parents:
diff changeset
8 #else
d82a83653e14 Uploaded
rico
parents:
diff changeset
9 "${limit_coverage.lo_coverage}" "${limit_coverage.hi_coverage}" "${limit_coverage.low_ind_cov}" "${limit_coverage.lo_quality}"
d82a83653e14 Uploaded
rico
parents:
diff changeset
10 #end if
d82a83653e14 Uploaded
rico
parents:
diff changeset
11 #for $individual, $individual_col in zip($input.dataset.metadata.individual_names, $input.dataset.metadata.individual_columns)
d82a83653e14 Uploaded
rico
parents:
diff changeset
12 #set $arg = '%s:%s' % ($individual_col, $individual)
d82a83653e14 Uploaded
rico
parents:
diff changeset
13 "$arg"
d82a83653e14 Uploaded
rico
parents:
diff changeset
14 #end for
d82a83653e14 Uploaded
rico
parents:
diff changeset
15 </command>
d82a83653e14 Uploaded
rico
parents:
diff changeset
16
d82a83653e14 Uploaded
rico
parents:
diff changeset
17 <inputs>
d82a83653e14 Uploaded
rico
parents:
diff changeset
18 <param name="input" type="data" format="wsf" label="SNP table" />
d82a83653e14 Uploaded
rico
parents:
diff changeset
19 <param name="p1_input" type="data" format="ind" label="Population individuals" />
d82a83653e14 Uploaded
rico
parents:
diff changeset
20 <conditional name="limit_coverage">
d82a83653e14 Uploaded
rico
parents:
diff changeset
21 <param name="choice" type="select" format="integer" label="Option">
d82a83653e14 Uploaded
rico
parents:
diff changeset
22 <option value="0" selected="true">add columns to the SNP table</option>
d82a83653e14 Uploaded
rico
parents:
diff changeset
23 <option value="1">discard some SNPs</option>
d82a83653e14 Uploaded
rico
parents:
diff changeset
24 </param>
d82a83653e14 Uploaded
rico
parents:
diff changeset
25 <when value="0" />
d82a83653e14 Uploaded
rico
parents:
diff changeset
26 <when value="1">
d82a83653e14 Uploaded
rico
parents:
diff changeset
27 <param name="lo_coverage" type="integer" min="0" value="0" label="Lower bound on total coverage" />
d82a83653e14 Uploaded
rico
parents:
diff changeset
28 <param name="hi_coverage" type="integer" min="0" value="1000" label="Upper bound on total coverage" />
d82a83653e14 Uploaded
rico
parents:
diff changeset
29 <param name="low_ind_cov" type="integer" min="0" value="0" label="Lower bound on individual coverage" />
d82a83653e14 Uploaded
rico
parents:
diff changeset
30 <param name="lo_quality" type="integer" min="0" value="0" label="Lower bound on individual quality values" />
d82a83653e14 Uploaded
rico
parents:
diff changeset
31 </when>
d82a83653e14 Uploaded
rico
parents:
diff changeset
32 </conditional>
d82a83653e14 Uploaded
rico
parents:
diff changeset
33 </inputs>
d82a83653e14 Uploaded
rico
parents:
diff changeset
34
d82a83653e14 Uploaded
rico
parents:
diff changeset
35 <outputs>
d82a83653e14 Uploaded
rico
parents:
diff changeset
36 <data name="output" format="wsf" metadata_source="input" />
d82a83653e14 Uploaded
rico
parents:
diff changeset
37 </outputs>
d82a83653e14 Uploaded
rico
parents:
diff changeset
38
d82a83653e14 Uploaded
rico
parents:
diff changeset
39 <tests>
d82a83653e14 Uploaded
rico
parents:
diff changeset
40 <test>
d82a83653e14 Uploaded
rico
parents:
diff changeset
41 <param name="input" value="genome_diversity/test_in/sample.wsf" ftype="wsf" />
d82a83653e14 Uploaded
rico
parents:
diff changeset
42 <param name="p1_input" value="genome_diversity/test_in/a.ind" ftype="ind" />
d82a83653e14 Uploaded
rico
parents:
diff changeset
43 <param name="choice" value="1" />
d82a83653e14 Uploaded
rico
parents:
diff changeset
44 <param name="lo_coverage" value="0" />
d82a83653e14 Uploaded
rico
parents:
diff changeset
45 <param name="hi_coverage" value="1000" />
d82a83653e14 Uploaded
rico
parents:
diff changeset
46 <param name="low_ind_cov" value="3" />
d82a83653e14 Uploaded
rico
parents:
diff changeset
47 <param name="lo_quality" value="30" />
d82a83653e14 Uploaded
rico
parents:
diff changeset
48 <output name="output" file="genome_diversity/test_out/modify_snp_table/modify.wsf" />
d82a83653e14 Uploaded
rico
parents:
diff changeset
49 </test>
d82a83653e14 Uploaded
rico
parents:
diff changeset
50 </tests>
d82a83653e14 Uploaded
rico
parents:
diff changeset
51
d82a83653e14 Uploaded
rico
parents:
diff changeset
52 <help>
d82a83653e14 Uploaded
rico
parents:
diff changeset
53 **What it does**
d82a83653e14 Uploaded
rico
parents:
diff changeset
54
d82a83653e14 Uploaded
rico
parents:
diff changeset
55 The user specifies that some of the individuals in the selected SNP table are
d82a83653e14 Uploaded
rico
parents:
diff changeset
56 form a "population" that has been previously defined using the Galaxy tool to
d82a83653e14 Uploaded
rico
parents:
diff changeset
57 select individuals from a SNP table. One option is for the program to append
d82a83653e14 Uploaded
rico
parents:
diff changeset
58 four columns to the table, giving the total counts for the two alleles, the
d82a83653e14 Uploaded
rico
parents:
diff changeset
59 "genotype" for the population and the maximum quality value, taken over all
d82a83653e14 Uploaded
rico
parents:
diff changeset
60 individuals in the population. If all defined genotypes in the population
d82a83653e14 Uploaded
rico
parents:
diff changeset
61 are 2 (agree with the reference), the population's genotype is 2; similarly
d82a83653e14 Uploaded
rico
parents:
diff changeset
62 for 0; otherwise the genotype is 1 (unless all individuals have undefined
d82a83653e14 Uploaded
rico
parents:
diff changeset
63 genotype, in which case it is -1. The other option is to remove rows from
d82a83653e14 Uploaded
rico
parents:
diff changeset
64 the table for which the total coverage for the population is either too low
d82a83653e14 Uploaded
rico
parents:
diff changeset
65 or too high, and/or if the individual coverage or quality value is too low.
d82a83653e14 Uploaded
rico
parents:
diff changeset
66 </help>
d82a83653e14 Uploaded
rico
parents:
diff changeset
67 </tool>