Lines
100 %
Functions
8.82 %
Branches
use std::path::PathBuf;
#[derive(Debug, Default, Clone, PartialEq)]
pub struct StandardArgs {
pub file: PathBuf,
pub coords: String,
pub output: PathBuf,
pub samples: Option<PathBuf>,
pub selection: Selection,
pub info_limit: Option<f32>,
pub prefix: Option<String>,
}
#[derive(Debug, Clone, PartialEq)]
pub struct GraphArgs {
pub width: u32,
pub height: u32,
pub mark_locus: bool,
pub font_size: usize,
pub stroke_width: u32,
pub color: String,
pub background_color: String,
impl Default for GraphArgs {
fn default() -> Self {
Self {
width: 2560,
height: 1440,
mark_locus: false,
font_size: 20,
stroke_width: 5,
color: String::from("black"),
background_color: String::from("white"),
#[derive(Clone, Default, Debug, PartialEq, Eq)]
pub enum Selection {
#[default]
All,
OnlyAlts,
OnlyRefs,
OnlyLongest,
Unphased,
pub enum MergeRule {
Start,
Stop,