comparison mytools/resize.xml @ 9:87eb5c5ddfe9

Uploaded
author xuebing
date Fri, 09 Mar 2012 20:01:43 -0500
parents f0dc65e7f6c0
children
comparison
equal deleted inserted replaced
8:361ec1c0479d 9:87eb5c5ddfe9
1 <tool id="resize" name="resize">
2 <description>intervals</description>
3 <command interpreter="python">resize.py $infile $outfile $expr_start $expr_end $strand </command>
4 <inputs>
5 <param name="infile" format="interval" type="data" label="Original file"/>
6 <param name="expr_start" size="20" type="text" value="start-0" label="start=" help="e.g. start+10, start-10, end-100"/>
7 <param name="expr_end" size="20" type="text" value="end+0" label="end=" help="e.g. end-100, start+10"/>
8 <param name="strand" label="Enforce strandness" type="boolean" truevalue="strand" falsevalue="ignore" checked="False"/>
9 </inputs>
10 <outputs>
11 <data format="input" name="outfile" />
12 </outputs>
13 <help>
14
15 **What it does**
16
17 This tool changes start and end of each row in an interval file. When strandness is enforced, chromosome start and end are treated as the 5' and 3' end for intervals on the '+' strand, and the opposite for intervals on the '-' strand. In the expression such as 'start=start-1000', 'start' and 'end' are interpreted as the 5' and 3' end, respectively, and the operator '+' and '-' means moving downsteam and upsteam, respectively. For example, when enforcing strandness,
18
19 **start=start-1000**: extend 1000 bp on the 5' end (moving start upstream)
20
21 **start=start+1000**: trancate 1000 bp on the 5' end (moving start downsteam)
22
23 **end=end+1000**: extend 1000 bp on the 3' end (moving end downsteam)
24
25 **end=start+1000**: moving the end to 1000 bp downsteam of the start (return the first 1000 bp on the 5' end)
26
27 **end=start+1**: taking the 5' end of the interval
28
29 **start=end-1**: taking the 3' end of the interval
30
31 </help>
32 </tool>