class Seq
Attributes
comments[RW]
db[RW]
master[RW]
name[RW]
seq_fasta[RW]
Public Class Methods
new(name, comments, seq_fasta, master)
click to toggle source
# File lib/full_lengther_next/cdhit.rb, line 5 def initialize(name, comments, seq_fasta, master) #master = more representative sequence on a cluster @name = name @comments = comments @seq_fasta = seq_fasta @db= parse_db(name, comments) @master = master end
Public Instance Methods
parse_db(name, comments)
click to toggle source
# File lib/full_lengther_next/cdhit.rb, line 13 def parse_db(name, comments) db=nil if name =~ /^[sp]/ || comments =~ /^[sp]/ db='sp' elsif comments =~ /^[tr]/ db='tr' end return db end
to_s()
click to toggle source
# File lib/full_lengther_next/cdhit.rb, line 23 def to_s return ">#{@name} #{@comments}\n#{@seq_fasta}" end