class Bio::Spidey::Report::SeqDesc
SeqDesc
stores sequence information of query or subject.
Attributes
Definition of the sequence.
Identifier of the sequence.
Length of the sequence.
Public Class Methods
Source
# File lib/bio/appl/spidey/report.rb 84 def initialize(seqid, seqdef, len) 85 @entry_id = seqid 86 @definition = seqdef 87 @len = len 88 end
Creates a new SeqDesc
object. It is designed to be called from Bio::Spidey::Report::* classes. Users shall not call it directly.
Source
# File lib/bio/appl/spidey/report.rb 102 def self.parse(str) 103 /^(Genomic|mRNA)\:\s*(([^\s]*) (.+))\, (\d+) bp\s*$/ =~ str.to_s 104 seqid = $3 105 seqdef = $2 106 len = ($5 ? $5.to_i : nil) 107 self.new(seqid, seqdef, len) 108 end
Parses piece of Spidey
result text and creates a new SeqDesc
object. It is designed to be called from Bio::Spidey::Report::* classes. Users shall not call it directly.