From fcade690de59249a2789c26e8f668f36f8f4e075 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 2 May 2022 13:04:03 +0300 Subject: Optimise strain names parsing - Use a way faster way of parsing the strains file --- scripts/qc.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/qc.py b/scripts/qc.py index 09758cb..9937e5b 100644 --- a/scripts/qc.py +++ b/scripts/qc.py @@ -10,8 +10,7 @@ from quality_control.parsing import ( FileType, parse_file, strain_names, - parse_errors, - parse_strains) + parse_errors) def is_file_mime(filepath, mimetype): @@ -93,7 +92,7 @@ def main(): if args.verbose: print(f"Parsing the strain names from '{args.strainsfile}'") - strains = strain_names(parse_strains(os.path.realpath(args.strainsfile))) + strains = strain_names(os.path.realpath(args.strainsfile)) filepath = os.path.realpath(args.filepath) if args.verbose: -- cgit v1.2.3