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 Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ PGLine

Wrap JSON object from sambamba output



164
165
166
# File 'lib/bio-sambamba/samheader.rb', line 164

def initialize(json)
  @json = json
end

Instance Attribute Details

#command_lineObject (readonly)

Command line



175
176
177
# File 'lib/bio-sambamba/samheader.rb', line 175

def command_line
  @command_line
end

#identifierObject (readonly)

Unique program record identifier



169
170
171
# File 'lib/bio-sambamba/samheader.rb', line 169

def identifier
  @identifier
end

#previous_programObject (readonly)

Identifier of previous program in chain



178
179
180
# File 'lib/bio-sambamba/samheader.rb', line 178

def previous_program
  @previous_program
end

#program_nameObject (readonly)

Program name



172
173
174
# File 'lib/bio-sambamba/samheader.rb', line 172

def program_name
  @program_name
end

#program_versionObject (readonly)

Program version



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

def program_version
  @program_version
end