Learn R Programming

HTSeqGenie (version 4.2.0)

isSparse: isSparse

Description

Check coverage for sparseness

Usage

isSparse(cov, threshold = 0.1)

Arguments

cov
A cov object as SimpleRleList
threshold
Fraction of number of runs over total length

Value

Boolean whether this object is dense or sparse

Details

Some Rle related operations become very slow when they are dealing with data that violates their sparseness assumption. This method provides an estimate about whether the data is dense or sparse. More precicely it checks if the fraction of the number of runs over the total length is smaller than a threshold