Class: Bio::Bam::PGLine

Inherits:
Object
  • Object
show all
Defined in:
lib/bio-sambamba/samheader.rb

Overview

Represents @PG line from SAM header (program record)

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ PGLine

Wrap MessagePack record from sambamba output



181
182
183
# File 'lib/bio-sambamba/samheader.rb', line 181

def initialize(obj)
  @obj = obj
end

Instance Method Details

#command_lineObject

Command line



196
197
198
# File 'lib/bio-sambamba/samheader.rb', line 196

def command_line
  @obj['CL']
end

#identifierObject

Unique program record identifier



186
187
188
# File 'lib/bio-sambamba/samheader.rb', line 186

def identifier
  @obj['ID']
end

#previous_programObject

Identifier of previous program in chain



201
202
203
# File 'lib/bio-sambamba/samheader.rb', line 201

def previous_program
  @obj['PP']
end

#program_nameObject

Program name



191
192
193
# File 'lib/bio-sambamba/samheader.rb', line 191

def program_name
  @obj['PN']
end

#program_versionObject

Program version



206
207
208
# File 'lib/bio-sambamba/samheader.rb', line 206

def program_version
  @obj['VN']
end