Cited from http://kasperdanielhansen.github.io/genbioconductor/html/GenomicRanges_Rle.html
The Rle (run length encoding) class in R is intended for representation genome-wide sequence coverage.
The Wig and BigWig files are used to store coverage data.
The run-length-encoded representation of a vector, represents the vector as a set of distinct runs with their own value. This class is integrated in the IRanges package. A base class called "rle" implements much less functionality.
runLength(), runValue() and as.numeric() function takes in the "Rle" class object.
RleList represents a list of Rles. It stores a genome wide coverage track where each element of the list is a different chromosome.
======================================
Cited from IRanges and GenomicRanges An introduction
aggregate() allows you to apply functions to the Rle inside an IRanges
aggregate(Rle_object, IRange_object, FUN=func_name)
No comments:
Post a Comment