Class: Bio::Bam::RGLine
- Inherits:
-
Object
- Object
- Bio::Bam::RGLine
- Defined in:
- lib/bio-sambamba/samheader.rb
Overview
Represents @RG line from SAM header, i.e. a read group
Instance Method Summary collapse
-
#date ⇒ Object
Date the run was produced (ISO8601 date or date/time).
-
#description ⇒ Object
Description.
-
#flow_order ⇒ Object
Flow order.
-
#identifier ⇒ Object
Unique read group identifier.
-
#initialize(obj) ⇒ RGLine
constructor
Wrap MessagePack record from sambamba output.
-
#key_sequence ⇒ Object
The array of nucleotide bases that correspond to the key sequence of each read.
-
#library ⇒ Object
Library.
-
#platform ⇒ Object
Platform/technology used to produce the reads.
-
#platform_unit ⇒ Object
Platform unit (e.g. flowcell-barcode lane for Illumina or slide for SOLiD).
-
#predicted_insert_size ⇒ Object
Predicted median insert size.
-
#programs ⇒ Object
Programs used for processing the read group.
-
#sample ⇒ Object
Sample.
-
#sequencing_center ⇒ Object
Name of sequencing center.
Constructor Details
#initialize(obj) ⇒ RGLine
Wrap MessagePack record from sambamba output
109 110 111 |
# File 'lib/bio-sambamba/samheader.rb', line 109 def initialize(obj) @obj = obj end |
Instance Method Details
#date ⇒ Object
Date the run was produced (ISO8601 date or date/time)
129 130 131 |
# File 'lib/bio-sambamba/samheader.rb', line 129 def date @obj['DT'] end |
#description ⇒ Object
Description
124 125 126 |
# File 'lib/bio-sambamba/samheader.rb', line 124 def description @obj['DS'] end |
#flow_order ⇒ Object
Flow order. The array of nucleotide bases that correspond to the nucleotides used for each flow of each read. Multi-base flows are encoded in IUPAC format, and non-nucleotide flows by various other characters.
137 138 139 |
# File 'lib/bio-sambamba/samheader.rb', line 137 def flow_order @obj['FO'] end |
#identifier ⇒ Object
Unique read group identifier
114 115 116 |
# File 'lib/bio-sambamba/samheader.rb', line 114 def identifier @obj['ID'] end |
#key_sequence ⇒ Object
The array of nucleotide bases that correspond to the key sequence of each read
142 143 144 |
# File 'lib/bio-sambamba/samheader.rb', line 142 def key_sequence @obj['KS'] end |
#library ⇒ Object
Library
147 148 149 |
# File 'lib/bio-sambamba/samheader.rb', line 147 def library @obj['LB'] end |
#platform ⇒ Object
Platform/technology used to produce the reads
162 163 164 |
# File 'lib/bio-sambamba/samheader.rb', line 162 def platform @obj['PL'] end |
#platform_unit ⇒ Object
Platform unit (e.g. flowcell-barcode lane for Illumina or slide for SOLiD). Unique identifier.
167 168 169 |
# File 'lib/bio-sambamba/samheader.rb', line 167 def platform_unit @obj['PU'] end |
#predicted_insert_size ⇒ Object
Predicted median insert size
157 158 159 |
# File 'lib/bio-sambamba/samheader.rb', line 157 def predicted_insert_size @obj['PI'] end |
#programs ⇒ Object
Programs used for processing the read group
152 153 154 |
# File 'lib/bio-sambamba/samheader.rb', line 152 def programs @obj['PG'] end |
#sample ⇒ Object
Sample
172 173 174 |
# File 'lib/bio-sambamba/samheader.rb', line 172 def sample @obj['SM'] end |
#sequencing_center ⇒ Object
Name of sequencing center
119 120 121 |
# File 'lib/bio-sambamba/samheader.rb', line 119 def sequencing_center @obj['CN'] end |