Learn R Programming

rbamtools (version 2.4.0)

headerReadGroup-class: Class "headerReadGroup"

Description

headerReadGroup represents Data contained in the header Section of BAM-files.

Arguments

Objects from the Class

Objects can be created by calls of the form hl<-new("headerReadGroup").

References

The SAM Format Specification (v1.4-r985). The SAM Format Specification Working Group. September 7, 2011. http://www.samtools.sourceforge.net/SAM1.pdf

Examples

Run this code
bam <- system.file("extdata", "accepted_hits.bam", package="rbamtools")
reader<-bamReader(bam)
isOpen(reader)
header<-getHeader(reader)
htxt<-getHeaderText(header)
readGroup<-headerProgram(htxt)
getVal(readGroup,"ID")
setVal(readGroup,"ID","newID")
l<-as.list(readGroup)
txt<-getHeaderText(readGroup)
bamClose(reader)

Run the code above in your browser using DataLab