-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EXP: provide
manysearch
binary. (#70)
* [MRG] Add `-c` `--cores` (#57) * add -c --cores * no need to change other functions * clean up spaces ;) * refactoring & actual_cores --------- Co-authored-by: C. Titus Brown <[email protected]> * MRG: add a simple command line test of `--cores` (#65) * add -c --cores * no need to change other functions * clean up spaces ;) * refactoring & actual_cores * add a simple test of -c * check num cores --------- Co-authored-by: Mohamed Abuelanin <[email protected]> * MRG: switch to AGPL license (#66) * switch to AGPL * Update README.md * Update README.md --------- Co-authored-by: Tessa Pierce Ward <[email protected]> Co-authored-by: Mohamed Abuelanin <[email protected]> * add manysearch cmd line for profiling help * provide 'manysearch' binary * disable jaccard --------- Co-authored-by: Mohamed Abuelanin <[email protected]> Co-authored-by: Tessa Pierce Ward <[email protected]>
- Loading branch information
1 parent
3647625
commit 3051256
Showing
9 changed files
with
813 additions
and
10 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,55 @@ | ||
use std::path::PathBuf; | ||
|
||
use anyhow::Result; | ||
|
||
pub mod utils; | ||
pub mod manysearch; | ||
|
||
use manysearch::manysearch; | ||
|
||
use clap::Parser; | ||
|
||
#[derive(Parser, Debug)] | ||
#[clap(author, version, about, long_about = None)] | ||
struct Cli { | ||
/// List of queries (one sig path per line in the file) | ||
#[clap(parse(from_os_str))] | ||
querylist: PathBuf, | ||
|
||
/// List of signatures to search | ||
#[clap(parse(from_os_str))] | ||
siglist: PathBuf, | ||
|
||
/// ksize | ||
#[clap(short, long, default_value = "31")] | ||
ksize: u8, | ||
|
||
/// threshold | ||
#[clap(short, long, default_value = "0.85")] | ||
threshold: f64, | ||
|
||
/// scaled | ||
#[clap(short, long, default_value = "1000")] | ||
scaled: usize, | ||
|
||
/// The path for output | ||
#[clap(parse(from_os_str), short, long)] | ||
output: Option<PathBuf>, | ||
} | ||
|
||
fn main() -> Result<(), Box<dyn std::error::Error>> { | ||
env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info")).init(); | ||
|
||
let opts = Cli::parse(); | ||
|
||
manysearch( | ||
opts.querylist, | ||
opts.siglist, | ||
opts.threshold, | ||
opts.ksize, | ||
opts.scaled, | ||
opts.output, | ||
)?; | ||
|
||
Ok(()) | ||
} |
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