Description Usage Arguments Details Value Author(s) See Also Examples
This function computes the median quality for each position in a read over all reads in a ShortReadQ object.
1 | medianByPosition(x, method = "Sanger", batchSize = 100000L)
|
x |
object of class |
method |
string; passed on to function |
batchSize |
number of rows to process in each iteration; directly influences RAM usage of this function |
The quality values are computed for each batch of reads and stored as
numeric Rle
objects for each postion. In each iteration, the
Rle
object of the current batch is merged with the previous one
in order to keep the RAM usage low.
A numeric vector of the median values per nucleotide position in the reads. The length of this vector corresponds to the length of the longest read in the data.
Joern Toedling
1 2 3 4 | exDir <- system.file("extdata", package="girafe")
ra <- readFastq(dirPath=exDir, pattern=
"aravinSRNA_23_plus_adapter_excerpt.fastq")
medianByPosition(ra, batchSize=200)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.