class Bio::PAML::Codeml::ReportSingle
ReportSingle
is a simpler parser for a codeml report containing a single run. This is retained for backward compatibility mostly.
The results of a single model (old style report parser)
>> single = Bio::PAML::Codeml::Report.new(buf) >> single.tree_log_likelihood => -1817.465211 >> single.tree_length => 0.77902 >> single.alpha => 0.58871 >> single.tree => "(((rabbit: 0.082889, rat: 0.187866): 0.038008, human: 0.055050): 0.033639, goat-cow: 0.096992, marsupial: 0.284574);"
Attributes
alpha[R]
tree[R]
tree_length[R]
tree_log_likelihood[R]
Public Class Methods
new(codeml_report)
click to toggle source
Do not use
# File lib/bio/appl/paml/codeml/report.rb 367 def initialize(codeml_report) 368 @tree_log_likelihood = pull_tree_log_likelihood(codeml_report) 369 @tree_length = pull_tree_length(codeml_report) 370 @alpha = pull_alpha(codeml_report) 371 @tree = pull_tree(codeml_report) 372 end
Private Instance Methods
pull_alpha(text)
click to toggle source
Do not use
# File lib/bio/appl/paml/codeml/report.rb 387 def pull_alpha(text) 388 text[/alpha .+ =\s+(-?\d+(\.\d+)?)/,1].to_f 389 end
pull_tree(text)
click to toggle source
Do not use
# File lib/bio/appl/paml/codeml/report.rb 392 def pull_tree(text) 393 text[/([^\n]+)\n\nDetailed/m,1] 394 end
pull_tree_length(text)
click to toggle source
Do not use
# File lib/bio/appl/paml/codeml/report.rb 382 def pull_tree_length(text) 383 text[/tree length\s+=\s+ (-?\d+(\.\d+)?)/,1].to_f 384 end
pull_tree_log_likelihood(text)
click to toggle source
Do not use
# File lib/bio/appl/paml/codeml/report.rb 377 def pull_tree_log_likelihood(text) 378 text[/lnL\(.+\):\s+(-?\d+(\.\d+)?)/,1].to_f 379 end