-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implementing "seqvars prefilter" (#209)
- Loading branch information
Showing
4 changed files
with
70 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
pub mod ingest; | ||
pub mod prefilter; |
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,31 @@ | ||
//! Implementation of `seqvars prefilter` subcommand. | ||
use crate::common; | ||
|
||
/// Command line arguments for `seqvars prefilter` subcommand. | ||
#[derive(Debug, clap::Parser)] | ||
#[command(author, version, about = "prefilter an ingested variant VCF", long_about = None)] | ||
pub struct Args { | ||
/// Path to input file. | ||
#[clap(long)] | ||
pub path_in: String, | ||
/// Prefilter parameters or @ with path to JSONL file. | ||
#[clap(long)] | ||
pub params: Vec<String>, | ||
} | ||
|
||
/// Main entry point for `seqvars prefilter` sub command. | ||
pub fn run(args_common: &crate::common::Args, args: &Args) -> Result<(), anyhow::Error> { | ||
let before_anything = std::time::Instant::now(); | ||
tracing::info!("args_common = {:#?}", &args_common); | ||
tracing::info!("args = {:#?}", &args); | ||
|
||
common::trace_rss_now(); | ||
|
||
|
||
tracing::info!( | ||
"All of `seqvars ingest` completed in {:?}", | ||
before_anything.elapsed() | ||
); | ||
Ok(()) | ||
} |