annotate extract_primers.xml @ 0:939c20789501 default tip

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