# HG changeset patch # User xuebing # Date 1333214367 14400 # Node ID 9b9b4c24eb34fb1aed768734d3da3e771151b0c9 Uploaded diff -r 000000000000 -r 9b9b4c24eb34 bed_resize.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bed_resize.xml Sat Mar 31 13:19:27 2012 -0400 @@ -0,0 +1,32 @@ + + change interval size + bed_resize.py $infile $outfile $expr_start $expr_end $strand + + + + + + + + + + + +**What it does** + +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, + +**start=start-1000**: extend 1000 bp on the 5' end (moving start upstream) + +**start=start+1000**: trancate 1000 bp on the 5' end (moving start downsteam) + +**end=end+1000**: extend 1000 bp on the 3' end (moving end downsteam) + +**end=start+1000**: moving the end to 1000 bp downsteam of the start (return the first 1000 bp on the 5' end) + +**end=start+1**: taking the 5' end of the interval + +**start=end-1**: taking the 3' end of the interval + + +