Learn R Programming

rbamtools (version 2.16.17)

headerLine-class: Class "headerLine": Representation of header line segment of header section for BAM files.

Description

headerLine represents the header Line segment of header section.

Arguments

Objects from the Class

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

Slots

SO:

character

%
VN:

character

Methods

getHeaderText

signature(x = "bamRange"): Retrieve textual representation of header

%
getVal

signature(object = "bamRange"): Retrieving values for given item names.

%
setVal

signature(object = "bamRange"): Setting values for given item names.

%
as.list

signature(.Object = "bamRange"): Coercing of data into a list

Examples

Run this code
# NOT RUN {
bam<-system.file("extdata","accepted_hits.bam",package="rbamtools")
reader<-bamReader(bam)
header<-getHeader(reader)
htxt<-getHeaderText(header)
headLine<-headerLine(htxt)
getVal(headLine,"VN")
getVal(headLine,"SO")
setVal(headLine,"SO","unsorted")
l<-as.list(headLine)
txt<-getHeaderText(headLine)
bamClose(reader)
# }

Run the code above in your browser using DataLab