Skip to content

Commit 1284ebd

Browse files
committed
customdb species-level dereplication
1 parent 276ecca commit 1284ebd

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/customdb.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,20 @@ pub fn run(args: &CustomDbArgs) -> io::Result<()> {
157157
let mut bindir =
158158
utility::validate_path(args.bindir.as_ref(), "bindir", &args.format).to_path_buf();
159159

160+
161+
if !args.gtdbtk.exists() {
162+
return Err(io::Error::new(
163+
io::ErrorKind::NotFound,
164+
format!("GTDB-Tk summary file {:?} does not exist", args.gtdbtk),
165+
));
166+
}
167+
if !args.gtdbtk.is_file() {
168+
return Err(io::Error::new(
169+
io::ErrorKind::InvalidInput,
170+
format!("GTDB-Tk summary path {:?} is not a file", args.gtdbtk),
171+
));
172+
}
173+
160174
if args.split {
161175
info!(" Split bins before processing: true");
162176

0 commit comments

Comments
 (0)