aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
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)