1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/// Methylation conversion type for a read, mapped to minibwa's `mt` parameter. #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum Meth { /// Unmethylated / normal alignment. None, /// Read 1: C-to-T converted strand. C2T, /// Read 2: G-to-A converted strand. G2A, } impl Meth { pub(crate) fn as_mt(self) -> i32 { match self { Meth::None => 0, Meth::C2T => 1, Meth::G2A => 2, } } }