Description Usage Arguments Value Note Author(s) References Examples
View source: R/readSortedBam.R
Load a sorted BAM file. Optionally, only reads mapping to a specific set of genomics coordinates are loaded. Only fields strictly necessary to run a wavClusteR analysis are loaded.
1 | readSortedBam(filename, which)
|
filename |
Name of the sorted BAM file, including full path to file if it is located outside the current working directory. |
which |
a GRanges or IntegerRangesList specifying the regions on
the reference sequence for which matches are desired. See the documentation
of the |
a GRanges object containing aligned reads, including read sequence (qseq) and MD tag (MD)
The input BAM file must be sorted and indexed. Alignment with bowtie or bowtie2, conversion from SAM to BAM output, sorting and indexing using SAMtools is recommended.
Federico Comoglio
Martin Morgan and Herve Pages, Rsamtools: Binary alignment (BAM), variant call (BCF), or tabix file import, http://bioconductor.org/packages/release/bioc/html/Rsamtools.html
1 2 3 | library(Rsamtools)
filename <- system.file( "extdata", "example.bam", package = "wavClusteR" )
sortedBam <- readSortedBam( filename = filename )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.