annotate extract_primers.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_extract_primers" name="Extract primers" version="1.0.0">
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
2 <description>for selected SNPs</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 extract_primers.py "--input=$input" "--output=$output" "--primers_loc=${GALAXY_DATA_INDEX_DIR}/gd.primers.loc"
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
6 #if $override_metadata.choice == "0":
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
7 "--scaffold_col=${input.metadata.scaffold}" "--pos_col=${input.metadata.pos}" "--species=${input.metadata.species}"
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
8 #else
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
9 "--scaffold_col=$scaf_col" "--pos_col=$pos_col" "--species=$species"
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
10 #end if
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
11 </command>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
12
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
13 <inputs>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
14 <param format="tabular" name="input" type="data" label="Selected SNPS dataset"/>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
15 <conditional name="override_metadata">
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
16 <param name="choice" type="select" format="integer" label="choose columns">
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
17 <option value="0" selected="true">No, get columns from metadata</option>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
18 <option value="1" >Yes, choose columns</option>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
19 </param>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
20 <when value="0" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
21 <when value="1">
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
22 <param name="scaf_col" type="data_column" data_ref="input" numerical="false" label="Column with scaffold"/>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
23 <param name="pos_col" type="data_column" data_ref="input" numerical="true" label="Column with position"/>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
24 <param name="species" type="select" label="Choose species">
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
25 <options from_file="gd.species.txt">
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
26 <column name="name" index="1"/>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
27 <column name="value" index="0"/>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
28 </options>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
29 </param>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
30 </when>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
31 </conditional>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
32 </inputs>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
33
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
34 <outputs>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
35 <data format="txt" name="output"/>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
36 </outputs>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
37
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
38 <tests>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
39 <test>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
40 <param name="input" value="test_out/select_snps/select_snps.gd_snp" ftype="gd_snp" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
41 <param name="choice" value="0"/>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
42 <output name="output" file="test_out/extract_primers/extract_primers.txt" />
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
43 </test>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
44 </tests>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
45
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
46
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
47 <help>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
48 **What it does**
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
49
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
50 This tool extracts primers for SNPs in the dataset using the Primer3 program.
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
51 The first line of output for a given SNP reports the name of the assembled
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
52 contig, the SNP's position in the contig, the two variant nucleotides, and
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
53 Primer3's "pair penalty". The next line, if not blank, names restriction
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
54 enzymes (from the user-adjustable list) that differentially cut at that
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
55 site, but do not cut at any other position between and including the
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
56 primer positions. The next lines show the SNP's flanking regions, with
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
57 the SNP position indicated by "n", including the primer positions and an
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
58 additional 3 nucleotides.
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
59
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
60 -----
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
61
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
62 **Example**
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
63
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
64 - input file::
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
65
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
66 chr5_30800874_30802049 734 G A chr5 30801606 A 24 0 99 4 11 97 Y 496 0.502 0.033 0.215 6
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
67 chr8_55117827_55119487 994 A G chr8 55118815 G 25 0 102 4 11 96 Y 22 0.502 0.025 2.365 1
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
68 chr9_100484836_100485311 355 C T chr9 100485200 T 27 0 108 6 17 100 Y 190 0.512 0.880 2.733 4
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
69 chr12_3635530_3637738 2101 T C chr12 3637630 T 25 0 102 4 13 93 Y 169 0.554 0.024 0.366 4
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
70
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
71 - output file::
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
72
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
73 chr5_30800874_30802049 734 G A 0.352964
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
74 BglII,MboI,Sau3AI,Tru9I,XhoII
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
75 1 CTGAAGGTGAGCAGGATTCAGGAGACAGAAAACAAAGCCCAGGCCTGCCCAAGGTGGAAA
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
76 >>>>>>>>>>>>>>>>>>>>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
77
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
78 61 AGTCTAACAACTCGCCCTCTGCTTAnATCTGAGACTCACAGGGATAATAACACACTTGGT
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
79
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
80
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
81 21 CAAGGAATAAACTAGATATTATTCACTCCTCTAGAAGGCTGCCAGGAAAATTGCCTGACT
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
82 &lt;&lt;&lt;&lt;&lt;&lt;&lt;
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
83
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
84 181 TGAACCTTGGCTCTGA
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
85 &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
86 etc.
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
87 </help>
4b6590dd7250 Uploaded
miller-lab
parents:
diff changeset
88 </tool>