Function rosalind::cons::consensus
[−]
[src]
pub fn consensus(profile: Profile) -> RosalindResult<String>
This function calculates consensus string by given profile
Examples
use rosalind::cons::*; let prof = Profile { A: vec![5, 1, 0, 0, 5, 5, 0, 0], C: vec![0, 0, 1, 4, 2, 0, 6, 1], G: vec![1, 1, 6, 3, 0, 1, 0, 0], T: vec![1, 5, 0, 0, 0, 1, 1, 6], }; assert_eq!(consensus(prof).unwrap(), "ATGCAACT");