class Bio::Bam::PGLine

Represents @PG line from SAM header (program record)

Public Class Methods

new(obj) click to toggle source

Wrap MessagePack record from sambamba output

# File lib/bio-sambamba/samheader.rb, line 181
def initialize(obj)
  @obj = obj
end

Public Instance Methods

command_line() click to toggle source

Command line

# File lib/bio-sambamba/samheader.rb, line 196
def command_line
  @obj['CL']
end
identifier() click to toggle source

Unique program record identifier

# File lib/bio-sambamba/samheader.rb, line 186
def identifier
  @obj['ID']
end
previous_program() click to toggle source

Identifier of previous program in chain

# File lib/bio-sambamba/samheader.rb, line 201
def previous_program
  @obj['PP']
end
program_name() click to toggle source

Program name

# File lib/bio-sambamba/samheader.rb, line 191
def program_name
  @obj['PN']
end
program_version() click to toggle source

Program version

# File lib/bio-sambamba/samheader.rb, line 206
def program_version
  @obj['VN']
end