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
end_pos[RW]
motif[RW]
pvalue[RW]
sequence_name[RW]
start_pos[RW]
strand[RW]
Public Class Methods
new(sequence_name, strand, motif, start_pos, end_pos, pvalue)
click to toggle source
Creates a new Bio::Meme::Motif
object arguments are
# 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
Public Instance Methods
length()
click to toggle source
Computes the motif length
# File lib/bio/appl/meme/motif.rb 41 def length 42 @end_pos - @start_pos 43 end