No more error when output folder already exists
All checks were successful
NSBDiagnosisToolkit/pipeline/head This commit looks good

This commit is contained in:
2025-01-03 22:49:00 +00:00
parent afbd883e3e
commit 18b003e0e2
3 changed files with 3 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ parser.add_argument(
def cli():
args = parser.parse_args()
gen_strings = aggregator.aggregate_sequences(args.fastas, args.abifs)
os.makedirs(args.out)
os.makedirs(args.out, exist_ok=True)
if args.institut_pasteur_db is not None:
mlst_profiles = aggregator.profile_all_genetic_strings(
gen_strings, args.institut_pasteur_db)