annotate find_intervals.xml @ 0:3be071295340 default tip

Uploaded
author rico
date Fri, 06 Apr 2012 15:50:15 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3be071295340 Uploaded
rico
parents:
diff changeset
1 <tool id="gd_find_intervals" name="Find remarkable" version="1.0.0">
3be071295340 Uploaded
rico
parents:
diff changeset
2 <description>genomic intervals</description>
3be071295340 Uploaded
rico
parents:
diff changeset
3
3be071295340 Uploaded
rico
parents:
diff changeset
4 <command interpreter="python">
3be071295340 Uploaded
rico
parents:
diff changeset
5 find_intervals.py "$input" "$input.metadata.dbkey" "$output" "$output.extra_files_path"
3be071295340 Uploaded
rico
parents:
diff changeset
6
3be071295340 Uploaded
rico
parents:
diff changeset
7 #if $override_metadata.choice == "0"
3be071295340 Uploaded
rico
parents:
diff changeset
8 "$input.metadata.ref" "$input.metadata.rPos"
3be071295340 Uploaded
rico
parents:
diff changeset
9 #else
3be071295340 Uploaded
rico
parents:
diff changeset
10 "$override_metadata.ref_col" "$override_metadata.rpos_col"
3be071295340 Uploaded
rico
parents:
diff changeset
11 #end if
3be071295340 Uploaded
rico
parents:
diff changeset
12
3be071295340 Uploaded
rico
parents:
diff changeset
13 "$score_col" "$shuffles"
3be071295340 Uploaded
rico
parents:
diff changeset
14
3be071295340 Uploaded
rico
parents:
diff changeset
15 #if $cutoff.type == 'percentage'
3be071295340 Uploaded
rico
parents:
diff changeset
16 "$cutoff.cutoff_pct"
3be071295340 Uploaded
rico
parents:
diff changeset
17 #else
3be071295340 Uploaded
rico
parents:
diff changeset
18 "=$cutoff.cutoff_val"
3be071295340 Uploaded
rico
parents:
diff changeset
19 #end if
3be071295340 Uploaded
rico
parents:
diff changeset
20
3be071295340 Uploaded
rico
parents:
diff changeset
21 "$out_format"
3be071295340 Uploaded
rico
parents:
diff changeset
22 </command>
3be071295340 Uploaded
rico
parents:
diff changeset
23
3be071295340 Uploaded
rico
parents:
diff changeset
24 <inputs>
3be071295340 Uploaded
rico
parents:
diff changeset
25 <param name="input" type="data" format="tabular" label="Input">
3be071295340 Uploaded
rico
parents:
diff changeset
26 <validator type="unspecified_build" message="This dataset does not have a reference species and cannot be used with this tool" />
3be071295340 Uploaded
rico
parents:
diff changeset
27 </param>
3be071295340 Uploaded
rico
parents:
diff changeset
28
3be071295340 Uploaded
rico
parents:
diff changeset
29 <param name="score_col" type="data_column" data_ref="input" numerical="true" label="Column with score"/>
3be071295340 Uploaded
rico
parents:
diff changeset
30
3be071295340 Uploaded
rico
parents:
diff changeset
31 <conditional name="cutoff">
3be071295340 Uploaded
rico
parents:
diff changeset
32 <param name="type" type="select" label="Cutoff type">
3be071295340 Uploaded
rico
parents:
diff changeset
33 <option value="percentage">percentage</option>
3be071295340 Uploaded
rico
parents:
diff changeset
34 <option value="value">value</option>
3be071295340 Uploaded
rico
parents:
diff changeset
35 </param>
3be071295340 Uploaded
rico
parents:
diff changeset
36 <when value="percentage">
3be071295340 Uploaded
rico
parents:
diff changeset
37 <param name="cutoff_pct" type="float" value="95" min="0" max="100" label="Percentage cutoff"/>
3be071295340 Uploaded
rico
parents:
diff changeset
38 </when>
3be071295340 Uploaded
rico
parents:
diff changeset
39 <when value="value">
3be071295340 Uploaded
rico
parents:
diff changeset
40 <param name="cutoff_val" type="float" value="0.0" label="Value cutoff"/>
3be071295340 Uploaded
rico
parents:
diff changeset
41 </when>
3be071295340 Uploaded
rico
parents:
diff changeset
42 </conditional>
3be071295340 Uploaded
rico
parents:
diff changeset
43
3be071295340 Uploaded
rico
parents:
diff changeset
44 <param name="shuffles" type="integer" min="0" value="0" label="Number of randomizations"/>
3be071295340 Uploaded
rico
parents:
diff changeset
45
3be071295340 Uploaded
rico
parents:
diff changeset
46 <param name="out_format" type="select" format="integer" label="Report SNPs">
3be071295340 Uploaded
rico
parents:
diff changeset
47 <option value="0" selected="true">No</option>
3be071295340 Uploaded
rico
parents:
diff changeset
48 <option value="1">Yes</option>
3be071295340 Uploaded
rico
parents:
diff changeset
49 </param>
3be071295340 Uploaded
rico
parents:
diff changeset
50
3be071295340 Uploaded
rico
parents:
diff changeset
51 <conditional name="override_metadata">
3be071295340 Uploaded
rico
parents:
diff changeset
52 <param name="choice" type="select" format="integer" label="Choose columns">
3be071295340 Uploaded
rico
parents:
diff changeset
53 <option value="0" selected="true">No, get columns from metadata</option>
3be071295340 Uploaded
rico
parents:
diff changeset
54 <option value="1" >Yes, choose columns</option>
3be071295340 Uploaded
rico
parents:
diff changeset
55 </param>
3be071295340 Uploaded
rico
parents:
diff changeset
56 <when value="0" />
3be071295340 Uploaded
rico
parents:
diff changeset
57 <when value="1">
3be071295340 Uploaded
rico
parents:
diff changeset
58 <param name="ref_col" type="data_column" data_ref="input" numerical="false" label="Column with reference chromosome"/>
3be071295340 Uploaded
rico
parents:
diff changeset
59 <param name="rpos_col" type="data_column" data_ref="input" numerical="true" label="Column with reference position"/>
3be071295340 Uploaded
rico
parents:
diff changeset
60 </when>
3be071295340 Uploaded
rico
parents:
diff changeset
61 </conditional>
3be071295340 Uploaded
rico
parents:
diff changeset
62 </inputs>
3be071295340 Uploaded
rico
parents:
diff changeset
63
3be071295340 Uploaded
rico
parents:
diff changeset
64 <outputs>
3be071295340 Uploaded
rico
parents:
diff changeset
65 <data name="output" format="interval">
3be071295340 Uploaded
rico
parents:
diff changeset
66 <change_format>
3be071295340 Uploaded
rico
parents:
diff changeset
67 <when input="out_format" value="1" format="bigwigpos" />
3be071295340 Uploaded
rico
parents:
diff changeset
68 </change_format>
3be071295340 Uploaded
rico
parents:
diff changeset
69 </data>
3be071295340 Uploaded
rico
parents:
diff changeset
70 </outputs>
3be071295340 Uploaded
rico
parents:
diff changeset
71
3be071295340 Uploaded
rico
parents:
diff changeset
72 <tests>
3be071295340 Uploaded
rico
parents:
diff changeset
73 <test>
3be071295340 Uploaded
rico
parents:
diff changeset
74 <param name="input" value="genome_diversity/test_in/sample.wsf" ftype="wsf" />
3be071295340 Uploaded
rico
parents:
diff changeset
75 <param name="score_col" value="5" />
3be071295340 Uploaded
rico
parents:
diff changeset
76 <param name="type" value="value" />
3be071295340 Uploaded
rico
parents:
diff changeset
77 <param name="cutoff_val" value="700.0" />
3be071295340 Uploaded
rico
parents:
diff changeset
78 <param name="shuffles" value="10" />
3be071295340 Uploaded
rico
parents:
diff changeset
79 <param name="out_format" value="0" />
3be071295340 Uploaded
rico
parents:
diff changeset
80 <param name="choice" value="0" />
3be071295340 Uploaded
rico
parents:
diff changeset
81
3be071295340 Uploaded
rico
parents:
diff changeset
82 <output name="output" file="genome_diversity/test_out/find_intervals/find_intervals.interval" />
3be071295340 Uploaded
rico
parents:
diff changeset
83 </test>
3be071295340 Uploaded
rico
parents:
diff changeset
84 </tests>
3be071295340 Uploaded
rico
parents:
diff changeset
85
3be071295340 Uploaded
rico
parents:
diff changeset
86 <help>
3be071295340 Uploaded
rico
parents:
diff changeset
87 **What it does**
3be071295340 Uploaded
rico
parents:
diff changeset
88
3be071295340 Uploaded
rico
parents:
diff changeset
89 The user selects a SNP table and specifies the columns containing (1)
3be071295340 Uploaded
rico
parents:
diff changeset
90 chromosome, (2) position, (3) scores (such as an Fst-value for the SNP), (4)
3be071295340 Uploaded
rico
parents:
diff changeset
91 a percentage or raw score for the "cutoff" and (5) the number of times the
3be071295340 Uploaded
rico
parents:
diff changeset
92 data should be randomized (only intervals with score exceeding the maximum for
3be071295340 Uploaded
rico
parents:
diff changeset
93 the randomized data are reported). If a percentage (e.g. 95%) is specified
3be071295340 Uploaded
rico
parents:
diff changeset
94 for #3, then that percentile of the scores is used as the cutoff; this may
3be071295340 Uploaded
rico
parents:
diff changeset
95 not work well if many SNPs have the same score. The program subtracts the
3be071295340 Uploaded
rico
parents:
diff changeset
96 cutoff from every score, then finds genomic intervals (i.e., consecutive runs
3be071295340 Uploaded
rico
parents:
diff changeset
97 of SNPs) whose total score cannot be increased by adding or subtracting one
3be071295340 Uploaded
rico
parents:
diff changeset
98 or more SNPs at the ends of the interval.
3be071295340 Uploaded
rico
parents:
diff changeset
99 </help>
3be071295340 Uploaded
rico
parents:
diff changeset
100 </tool>