aboutsummaryrefslogtreecommitdiff
path: root/scripts/qc.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-05-02 13:04:03 +0300
committerFrederick Muriuki Muriithi2022-05-02 13:04:03 +0300
commitfcade690de59249a2789c26e8f668f36f8f4e075 (patch)
tree73a9f8d40871e7942c4ae034eabf39855b6756ea /scripts/qc.py
parent5632dcab27058875de99d63cbd263acfa3a9a2d5 (diff)
downloadgn-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.py5
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: