utilsDeStrand {CAGEfightR} | R Documentation |
Utility function that attemps to split genomic ranges by strand with split(object, strand(object))
utilsDeStrand(object)
object |
Any object with a split and strand method, e.g. GRanges/GPos |
Object split by strand, e.g. GRangesList.
Other Utility functions:
utilsAggregateRows()
,
utilsScoreOverlaps()
,
utilsSimplifyTxDb()
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)