Class: Bio::Meme::Mast::Report
- 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
-
#motifs ⇒ Object
readonly
Returns the value of attribute motifs.
Instance Method Summary collapse
-
#each ⇒ Object
(also: #each_motif)
Iterates each motif (Bio::Meme::Motif).
-
#initialize(mast_hitlist) ⇒ Report
constructor
A new instance of Report.
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
#motifs ⇒ Object (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
#each ⇒ Object 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 |