BAM file processing in chunks in R
When I want to process a FASTQ file in chunks in R, I can use the "FastqStreamer" function from the Bioconductor package "ShortRead".
Is there an analogous function for BAM files (for instance, in the "Rsamtools" package)? If so, could you give some toy code?
Many thanks for your help in advance!
• 3,356 views
•
link
1 answer
Have you tried to read the entire vignette of Rsamtools? There is a function call scanBam. Take a look at this link.
Alternatively if you already have bam chunks for specific chromosomes which you can obtain by splitting the total bams for each chromosomes and then process with scanBAM. Take a look at this SO link.
• 0 views
•
link
Log in to answer this question.