Class: Bio::Bam::PGLine
- Inherits:
-
Object
- Object
- Bio::Bam::PGLine
- Defined in:
- lib/bio-sambamba/samheader.rb
Overview
Represents @PG line from SAM header (program record)
Instance Method Summary collapse
-
#command_line ⇒ Object
Command line.
-
#identifier ⇒ Object
Unique program record identifier.
-
#initialize(obj) ⇒ PGLine
constructor
Wrap MessagePack record from sambamba output.
-
#previous_program ⇒ Object
Identifier of previous program in chain.
-
#program_name ⇒ Object
Program name.
-
#program_version ⇒ Object
Program version.
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_line ⇒ Object
Command line
196 197 198 |
# File 'lib/bio-sambamba/samheader.rb', line 196 def command_line @obj['CL'] end |
#identifier ⇒ Object
Unique program record identifier
186 187 188 |
# File 'lib/bio-sambamba/samheader.rb', line 186 def identifier @obj['ID'] end |
#previous_program ⇒ Object
Identifier of previous program in chain
201 202 203 |
# File 'lib/bio-sambamba/samheader.rb', line 201 def previous_program @obj['PP'] end |
#program_name ⇒ Object
Program name
191 192 193 |
# File 'lib/bio-sambamba/samheader.rb', line 191 def program_name @obj['PN'] end |
#program_version ⇒ Object
Program version
206 207 208 |
# File 'lib/bio-sambamba/samheader.rb', line 206 def program_version @obj['VN'] end |