[BioRuby-cvs] bioruby/lib/bio/sequence na.rb,1.4,1.5
Naohisa Goto
ngoto at dev.open-bio.org
Thu Jul 20 03:45:24 UTC 2006
Update of /home/repository/bioruby/bioruby/lib/bio/sequence
In directory dev.open-bio.org:/tmp/cvs-serv12551/lib/bio/sequence
Modified Files:
na.rb
Log Message:
In gc_content, at_content, gc_skew, at_skew methods, changed to use
Numeric#quo instead of Float#/.
Index: na.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/sequence/na.rb,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** na.rb 27 Jun 2006 05:44:57 -0000 1.4
--- na.rb 20 Jul 2006 03:45:22 -0000 1.5
***************
*** 308,312 ****
gc = count['g'] + count['c']
return 0.0 if at + gc == 0
! return (gc.to_f / (at + gc).to_f)
end
--- 308,312 ----
gc = count['g'] + count['c']
return 0.0 if at + gc == 0
! return gc.quo(at + gc)
end
***************
*** 322,326 ****
gc = count['g'] + count['c']
return 0.0 if at + gc == 0
! return (at.to_f / (at + gc).to_f)
end
--- 322,326 ----
gc = count['g'] + count['c']
return 0.0 if at + gc == 0
! return at.quo(at + gc)
end
***************
*** 336,340 ****
c = count['c']
return 0.0 if g + c == 0
! return ((g - c).to_f / (g + c).to_f)
end
--- 336,340 ----
c = count['c']
return 0.0 if g + c == 0
! return (g - c).quo(g + c)
end
***************
*** 350,354 ****
t = count['t'] + count['u']
return 0.0 if a + t == 0
! return ((a - t).to_f / (a + t).to_f)
end
--- 350,354 ----
t = count['t'] + count['u']
return 0.0 if a + t == 0
! return (a - t).quo(a + t)
end
More information about the bioruby-cvs
mailing list