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

Share:

Description

headerLine represents the header Line segment of header section.

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

Author(s)

Wolfgang Kaisers

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.