use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum MateStatus {
PairedEndLeft,
PairedEndRight,
PairedEndPaired,
SingleEnd,
}
impl MateStatus {
pub fn is_orphan(&self) -> bool {
matches!(self, MateStatus::PairedEndLeft | MateStatus::PairedEndRight)
}
pub fn is_paired(&self) -> bool {
matches!(self, MateStatus::PairedEndPaired)
}
}