Open aboffin opened 1 year ago
thanks @aboffin!
right you are - when computing a merged sketch, _compute_merged
at https://github.com/sourmash-bio/sourmash/blob/latest/src/sourmash/command_compute.py#L291 only tries to open the file at the very end.
thanks for reporting this! I'm not sure how to fix it cleanly because we don't want to create an empty file if no sketch is created or an error happens, but we'll figure something out!
Hi,
I was wondering about the order in which the arguments to
sourmash sketch dna
are parsed. When we have a command like this:sourmash sketch dna --merge ../dat/query/*fastq -o ../non-existing/path/output.sig
this error:is thrown after spending quite a bit of time reading all the FASTQ files in
../dat/query
.If possible, it may be useful to throw the file not found error first before venturing to read huge FASTQ files only to realize the output path is non-existent.
Thanks!