# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
require 'maasha/base36'
+require 'maasha/seq'
# Error class for all exceptions to do with SFF.
class SFFError < StandardError; end
hash
end
+ # Method that converts a Read object's data to a Seq object.
+ def to_seq
+ Seq.new(self.name, self.bases, nil, self.quality_scores.map { |i| (i += 64).chr }.join "")
+ end
+
# Method that soft masks the sequence (i.e. lowercases sequence) according to
# clip_qual_left and clip_qual_right information.
def mask