alphabeta 0.2.0

Tools for analysing epigenetic data.
use std::{io, path::PathBuf};
#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("Argument error")]
    Argument(#[from] clap::Error),

    #[error("Could not find the specified file or directory! Does it exist? \nPath: {0}")]
    File(PathBuf),

    #[error("File error {0}")]
    FileSystem(#[from] io::Error),
    #[error("Unable to extract CG site from line")]
    CGSite,

    #[error("Unable to convert: Are you passing a valid number? {0}")]
    NumberConversion(#[from] std::num::ParseIntError),

    #[error("Unable to convert: Are you passing a valid number? {0}")]
    FloatConversion(#[from] std::num::ParseFloatError),

    #[error("{0}")]
    Simple(&'static str),
    #[error("Methylation site could not be parsed: Wrong format")]
    MethlyationSiteFormat,

    #[error("Chromosome could not be parsed from this string: {0}")]
    Chromosome(String),
}