annotate extract_primers.xml @ 0:2c498d40ecde

Uploaded
author miller-lab
date Mon, 09 Apr 2012 12:03:06 -0400
parents
children e29f4d801bb0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
1 <tool id="gd_extract_primers" name="Extract primers" version="1.0.0">
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
2 <description>for selected SNPs</description>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
3
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
4 <command interpreter="python">
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
5 extract_primers.py "--input=$input" "--output=$output" "--primers_loc=${GALAXY_DATA_INDEX_DIR}/gd.primers.loc"
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
6 #if $override_metadata.choice == "0":
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
7 "--scaffold_col=${input.metadata.scaffold}" "--pos_col=${input.metadata.pos}" "--species=${input.metadata.species}"
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
8 #else
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
9 "--scaffold_col=$scaf_col" "--pos_col=$pos_col" "--species=$species"
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
10 #end if
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
11 </command>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
12
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
13 <inputs>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
14 <param format="tabular" name="input" type="data" label="Selected SNPS dataset"/>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
15 <conditional name="override_metadata">
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
16 <param name="choice" type="select" format="integer" label="choose columns">
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
17 <option value="0" selected="true">No, get columns from metadata</option>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
18 <option value="1" >Yes, choose columns</option>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
19 </param>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
20 <when value="0" />
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
21 <when value="1">
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
22 <param name="scaf_col" type="data_column" data_ref="input" numerical="false" label="Column with scaffold"/>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
23 <param name="pos_col" type="data_column" data_ref="input" numerical="true" label="Column with position"/>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
24 <param name="species" type="select" label="Choose species">
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
25 <options from_file="gd.species.txt">
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
26 <column name="name" index="1"/>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
27 <column name="value" index="0"/>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
28 </options>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
29 </param>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
30 </when>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
31 </conditional>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
32 </inputs>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
33
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
34 <outputs>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
35 <data format="txt" name="output"/>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
36 </outputs>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
37
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
38 <tests>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
39 <test>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
40 <param name="input" value="test_out/select_snps/select_snps.wsf" ftype="wsf" />
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
41 <param name="choice" value="0"/>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
42 <output name="output" file="test_out/extract_primers/extract_primers.txt" />
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
43 </test>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
44 </tests>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
45
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
46
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
47 <help>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
48 **What it does**
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
49
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
50 This tool extracts primers for SNPs in the dataset using the Primer3 program.
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
51 The first line of output for a given SNP reports the name of the assembled
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
52 contig, the SNP's position in the contig, the two variant nucleotides, and
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
53 Primer3's "pair penalty". The next line, if not blank, names restriction
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
54 enzymes (from the user-adjustable list) that differentially cut at that
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
55 site, but do not cut at any other position between and including the
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
56 primer positions. The next lines show the SNP's flanking regions, with
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
57 the SNP position indicated by "n", including the primer positions and an
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
58 additional 3 nucleotides.
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
59
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
60 -----
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
61
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
62 **Example**
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
63
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
64 - input file::
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
65
2c498d40ecde 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
2c498d40ecde 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
2c498d40ecde 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
2c498d40ecde 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
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
70
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
71 - output file::
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
72
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
73 chr5_30800874_30802049 734 G A 0.352964
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
74 BglII,MboI,Sau3AI,Tru9I,XhoII
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
75 1 CTGAAGGTGAGCAGGATTCAGGAGACAGAAAACAAAGCCCAGGCCTGCCCAAGGTGGAAA
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
76 >>>>>>>>>>>>>>>>>>>>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
77
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
78 61 AGTCTAACAACTCGCCCTCTGCTTAnATCTGAGACTCACAGGGATAATAACACACTTGGT
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
79
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
80
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
81 21 CAAGGAATAAACTAGATATTATTCACTCCTCTAGAAGGCTGCCAGGAAAATTGCCTGACT
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
82 &lt;&lt;&lt;&lt;&lt;&lt;&lt;
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
83
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
84 181 TGAACCTTGGCTCTGA
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
85 &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
86 etc.
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
87 </help>
2c498d40ecde Uploaded
miller-lab
parents:
diff changeset
88 </tool>