View source: R/process_reads.R
get_total_reads | R Documentation |
idxstats
fileLoads the idxstats
file, and counts
the total number of mapped reads generated by bam_sort_index_stats
.
get_total_reads( idxstats_file, select_chr = TRUE, chrs = paste0("chr", c(1:22)) )
idxstats_file |
|
select_chr |
Logical. If TRUE, counts reads in
chromosomes specified in ‘chrs’.
Otherwise, uses all chromosomes in |
chrs |
Chromosomes to be included (default: chr1, ..., chr22). |
The total number of mapped reads.
## Not run: total_mapped_reads <- get_total_reads('sample.bam.idxstats.txt') ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.