A function to re-align GRanges to their TSS

alignToTSS(granges, upstream, downstream)

Arguments

granges

A GRanges object with a TSS column or TSS.rev and TSS.fwd columns

upstream

How many bases upstream of the TSS?

downstream

How many bases downstream of the TSS?

Value

GRanges aligned to the TSS column or to TSS.rev and TSS.fwd columns