readsLenToKeep: Get reads length to keep by cutoff percentage

Description Usage Arguments Value Examples

View source: R/readsLenToKeep.R

Description

Set the percentage to filter the reads.

Usage

1
readsLenToKeep(readsLengthDensity, cutoff = 0.8)

Arguments

readsLengthDensity

Output of summaryReadsLength

cutoff

Cutoff value.

Value

Reads length to be kept.

Examples

1
2
3
4
reads <- GRanges("chr1", ranges=IRanges(seq.int(100), width=1),
                 qwidth=sample(25:31, size = 100, replace = TRUE,
                               prob = c(.01, .01, .05, .1, .77, .05, .01)))
readsLenToKeep(summaryReadsLength(reads, plot=FALSE))

ribosomeProfilingQC documentation built on March 13, 2021, 2:01 a.m.