readQualitySample: Sample read qualities from a list

Description Usage Arguments Details Value Author(s)

View source: R/nucSim.R

Description

Given a read sequence and a list of read quality scores this function returns a (possibly truncated) quality score of the same length as the read.

Usage

1
readQualitySample(read, qualities, checkLength = TRUE, ...)

Arguments

read

A sequence read.

qualities

List of sequence read quality scores.

checkLength

Flag indicating whether the length of quality scores should be checked to ensure that they are at least as long as the read. If qualities contains entries shorter than read this has to be TRUE, but see below.

...

Further arguments, currently not used.

Details

Using checkLength = TRUE leads to a substantial decrease in performance and is impractical for a large simulation. To avoid this slow down it is recommended to remove short sequences from qualities beforehand so that checkLength = FALSE can be used.

Value

An read quality score string of the same length as read.

Author(s)

Peter Humburg


ChIPsim documentation built on Nov. 8, 2020, 8:09 p.m.