logo
pub fn gc3_content<C: Borrow<u8>, T: IntoIterator<Item = C>>(sequence: T) -> f32
Expand description

Returns the ratio of bases in the 3rd position which are guanine or cytososine.

Arguments

  • sequence - A sequence of bases

Example

use approx::assert_relative_eq;
use bio::seq_analysis::gc::gc3_content;
const seq: &'static [u8] = b"GATATACA";
//                           ^  ^  ^
assert_relative_eq!(gc3_content(seq), 2. / 3., epsilon = f32::EPSILON);