Description Usage Arguments Details Author(s) Examples
The four functions: getRefCoords
, getRefCount
,
getRefData
and getRefId
provide reading access to data about
the present reference sequences in bamReader or bamWriter.
1 | getRefData(object)
|
object |
|
getRefData
returns a data.frame
with three columns
(ID, SN, LN).
ID is the (0-based index which must be given when a bamRange
is
extracted.
SN is the name of the sequence (e.g. chr1 for UCSC).
LN is the length of the reference sequence.
getRefCount
returns the number of reference sequences.
getRefCoords
returns a vector of coordinates which can be used to extract all stored aligns for this sequence from the bamReader
into a bamRange
object.
Wolfgang Kaisers
1 2 3 4 5 6 7 8 | bam<-system.file("extdata","accepted_hits.bam",package="rbamtools")
reader<-bamReader(bam,idx=TRUE)
getRefData(reader)
getRefCount(reader)
getRefId(reader, "chr1")
coords<-getRefCoords(reader, "chr1")
rg<-bamRange(reader,coords)
bamClose(reader)
|
Loading required package: refGenome
Loading required package: doBy
Loading required package: RSQLite
ID SN LN
1 0 chr1 249250621
2 1 chr16 90354753
[1] 2
[1] 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.