Skip to content

Commit

Permalink
more digits for output distance
Browse files Browse the repository at this point in the history
use more digits for output genomic distances.
  • Loading branch information
jianshu93 authored May 15, 2023
1 parent 0cb95e5 commit 4a80b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/answer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl <'a> ReqAnswer<'a> {
if n.distance < threshold {
nb_match += 1;
let database_id = seqdict.0[n.d_id].get_id().get_path();
write!(out, "\n\t query_id: \t {} \t distance: \t {:.3E} \t answer_fasta_path \t {}",self.req_item.get_id().get_path(), n.distance, database_id)?;
write!(out, "\n\t query_id: \t {} \t distance: \t {:.5E} \t answer_fasta_path \t {}",self.req_item.get_id().get_path(), n.distance, database_id)?;
log::debug!(" \t data id : {}", n.d_id);
write!(out, "\t {} \t answer_seq_len:\t {}", seqdict.0[n.d_id].get_id().get_fasta_id(), seqdict.0[n.d_id].get_len())?;
}
Expand Down

0 comments on commit 4a80b9a

Please sign in to comment.