annotate dpmix.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_dpmix" name="Admixture" version="1.0.0">
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
2 <description>using dynamic programming</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 dpmix.py "$input" "$data_source" "$switch_penalty" "$ap1_input" "$ap2_input" "$p_input" "$output" "$output2" "$output2.files_path" "$input.dataset.metadata.dbkey" "$input.dataset.metadata.ref" "$GALAXY_DATA_INDEX_DIR" "gd.heterochromatic.loc"
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
6 #for $individual, $individual_col in zip($input.dataset.metadata.individual_names, $input.dataset.metadata.individual_columns)
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
7 #set $arg = '%s:%s' % ($individual_col, $individual)
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
8 "$arg"
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
9 #end for
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
10 </command>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
11
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
12 <inputs>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
13 <param name="input" type="data" format="gd_snp" label="Dataset">
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
14 <validator type="unspecified_build" message="This dataset does not have a reference species and cannot be used with this tool" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
15 </param>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
16 <param name="ap1_input" type="data" format="gd_indivs" label="Ancestral population 1 individuals" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
17 <param name="ap2_input" type="data" format="gd_indivs" label="Ancestral population 2 individuals" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
18 <param name="p_input" type="data" format="gd_indivs" label="Potentially admixed individuals" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
19
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
20 <param name="data_source" type="select" format="integer" label="Data source">
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
21 <option value="0" selected="true">sequence coverage</option>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
22 <option value="1">estimated genotype</option>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
23 </param>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
24
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
25 <param name="switch_penalty" type="integer" min="0" value="10" label="Switch penalty" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
26 </inputs>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
27
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
28 <outputs>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
29 <data name="output" format="tabular" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
30 <data name="output2" format="html" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
31 </outputs>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
32
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
33 <tests>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
34 <test>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
35 <param name="input" value="test_in/sample.gd_snp" ftype="gd_snp" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
36 <param name="ap1_input" value="test_in/a.gd_indivs" ftype="gd_indivs" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
37 <param name="ap2_input" value="test_in/b.gd_indivs" ftype="gd_indivs" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
38 <param name="p_input" value="test_in/c.gd_indivs" ftype="gd_indivs" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
39 <param name="data_source" value="0" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
40 <param name="switch_penalty" value="10" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
41
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
42 <output name="output" file="test_out/dpmix/dpmix.tabular" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
43
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
44 <output name="output2" file="test_out/dpmix/dpmix.html" ftype="html" compare="diff" lines_diff="2">
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
45 <extra_files type="file" name="dpmix.pdf" value="test_out/dpmix/dpmix.pdf" compare="sim_size" delta = "10000" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
46 <extra_files type="file" name="misc.txt" value="test_out/dpmix/misc.txt" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
47 </output>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
48 </test>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
49 </tests>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
50
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
51 <help>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
52 **What it does**
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
53
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
54 The user specifies two "ancestral" populations (i.e., sources for
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
55 chromosomes) and a set of potentially admixed individuals, and chooses
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
56 between the sequence coverage or the estimated genotypes to measure
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
57 the similarity of genomic intervals in admixed individuals to the two
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
58 classes of ancestral chromosomes. The user also picks a "switch penalty",
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
59 typically between 10 and 100. For each potentially admixed individual,
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
60 the program divides the genome into three "genotypes": (0) homozygous
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
61 for the second ancestral population (i.e., both chromosomes from that
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
62 population), (1) heterozygous, or (2) homozygous for the second ancestral
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
63 population. Parts of a chromosome that are labeled as "heterochromatic"
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
64 are given the non-genotype, 3. Smaller values of the switch penalty
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
65 (corresponding to more ancient admixture events) generally lead to the
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
66 reconstruction of more frequent changes between genotypes.
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
67 </help>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
68 </tool>