class Bio::Meme::Motif
Description¶ ↑
This class minimally represents a sequence motif according to the MEME program
TODO: integrate with Bio::Sequence
class TODO: parse PSSM data
Attributes
Public Class Methods
Source
# File lib/bio/appl/meme/motif.rb 31 def initialize(sequence_name, strand, motif, start_pos, end_pos, pvalue) 32 @sequence_name = sequence_name.to_s 33 @strand = strand.to_s 34 @motif = motif.to_i 35 @start_pos = start_pos.to_i 36 @end_pos = end_pos.to_i 37 @pvalue = pvalue.to_f 38 end
Creates a new Bio::Meme::Motif
object arguments are
Public Instance Methods
Source
# File lib/bio/appl/meme/motif.rb 41 def length 42 @end_pos - @start_pos 43 end
Computes the motif length