comparison random_interval.xml @ 14:76e1b1b21cce default tip

Deleted selected files
author xuebing
date Tue, 13 Mar 2012 19:05:10 -0400
parents 292186c14b08
children
comparison
equal deleted inserted replaced
13:292186c14b08 14:76e1b1b21cce
1 <tool id="randominterval" name="shuffle intervals">
2 <description>weight chromosome by length</description>
3 <command interpreter="python">random_interval.py $input $output $within $genome </command>
4 <inputs>
5 <param name="input" format="interval" type="data" label="reference interval file to mimic"/>
6 <param name="within" label="randomize within chromosome" help="If checked, for each original interval will move it to a random position in the SAME chromosome. The default is to move it to any chromosome (chance proportional to chromosome size)" type="boolean" truevalue="within" falsevalue="across" checked="False"/>
7 <param name="genome" type="select" label="Select genome">
8 <option value="/Users/xuebing/galaxy-dist/tool-data/genome/chrsize/mouse.mm9.genome" selected="true">mm9</option>
9 <option value="/Users/xuebing/galaxy-dist/tool-data/genome/chrsize/mouse.mm8.genome">mm8</option>
10 <option value="/Users/xuebing/galaxy-dist/tool-data/genome/chrsize/human.hg18.genome">hg18</option>
11 <option value="/Users/xuebing/galaxy-dist/tool-data/genome/chrsize/human.hg19.genome">hg19</option>
12 </param>
13 </inputs>
14 <outputs>
15 <data format="interval" name="output" />
16 </outputs>
17 <help>
18
19
20 **What it does**
21
22 This tool will generate a set of intervals randomly distributed in the genome, mimicking the size distribution of the reference set. The same number of intervals are generated.
23
24
25 **How it works**
26
27 For each interval in the reference set, the script picks a random position as the new start in the genome, and then pick the end such that the size of the random interval is the same as the original one. The default setting is to move the interval to any chromosome, with the probability proportional to the size/length of the chromosome. You can have it pick a random position in the same chromosome, such that in the randomized set each chromosome has the same number of intervals as the reference set. The size of the chromosome can be either learned from the reference set (chromosome size = max(interval end)) or read from a chromosome size file. When learning from the reference set, only regions spanned by reference intervals are used to generate random intervals. Regions (may be an entire chromosome) not covered by the reference set will not appear in the output.
28
29 **Chromosome size file**
30
31 Chromosome size files for hg18,hg19,mm8,and mm9 can be found in 'Shared Data'. To use those files, select the correct one and import into to the history, then the file will be listed in the drop-down menu of this tool. You can also make your own chromosme size file: each line specifies the size of a chromosome (tab-delimited):
32
33 chr1 92394392
34
35 chr2 232342342
36
37
38 You can use the following script from UCSC genome browser to download chromosome size files for other genomes:
39
40 http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/fetchChromSizes
41
42
43 </help>
44
45 </tool>