annotate resize.xml @ 13:292186c14b08

Uploaded
author xuebing
date Sat, 10 Mar 2012 08:17:36 -0500
parents b7f1d9f8f3bc
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
1 <tool id="resize" name="resize">
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
2 <description>intervals</description>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="python">resize.py $infile $outfile $expr_start $expr_end $strand </command>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
4 <inputs>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
5 <param name="infile" format="interval" type="data" label="Original file"/>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
6 <param name="expr_start" size="20" type="text" value="start-0" label="start=" help="e.g. start+10, start-10, end-100"/>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
7 <param name="expr_end" size="20" type="text" value="end+0" label="end=" help="e.g. end-100, start+10"/>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
8 <param name="strand" label="Enforce strandness" type="boolean" truevalue="strand" falsevalue="ignore" checked="False"/>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
9 </inputs>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
10 <outputs>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
11 <data format="input" name="outfile" />
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
12 </outputs>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
13 <help>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
14
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
15 **What it does**
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
16
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
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,
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
18
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
19 **start=start-1000**: extend 1000 bp on the 5' end (moving start upstream)
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
20
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
21 **start=start+1000**: trancate 1000 bp on the 5' end (moving start downsteam)
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
22
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
23 **end=end+1000**: extend 1000 bp on the 3' end (moving end downsteam)
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
24
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
25 **end=start+1000**: moving the end to 1000 bp downsteam of the start (return the first 1000 bp on the 5' end)
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
26
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
27 **end=start+1**: taking the 5' end of the interval
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
28
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
29 **start=end-1**: taking the 3' end of the interval
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
30
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
31 </help>
b7f1d9f8f3bc Uploaded
xuebing
parents:
diff changeset
32 </tool>