Skip to content

Commit

Permalink
fix a small bug when set smart-rerun
Browse files Browse the repository at this point in the history
  • Loading branch information
ShujiaHuang committed Oct 22, 2024
1 parent fa191ed commit 250f01a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/basetype_caller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ void BaseTypeRunner::_variant_caller_process() {
std::string outdir = ngslib::dirname(_args->output_vcf);
std::string cache_outdir = outdir + "/cache_" + stem_bn;

if (IS_DELETE_CACHE_BATCHFILE && ngslib::path_exists_and_not_empty(cache_outdir)) {
throw std::runtime_error("[ERROR] [" + cache_outdir + "] must be an empty folder. "
"You can delete it manual before execute BaseVar.");
}
// if (IS_DELETE_CACHE_BATCHFILE && ngslib::path_exists_and_not_empty(cache_outdir)) {
// throw std::runtime_error("[ERROR] [" + cache_outdir + "] must be an empty folder. "
// "You can delete it manual before execute BaseVar.");
// }
ngslib::safe_mkdir(cache_outdir); // make cache directory for batchfiles

if (_args->smart_rerun) {
Expand Down

0 comments on commit 250f01a

Please sign in to comment.