windowPerGroup {ORFik} | R Documentation

## Get window region of tx around point of gr

### Description

If downstreamFrom is 20, it means the window will start -20 downstream of gr start site. It will keep exon structure of tx

### Usage

    windowPerGroup(gr, tx, downstream = 0L, upstream = 0L)

### Arguments

`gr` | a GRanges object (startSites and others, must be single point)
`tx` | a GRangesList of transcripts or (container region)
`downstream` | an integer, relative region to get downstream from
`upstream` | an integer vector, relative region to get upstream from.

### Value

a GRanges/GRangesList object if exon/introns

### See Also

Other ExtendGenomicRanges: `asTX`, `coveragePerTiling`, `overlapsToCoverage`, `pmapFromTranscriptF`, `reduceKeepAttr`, `tile1`, `txSeqsFromFa`

[Package ORFik version 1.2.1 Index]