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

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

2
.gitignore vendored
View File

@ -356,4 +356,4 @@ package
# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
src/output.csv
output

2
.vscode/launch.json vendored
View File

@ -6,7 +6,7 @@
"configurations": [
{
"name": "Python Debugger: Current File with Arguments",
"name": "CLI ipdbmlst",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/src/nsbdiagnosistoolkit/cli/root.py",

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)