R: Class '"headerLine"': Representation of header line segment...

headerLine-class {rbamtools} | R Documentation

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

### 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

    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)

[Package rbamtools version 2.16.17 Index]