pub trait Emission {
fn emission_x(&self, i: usize) -> u8;
fn emission_y(&self, j: usize) -> u8;
}
Expand description
Trait needed for the HomopolyPairHMM
, because its implementation details
depend on the actual bases to distinguish between Match states.
Required methods
fn emission_x(&self, i: usize) -> u8
fn emission_x(&self, i: usize) -> u8
Base emitted at i
in sequence x
.
Should be one of b’A’, b’C’, b’G’ or b’T’.
fn emission_y(&self, j: usize) -> u8
fn emission_y(&self, j: usize) -> u8
Base emitted at i
in sequence y
.
Should be one of b’A’, b’C’, b’G’ or b’T’.