Class: Bio::Bam::RGLine

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

Overview

Represents @RG line from SAM header, i.e. a read group

Instance Method Summary collapse

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

#dateObject

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

#descriptionObject

Description



124
125
126
# File 'lib/bio-sambamba/samheader.rb', line 124

def description
  @obj['DS']
end

#flow_orderObject

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

#identifierObject

Unique read group identifier



114
115
116
# File 'lib/bio-sambamba/samheader.rb', line 114

def identifier
  @obj['ID']
end

#key_sequenceObject

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

#libraryObject

Library



147
148
149
# File 'lib/bio-sambamba/samheader.rb', line 147

def library
  @obj['LB']
end

#platformObject

Platform/technology used to produce the reads



162
163
164
# File 'lib/bio-sambamba/samheader.rb', line 162

def platform
  @obj['PL']
end

#platform_unitObject

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_sizeObject

Predicted median insert size



157
158
159
# File 'lib/bio-sambamba/samheader.rb', line 157

def predicted_insert_size
  @obj['PI']
end

#programsObject

Programs used for processing the read group



152
153
154
# File 'lib/bio-sambamba/samheader.rb', line 152

def programs
  @obj['PG']
end

#sampleObject

Sample



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

def sample
  @obj['SM']
end

#sequencing_centerObject

Name of sequencing center



119
120
121
# File 'lib/bio-sambamba/samheader.rb', line 119

def sequencing_center
  @obj['CN']
end