readQualitySample {ChIPsim} | R Documentation |
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.
readQualitySample(read, qualities, checkLength = TRUE, ...)
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 |
... |
Further arguments, currently not used. |
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.
An read quality score string of the same length as read
.
Peter Humburg