Description Objects from the Class Slots Methods Author(s) Examples
bamHeader manages textual representation of data contained in the header section of BAM-files. The binary representation (from which new BAM-files can be created) is encapsulated in class 'bamHeader'. Both types can be converted into each other.
Objects can be created by calls of the form hl<-new("bamHeader")
.
com
:character
head
:headerLine
dict
:refSeqDict
group
:headerReadGroup
prog
:headerProgram
signature(x = "bamHeader")
:
Gets headerLine object.
signature(x = "bamHeader")
:
Sets headerLine object.
signature(object = "bamHeader")
:
Gets refSeqDict object.
signature(object = "bamHeader")
:
Sets refSeqDict object.
signature(object = "bamHeader")
:
Gets headerReadGroup object.
signature(object = "bamHeader")
:
Sets headerReadGroup object.
signature(.Object = "bamHeader")
:
Gets headerProgram object.
signature(.Object = "bamHeader")
:
Sets headerProgram object.
signature(.Object = "bamHeader")
:
Returns whole information encoded in a character string as
described in SAM Format Specification.
Wolfgang Kaisers
1 2 3 4 5 6 7 8 9 10 11 12 | bam<-system.file("extdata","accepted_hits.bam",package="rbamtools")
reader<-bamReader(bam)
header<-getHeader(reader)
bamClose(reader)
htxt<-getHeaderText(header)
headLine<-headerLine(htxt)
headerLine(htxt)<-headLine
readGroup<-headerReadGroup(htxt)
headerReadGroup(htxt)<-readGroup
headProg<-headerProgram(htxt)
headerProgram(htxt)<-headProg
headTxt<-getHeaderText(htxt)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.