Galaxy | Tool Preview

bed_resize (version 1.0.0)
e.g. start+10, start-10, end-100
e.g. end-100, start+10

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