Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dagou committed Jun 27, 2024
1 parent cdc1706 commit 02d08e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kr2r/src/bin/estimate_capacity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use seqkmer::{read_parallel, FastaReader};
use serde_json;
use std::collections::HashSet;
use std::fs::File;
use std::io::{Read, Write};
use std::io::{Read, Result, Write};
use std::path::{Path, PathBuf};

#[derive(Parser, Debug, Clone)]
Expand Down Expand Up @@ -83,7 +83,8 @@ fn process_sequence<P: AsRef<Path>>(
let mut hllp: HyperLogLogPlus<u64, _> =
HyperLogLogPlus::new(16, KBuildHasher::default()).unwrap();

let mut reader = FastaReader::from_path(fna_file, 1).unwrap();
let mut reader = FastaReader::from_path(fna_file, 1)
.expect("Failed to open the FASTA file with FastaReader");
let range_n = args.n as u64;
read_parallel(
&mut reader,
Expand Down

0 comments on commit 02d08e5

Please sign in to comment.