|
|
@@ -166,6 +166,11 @@ fn allocate_y_positions(pile: &mut Vec<BlastPile>) {
|
|
|
}
|
|
|
|
|
|
pub fn best_blastn(fa_path: &str) -> anyhow::Result<Vec<BlastResult>> {
|
|
|
+ info!(
|
|
|
+ "Running best blastn results on {fa_path} with config: {}",
|
|
|
+ config::Config::path()?.to_string_lossy()
|
|
|
+ );
|
|
|
+
|
|
|
let config = Config::get()?;
|
|
|
|
|
|
let res = run_blastn(fa_path)?;
|
|
|
@@ -198,12 +203,10 @@ mod tests {
|
|
|
let _ = env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info"))
|
|
|
.build();
|
|
|
|
|
|
- info!("best blastn results with config: {}", config::Config::path()?.to_string_lossy());
|
|
|
-
|
|
|
let fa = "test_data/419b7353-bc8c-4ffe-8ad6-0bbfac8c0cfa.fasta";
|
|
|
|
|
|
let res = best_blastn(fa)?;
|
|
|
- println!("{res:?}");
|
|
|
+ println!("{res:#?}");
|
|
|
|
|
|
assert_eq!(res[0].q_end, 2838);
|
|
|
assert_eq!(res[1].q_start, 2935);
|