annotate pgSnp2gd_snp.xml @ 0:d281062566f9 draft

Imported from capsule None
author devteam
date Mon, 28 Jul 2014 11:55:36 -0400
parents
children 4cd611004dc4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
1 <tool id="pgSnp2gd_snp" name="pgSnp to gd_snp" hidden="false" version="1.0.0">
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
2 <description>Convert from pgSnp to gd_snp</description>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
3 <command interpreter="perl">
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
4 #if $snptab.tab2 == "yes"
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
5 #if $snptab.colsOnly == "addColsOnly" #pgSnp2gd_snp.pl $input1 -tab=$snptab.input2 -name=$indName -build=${input1.metadata.dbkey} -addColsOnly -chr=${input1.metadata.chromCol} > $out_file1
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
6 #else #pgSnp2gd_snp.pl $input1 -tab=$snptab.input2 -name=$indName -build=${input1.metadata.dbkey} -ref=${ref} -chr=${input1.metadata.chromCol} > $out_file1
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
7 #end if
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
8 #else #pgSnp2gd_snp.pl $input1 -name=$indName -build=${input1.metadata.dbkey} -ref=${ref} -chr=${input1.metadata.chromCol} > $out_file1
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
9 #end if
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
10 </command>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
11 <inputs>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
12 <param format="tab" name="input1" type="data" label="pgSnp dataset" />
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
13 <conditional name="snptab">
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
14 <param name="tab2" type="select" label="Append to gd_snp dataset in history">
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
15 <option value="yes">yes</option>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
16 <option value="no" selected="true">no</option>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
17 </param>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
18 <when value="yes">
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
19 <param format="gd_snp" name="input2" type="data" label="gd_snp dataset" />
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
20 <conditional name="needRef">
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
21 <param name="colsOnly" type="select" label="Skip new SNPs">
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
22 <option value="no" selected="true">no</option>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
23 <option value="addColsOnly">yes</option>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
24 </param>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
25 <when value="no">
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
26 <param name="ref" type="data_column" data_ref="input1" label="Column with reference allele" />
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
27 </when>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
28 <when value="addColsOnly"> <!-- do nothing -->
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
29 </when>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
30 </conditional>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
31 </when>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
32 <when value="no">
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
33 <param name="ref" type="data_column" data_ref="input1" label="Column with reference allele" />
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
34 </when>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
35 </conditional>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
36 <param name="indName" type="text" size="20" label="Label for new individual/group" value="na" />
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
37 </inputs>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
38 <outputs>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
39 <data format="gd_snp" name="out_file1" />
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
40 </outputs>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
41 <tests>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
42 <test>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
43 <param name='input1' value='pgSnpTest.ref.txt' ftype='interval' />
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
44 <param name='tab2' value='no' />
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
45 <param name='ref' value='8' />
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
46 <param name='indName' value='na' />
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
47 <output name="output" file="pgSnp2snp_output.txt" />
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
48 </test>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
49 </tests>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
50
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
51 <help>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
52
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
53 **Dataset formats**
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
54
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
55 The input dataset is of Galaxy datatype interval_, with the additional columns
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
56 required for pgSnp_ format.
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
57 Any further columns beyond those defined for pgSnp will be ignored.
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
58 The output dataset is a gd_snp_ table. (`Dataset missing?`_)
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
59
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
60 .. _interval: ./static/formatHelp.html#interval
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
61 .. _pgSnp: ./static/formatHelp.html#pgSnp
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
62 .. _gd_snp: ./static/formatHelp.html#gd_snp
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
63 .. _Dataset missing?: ./static/formatHelp.html
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
64
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
65 -----
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
66
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
67 **What it does**
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
68
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
69 This tool converts a pgSnp dataset to gd_snp format, either starting a new
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
70 dataset or appending to an old one. When appending,
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
71 if any new SNPs appear only in the pgSnp file they can either be skipped entirely, or
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
72 backfilled with "-1" (meaning "unknown") for previous individuals/groups in the
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
73 input gd_snp dataset.
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
74 If any new SNPs are being added (either by creating a new table or by backfilling),
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
75 then an extra column with the reference allele must be supplied in the pgSnp dataset,
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
76 as shown in the example below.
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
77
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
78 -----
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
79
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
80 **Example**
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
81
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
82 - input pgSnp file, with reference allele added::
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
83
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
84 chr1 1888681 1888682 C/T 2 4,3 0.8893,0.8453 T
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
85 chr1 3118325 3118326 T 1 8 0.8796 C
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
86 chr1 3211457 3211458 A/C 2 17,10 0.8610,0.8576 A
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
87 etc.
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
88
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
89 - gd_snp output::
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
90
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
91 chr1 1888681 T C -1 3 4 1 0.8893
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
92 chr1 3118325 C T -1 0 8 0 0.8796
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
93 chr1 3211457 A C -1 17 10 1 0.8576
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
94 etc.
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
95
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
96 </help>
d281062566f9 Imported from capsule None
devteam
parents:
diff changeset
97 </tool>