View source: R/process_reads.R
sort_index_idxstats_bam | R Documentation |
idxstats
.Sorts and indexes the BAM file, and
retrieves the idxstats
(summary of
the number of mapped reads on every chromosome) using Rsamtools
package.
sort_index_idxstats_bam(
bam_file,
sorted_bam_file,
sort = TRUE,
index = TRUE,
idxstats = TRUE
)
bam_file |
Input BAM file. |
sorted_bam_file |
Output file name for sorted BAM file if |
sort |
Logical. If TRUE, sorts the BAM file. |
index |
Logical. If TRUE, indexes the BAM file. |
idxstats |
Logical. If TRUE, retrieves |
## Not run:
# Sorts, indexes the BAM file, and retrieves the idxstats.
sort_index_idxstats_bam('example.bam', sort=TRUE, index=TRUE, idxstats=TRUE)
# Indexes the BAM file, and retrieves the idxstats, using sorted BAM file.
sort_index_idxstats_bam('example.sorted.bam', sort=FALSE, index=TRUE, idxstats=TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.