-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: moving toward program options structs
- Loading branch information
Rob Patro
committed
Jun 2, 2022
1 parent
b1da266
commit efde741
Showing
5 changed files
with
110 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
use crate::quant::{ResolutionStrategy, SplicedAmbiguityModel}; | ||
//use derive_builder::Builder; | ||
use typed_builder::TypedBuilder; | ||
|
||
#[derive(TypedBuilder, Debug)] | ||
//#[builder(name = "QuantOptsBuilder")] | ||
pub struct QuantOpts<'a, 'b, 'c, 'd> { | ||
pub input_dir: String, | ||
pub tg_map: String, | ||
pub output_dir: String, | ||
pub num_threads: u32, | ||
pub num_bootstraps: u32, | ||
pub init_uniform: bool, | ||
pub summary_stat: bool, | ||
pub dump_eq: bool, | ||
pub use_mtx: bool, | ||
pub resolution: ResolutionStrategy, | ||
pub pug_exact_umi: bool, | ||
pub sa_model: SplicedAmbiguityModel, | ||
pub small_thresh: usize, | ||
pub large_graph_thresh: usize, | ||
pub filter_list: Option<&'a str>, | ||
pub cmdline: &'b str, | ||
pub version: &'c str, | ||
pub log: &'d slog::Logger, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters