utilsDeStrand {CAGEfightR} | R Documentation

## Utility: Split Genomic Ranges by strand

### Description

Utility function that attemps to split genomic ranges by strand with split(object, strand(object))

### Usage

    utilsDeStrand(object)

### Arguments

`object` | Any object with a split and strand method, e.g. GRanges/GPos

### Value

Object split by strand, e.g. GRangesList.

### See Also

Other Utility functions: `utilsAggregateRows()`, `utilsScoreOverlaps()`, `utilsSimplifyTxDb()`

### Examples

    gp <- GPos(seqnames=Rle(c("chr1", "chr2", "chr1"), c(10, 6, 4)),
                pos=c(44:53, 5:10, 2:5),
                strand=c(rep("+", 10), rep("-", 10)))
    gr <- as(gp, "GRanges")
    utilsDeStrand(gp)
    utilsDeStrand(gr)

[Package CAGEfightR version 1.10.0 Index]