Description Usage Arguments Details Value Author(s) See Also Examples
Execute delayed operations (reverse-complementing, trimming) to generate the actual read sequences.
1 | realizeReads(aligned, number=1e5, trim=TRUE)
|
aligned |
A DataFrame of alignment results produced by |
number |
Integer scalar specifying the number of records to read at once from the FASTQ file, see |
trim |
Logical scalar indicating whether adaptor trimming should be performed. |
This function will parse the FASTQ file to extract the read sequences corresponding to the row names of aligned
.
It will then perform reverse-complementing according to aligned$reversed
to coerce all reads into the canonical orientation, see ?adaptorAlign
for details.
Finally, if trim=TRUE
, it will trim off the adaptor sequences on the ends of the reads.
The reverse complementing and trimming can be envisaged as delayed operations from the previous functions (adaptorAlign
and filterReads
, respectively).
This sacrifices speed for memory efficiency in those steps, by avoiding the need to explicitly load the read sequences into memory.
Here, we have assumed that the number of reads is sufficiently reduced (e.g., by filtering and demultiplexing) to be able to load all reads.
A QualityScaledDNAStringSet object containing read sequences.
Aaron Lun
adaptorAlign
and filterReads
for generation of aligned
.
1 2 | example(filterReads)
realizeReads(filt)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.