Description Usage Arguments Details Value Author(s) See Also Examples
The read.bam function reads all alignments between two points from a particular chromosome/reference sequence. A variety of manipulations are performed, including conversion of the read data into a data.frame
.
1 |
bamfile |
Full path to the indexed BAM file |
chr |
The name of the chromosome from which alignments should be extracted |
start |
The start position from which alignments should be extracted |
end |
The end position from which alignments should be extracted |
what |
A vector of column names to be extracted. See |
tag |
Tags to be exctracted from the BAM file. See |
removeN |
Logical. Whether or not to remove all sequences that contain Ns |
A wrapper around scanBam
to read in a subset of aliignments from a BAM file and return those as a data.frame
.
A data frame with reads/alignments as rows and columns defined by the "what" and "tag" columns.
Mick Watson
1 2 3 | ## Not run: infile <- system.file("data/SRR389184_vs_SINV_sorted.bam", package="viRome")
## Not run: bam <- read.bam(bamfile=infile, chr="SINV", start=1, end=11703, removeN=TRUE)
## Not run: bam[1:10,]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.