class GeneValidator::Query
This is a class for the storing data on each sequence
Attributes
accession_no[RW]
definition[RW]
hsp_list[RW]
identifier[RW]
length_protein[RW]
nucleotide_rf[RW]
protein_translation[RW]
raw_sequence[RW]
reading_frame[RW]
species[RW]
type[RW]
Public Class Methods
new()
click to toggle source
# File lib/genevalidator/query.rb, line 17 def initialize @hsp_list = [] @raw_sequence = nil @protein_translation = nil @nucleotide_rf = nil end
Public Instance Methods
init_tabular_attribute(hash)
click to toggle source
Initializes the corresponding attribute of the sequence with respect to the column name of the tabular blast output
# File lib/genevalidator/query.rb, line 31 def init_tabular_attribute(hash) @identifier = hash['sseqid'] if hash['sseqid'] @accession_no = hash['sacc'] if hash['sacc'] @length_protein = hash['slen'].to_i if hash['slen'] end