getHeaderText
Assembling member data into Header-TextgetHeaderText(object, delim = "")
- object
{An object of class bamHeader or bamHeaderText}
- delim
{Character used as tag delimiter}
Methods {
[object Object]}
The Header section of a BAM-file consists of the header line and the Reference sequence dictionary.
The header line contains information about the format version and a specification of the sorting order of alignments.
The reference dictionary contains information about the name and the length of each reference sequence.The bamHeader object can be used to initialize an object of class bamWriter. The bamHeaderText can be used to inspect the content of the header.
An object of class bamHeaderText (from argument bamHeader) and a string (from argument bamHeaderText)
[object Object]
The SAM Format Specification (v1.4-r985). The SAM Format Specification Working Group. September 7, 2011.
http://www.samtools.sourceforge.net/SAM1.pdf
library(rbamtools)
bam<-system.file("extdata","accepted_hits.bam",package="rbamtools")
idx<-paste(bam,"bai",sep=".")
# Open BAM file
reader<-bamReader(bam)
header<-getHeader(reader)
htxt<-getHeaderText(header)
getHeaderText(htxt)
bamClose(reader)
methods
getHeaderText