Class: Bio::Meme::Mast::Report

Inherits:
Object
  • Object
show all
Defined in:
lib/bio/appl/meme/mast/report.rb

Overview

Description

A class to parse the output from Mast

WARNING: Currently support is only for -hit_list (machine readable) format

HTML (default) output is not supported

Examples

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mast_hitlist) ⇒ Report

Returns a new instance of Report.



40
41
42
# File 'lib/bio/appl/meme/mast/report.rb', line 40

def initialize(mast_hitlist)
  @motifs = parse_hit_list(mast_hitlist)
end

Instance Attribute Details

#motifsObject (readonly)

Returns the value of attribute motifs.



38
39
40
# File 'lib/bio/appl/meme/mast/report.rb', line 38

def motifs
  @motifs
end

Instance Method Details

#eachObject Also known as: each_motif

Iterates each motif (Bio::Meme::Motif)



45
46
47
48
49
# File 'lib/bio/appl/meme/mast/report.rb', line 45

def each
  @motifs.each do |motif|
    yield motif
  end
end