#![warn(missing_docs)]
use rust_htslib::bam::record::Aux;
#[derive(Debug)]
pub struct ReadGroupId(pub String);
impl Default for ReadGroupId {
fn default() -> Self {
Self(String::from("A"))
}
}
#[derive(Debug)]
pub struct SampleName(pub String);
impl Default for SampleName {
fn default() -> Self {
Self(String::from("Sample1"))
}
}
#[derive(Clone, Debug)]
pub enum AuxType {
Integer(i32),
String(String),
Float(f32),
Char(u8),
}
impl<'a> From<&'a AuxType> for Aux<'a> {
fn from(aux_type: &'a AuxType) -> Self {
match aux_type {
AuxType::Integer(x) => Aux::I32(*x),
AuxType::String(x) => Aux::String(x.as_str()),
AuxType::Float(x) => Aux::Float(*x),
AuxType::Char(x) => Aux::Char(*x),
}
}
}
#[derive(Clone, Debug)]
pub enum Strand {
Plus,
Minus,
}