class Bio::TMHMM::Report
TMHMM
report parser class.¶ ↑
Attributes
Returns
Returns
Returns
Returns
Returns
Returns
Returns an Array of Bio::TMHMM::TMH
.
Returns
Public Class Methods
Source
# File lib/bio/appl/tmhmm/report.rb 85 def initialize(entry = nil) 86 begin 87 str = entry.to_str 88 rescue NoMethodError 89 end 90 if str then 91 entry = str.enum_for(:each_line) 92 end 93 parse_header(entry) 94 @tmhs = parse_tmhs(entry) 95 end
Public Instance Methods
Source
# File lib/bio/appl/tmhmm/report.rb 98 def helix 99 @tmhs.map {|t| t if t.status == 'TMhelix' }.compact 100 end
Returns an Array of Bio::TMHMM::TMH
including only “TMhelix”.
Source
# File lib/bio/appl/tmhmm/report.rb 103 def to_s 104 [ 105 [ 106 ["Length:", @query_len], 107 ["Number of predicted TMHs:", @predicted_tmhs], 108 ["Exp number of AAs in THMs:", @exp_aas_in_tmhs], 109 ["Exp number, first 60 AAs:", @exp_first_60aa], 110 ["Total prob of N-in:", @total_prob_of_N_in] 111 ].map {|e| "\# " + [@entry_id, e].flatten.join("\t") }, 112 tmhs.map {|ent| ent.to_s } 113 ].flatten.join("\n") 114 end