[BioRuby-cvs] bioruby/lib/bio/appl/blast format0.rb, 1.26.2.2, 1.26.2.3
Naohisa Goto
ngoto at dev.open-bio.org
Tue May 13 11:19:44 UTC 2008
Update of /home/repository/bioruby/bioruby/lib/bio/appl/blast
In directory dev.open-bio.org:/tmp/cvs-serv8700/lib/bio/appl/blast
Modified Files:
Tag: BRANCH-biohackathon2008
format0.rb
Log Message:
Bio::Blast::Default::Report::Iteration#lambda, #kappa, #entropy,
#gapped_lambda, #gapped_kappa, and #gapped_entropy, and the same methods
in Bio::Blast::Default::Report class are changed to return float or nil
instead of string or nil.
Index: format0.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/appl/blast/format0.rb,v
retrieving revision 1.26.2.2
retrieving revision 1.26.2.3
diff -C2 -d -r1.26.2.2 -r1.26.2.3
*** format0.rb 12 May 2008 11:16:17 -0000 1.26.2.2
--- format0.rb 13 May 2008 11:19:42 -0000 1.26.2.3
***************
*** 723,733 ****
end
if gapped then
! @gapped_lambda = h['Lambda']
! @gapped_kappa = h['K']
! @gapped_entropy = h['H']
else
! @lambda = h['Lambda']
! @kappa = h['K']
! @entropy = h['H']
end
end #each
--- 723,733 ----
end
if gapped then
! @gapped_lambda = (v = h['Lambda']) ? v.to_f : nil
! @gapped_kappa = (v = h['K']) ? v.to_f : nil
! @gapped_entropy = (v = h['H']) ? v.to_f : nil
else
! @lambda = (v = h['Lambda']) ? v.to_f : nil
! @kappa = (v = h['K']) ? v.to_f : nil
! @entropy = (v = h['H']) ? v.to_f : nil
end
end #each
More information about the bioruby-cvs
mailing list