Compare commits

...

2 Commits

Author SHA1 Message Date
f5608b33f9 Removed generated file
All checks were successful
NSBDiagnosisToolkit/pipeline/head This commit looks good
2025-01-03 22:51:38 +00:00
18b003e0e2 No more error when output folder already exists
All checks were successful
NSBDiagnosisToolkit/pipeline/head This commit looks good
2025-01-03 22:49:00 +00:00
4 changed files with 3 additions and 5 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

@ -1,2 +0,0 @@
st,clonal-complex,fumC,pepA,icd,adk,pgm,tyrB,glyA
1,ST-2 complex,['1'],['1'],['1'],['1'],['1'],['1'],['1']
1 st clonal-complex fumC pepA icd adk pgm tyrB glyA
2 1 ST-2 complex ['1'] ['1'] ['1'] ['1'] ['1'] ['1'] ['1']

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)