class QSEQ

QSEQ record

Attributes

filtered[RW]
index[RW]
lane[RW]
machine[RW]
quality[RW]
read_no[RW]
run[RW]
sequence[RW]
tile[RW]
x[RW]
y[RW]

Public Class Methods

new(args={}) click to toggle source
# File lib/dna/parsers/qseq.rb, line 35
def initialize(args={})
  # These are the properties defined by the qseq spec
  # they must be in the same order that they appear in the tab-separated qseq file
  @properties = :machine, :run, :lane, :tile, :x, :y, :index, :read_no, :sequence, :quality, :filtered
  @machine = args[:machine]
  @run = args[:run]
  @lane = args[:lane]
  @tile = args[:tile]
  @x = args[:x]
  @y = args[:y]
  @index = args[:index]
  @read_no = args[:read_no]
  @sequence = args[:sequence]
  @quality = args[:quality]
  @filtered = args[:filtered]
end

Public Instance Methods

header() click to toggle source
# File lib/dna/parsers/qseq.rb, line 56
def header
  @properties.collect { |x| self.send(x) }.join("\t")
end
to_s() click to toggle source
# File lib/dna/parsers/qseq.rb, line 52
def to_s
  @properties.collect { |x| self.send(x) }.join("\t")
end