aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-01-15 18:40:20 +0300
committerFrederick Muriuki Muriithi2024-01-15 18:40:20 +0300
commitb7942002b2f40af965bd0ef9c9673fbaeb28a9e1 (patch)
tree4044d9b18579eb85f75e7457e70b2f7d0aa1fbdc /scripts
parent9b51f59bc4b598c1136525300af5f696bcf66fc0 (diff)
downloadgn-uploader-b7942002b2f40af965bd0ef9c9673fbaeb28a9e1.tar.gz
Update imports: `take` was moved to different package.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/insert_data.py3
-rw-r--r--scripts/qc.py8
-rw-r--r--scripts/rqtl2/install_genotypes.py2
-rw-r--r--scripts/rqtl2/install_phenos.py2
4 files changed, 7 insertions, 8 deletions
diff --git a/scripts/insert_data.py b/scripts/insert_data.py
index 0ac3799..72fc897 100644
--- a/scripts/insert_data.py
+++ b/scripts/insert_data.py
@@ -11,7 +11,8 @@ import MySQLdb as mdb
from redis import Redis
from MySQLdb.cursors import DictCursor
-from quality_control.parsing import take
+from functional_tools import take
+
from quality_control.file_utils import open_file
from qc_app.db_utils import database_connection
from qc_app.check_connections import check_db, check_redis
diff --git a/scripts/qc.py b/scripts/qc.py
index 2057cd6..7d41d6c 100644
--- a/scripts/qc.py
+++ b/scripts/qc.py
@@ -5,13 +5,11 @@ import argparse
import mimetypes
from typing import Union, Callable
+from functional_tools import take
+
from quality_control.utils import make_progress_calculator
from quality_control.errors import InvalidValue, DuplicateHeading
-from quality_control.parsing import (
- take,
- FileType,
- strain_names,
- collect_errors)
+from quality_control.parsing import FileType, strain_names, collect_errors
def is_file_mime(filepath:str, mimetype:str) -> bool:
diff --git a/scripts/rqtl2/install_genotypes.py b/scripts/rqtl2/install_genotypes.py
index 354bff0..77e7163 100644
--- a/scripts/rqtl2/install_genotypes.py
+++ b/scripts/rqtl2/install_genotypes.py
@@ -12,7 +12,7 @@ from MySQLdb.cursors import DictCursor
from r_qtl import r_qtl2 as rqtl2
-from quality_control.parsing import take
+from functional_tools import take
from scripts.rqtl2.entry import build_main
from scripts.cli_parser import init_cli_parser
diff --git a/scripts/rqtl2/install_phenos.py b/scripts/rqtl2/install_phenos.py
index b3d445b..4fdf428 100644
--- a/scripts/rqtl2/install_phenos.py
+++ b/scripts/rqtl2/install_phenos.py
@@ -15,7 +15,7 @@ from scripts.rqtl2.cli_parser import add_common_arguments
from r_qtl import r_qtl2 as rqtl2
-from quality_control.parsing import take
+from functional_tools import take
stderr_handler = logging.StreamHandler(stream=sys.stderr)
logger = logging.getLogger("install_phenos")
logger.addHandler(stderr_handler)