diff options
author | Frederick Muriuki Muriithi | 2022-05-02 13:04:03 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-05-02 13:04:03 +0300 |
commit | fcade690de59249a2789c26e8f668f36f8f4e075 (patch) | |
tree | 73a9f8d40871e7942c4ae034eabf39855b6756ea /scripts/qc.py | |
parent | 5632dcab27058875de99d63cbd263acfa3a9a2d5 (diff) | |
download | gn-uploader-fcade690de59249a2789c26e8f668f36f8f4e075.tar.gz |
Optimise strain names parsing
- Use a way faster way of parsing the strains file
Diffstat (limited to 'scripts/qc.py')
-rw-r--r-- | scripts/qc.py | 5 |
1 files changed, 2 insertions, 3 deletions
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: |