Description Objects from the Class Slots Methods Author(s) References Examples
refSeqDict represents Data contained in the header section of BAM-files.
Objects can be created by calls of the form hl<-new("refSeqDict")
.
SN
:character
LN
:numeric
AS
:character
M5
:numeric
SP
:character
UR
:character
signature(x="refSeqDict")
:
Returns dimension of data: number of rows and 6 columns.
signature(object="refSeqDict")
:
Combines data of Slots to data.frame.
signature(from="bamRange", to="data.frame")
:
Coercion of refSeqDice to data.frame.
signature(object="refSeqDict",rows="numeric")
:
Removes reference sequence (i.e. one row from data.frame) entry.
signature(.Object="refSeqDict",SN,LN,AS,M5,SP,UR)
:
Adds reference sequence (i.e. one row in data.frame) entry.
signature(.Object="refSeqDict",n)
:
Returns head of data.frame representation.
signature(.Object="refSeqDict",n)
:
Returns tail of data.frame representation.
signature(.Object="refSeqDict")
:
Returns textual representation of data stored in this class as
desrcribed in SAM Format Specification.
Wolfgang Kaisers
The SAM Format Specification (v1.4-r985).
The SAM Format Specification Working Group. September 7, 2011.
1 2 3 4 5 6 7 8 9 10 11 12 | bam <- system.file("extdata", "accepted_hits.bam", package="rbamtools")
reader<-bamReader(bam)
isOpen(reader)
header<-getHeader(reader)
htxt<-getHeaderText(header)
refSeqs<-refSeqDict(htxt)
dim(refSeqs)
ht<-getHeaderText(refSeqs)
df<-as.data.frame(refSeqs)
addSeq(refSeqs,SN="nextSeqName",LN=1000)
removeSeqs(refSeqs,3)
bamClose(reader)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.