Class: Fastq
Overview
Fastq record
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#name ⇒ Object
Returns the value of attribute name.
-
#quality ⇒ Object
Returns the value of attribute quality.
-
#sequence ⇒ Object
Returns the value of attribute sequence.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Fastq
constructor
A new instance of Fastq.
- #to_s ⇒ Object
Methods inherited from Record
Constructor Details
#initialize(args = {}) ⇒ Fastq
Returns a new instance of Fastq.
34 35 36 37 38 |
# File 'lib/dna/parsers/fastq.rb', line 34 def initialize(args={}) @name = args[:name] @sequence = args[:sequence] @quality = args[:quality] end |
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
32 33 34 |
# File 'lib/dna/parsers/fastq.rb', line 32 def format @format end |
#name ⇒ Object
Returns the value of attribute name.
32 33 34 |
# File 'lib/dna/parsers/fastq.rb', line 32 def name @name end |
#quality ⇒ Object
Returns the value of attribute quality.
32 33 34 |
# File 'lib/dna/parsers/fastq.rb', line 32 def quality @quality end |
#sequence ⇒ Object
Returns the value of attribute sequence.
32 33 34 |
# File 'lib/dna/parsers/fastq.rb', line 32 def sequence @sequence end |
Instance Method Details
#to_s ⇒ Object
40 41 42 |
# File 'lib/dna/parsers/fastq.rb', line 40 def to_s "@#{@name}\n#{@sequence}\n+#{@name}\n#{@quality}" end |