annotate prepare_population_structure.xml @ 12:4b6590dd7250

Uploaded
author miller-lab
date Wed, 12 Sep 2012 17:10:26 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
1 <tool id="gd_prepare_population_structure" name="Prepare" version="1.0.0">
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
2 <description>to look for population structure</description>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
3
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
4 <command interpreter="python">
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
5 prepare_population_structure.py "$input" "$min_reads" "$min_qual" "$min_spacing" "$output" "$output.files_path"
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
6 #if $individuals.choice == '0'
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
7 "all_individuals"
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
8 #else if $individuals.choice == '1'
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
9 #for $population in $individuals.populations
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
10 #set $pop_arg = 'population:%s:%s' % (str($population.p_input), str($population.p_input.name))
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
11 "$pop_arg"
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
12 #end for
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
13 #end if
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
14 #for $individual, $individual_col in zip($input.dataset.metadata.individual_names, $input.dataset.metadata.individual_columns)
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
15 #set $arg = 'individual:%s:%s' % ($individual_col, $individual)
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
16 "$arg"
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
17 #end for
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
18 </command>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
19
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
20 <inputs>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
21 <param name="input" type="data" format="gd_snp" label="SNP table" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
22 <param name="min_reads" type="integer" min="0" value="0" label="Minimum reads covering a SNP, per individual" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
23 <param name="min_qual" type="integer" min="0" value="0" label="Minimum quality value, per individual" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
24 <param name="min_spacing" type="integer" min="0" value="0" label="Minimum spacing between SNPs on the same scaffold" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
25 <conditional name="individuals">
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
26 <param name="choice" type="select" label="Individuals">
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
27 <option value="0" selected="true">All</option>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
28 <option value="1">Choose</option>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
29 </param>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
30 <when value="0" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
31 <when value="1">
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
32 <repeat name="populations" title="Population" min="1">
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
33 <param name="p_input" type="data" format="gd_indivs" label="Individuals" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
34 </repeat>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
35 </when>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
36 </conditional>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
37 </inputs>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
38
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
39 <outputs>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
40 <data name="output" format="gd_ped">
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
41 <actions>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
42 <action type="metadata" name="base_name" default="admix" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
43 </actions>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
44 </data>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
45 </outputs>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
46
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
47 <tests>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
48 <test>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
49 <param name="input" value="test_in/sample.gd_snp" ftype="gd_snp" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
50 <param name="min_reads" value="3" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
51 <param name="min_qual" value="30" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
52 <param name="min_spacing" value="0" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
53 <param name="choice" value="0" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
54 <output name="output" file="test_out/prepare_population_structure/prepare_population_structure.html" ftype="html" compare="diff" lines_diff="2">
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
55 <extra_files type="file" name="admix.map" value="test_out/prepare_population_structure/admix.map" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
56 <extra_files type="file" name="admix.ped" value="test_out/prepare_population_structure/admix.ped" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
57 </output>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
58 </test>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
59 </tests>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
60
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
61 <help>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
62 **What it does**
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
63
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
64 The tool converts a SNP table into two tables, called "admix.map" and
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
65 "admix.ped", needed for estimating the population structure. The user
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
66 can read or download those files, or simply pass this tool's output on to
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
67 other programs. The user imposes conditions on which SNPs to consider,
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
68 such as the minimum coverage and/or quality value for every individual,
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
69 or the distance to the closest SNP in the same contig (as named in the
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
70 first column of the SNP table). A useful piece of information produced
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
71 by the tool is the number of SNPs meeting those conditions, which can
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
72 be found by clicking on the "eye" after the program runs.
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
73 </help>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
74 </tool>