Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def gc(st:String):Double={
- val a = (st.count(_=='C') + st.count(_=='G'))*100/st.length.toDouble
- BigDecimal(a).setScale(6, BigDecimal.RoundingMode.HALF_UP).toDouble
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement