aboutsummaryrefslogtreecommitdiff
path: root/r_qtl/r_qtl2_qc.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-02-13 04:03:02 +0300
committerFrederick Muriuki Muriithi2024-02-13 04:03:02 +0300
commit8b637a760362d08fb92152288d0b04f90299da5f (patch)
tree55b9900a72f51902cd5c6150cdab3f0cd097c372 /r_qtl/r_qtl2_qc.py
parent092ae35512b3ef236622c4ab9dfe2bafb221ded7 (diff)
downloadgn-uploader-8b637a760362d08fb92152288d0b04f90299da5f.tar.gz
Make "FILE_TYPES" part of public interface for module/package.
Diffstat (limited to 'r_qtl/r_qtl2_qc.py')
-rw-r--r--r_qtl/r_qtl2_qc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/r_qtl/r_qtl2_qc.py b/r_qtl/r_qtl2_qc.py
index aa5c81e..43f7d94 100644
--- a/r_qtl/r_qtl2_qc.py
+++ b/r_qtl/r_qtl2_qc.py
@@ -5,7 +5,7 @@ from typing import Union, Iterator, Optional, Callable
from r_qtl import errors as rqe
from r_qtl import r_qtl2 as rqtl2
-from r_qtl.r_qtl2 import __FILE_TYPES__
+from r_qtl.r_qtl2 import FILE_TYPES
from r_qtl.fileerrors import MissingFile
from quality_control.errors import InvalidValue
@@ -21,7 +21,7 @@ def bundle_files_list(cdata: dict) -> tuple[tuple[str, str], ...]:
fileslist: tuple[tuple[str, str], ...] = reduce(
__merge__,
- (key for key in cdata.keys() if key in __FILE_TYPES__),
+ (key for key in cdata.keys() if key in FILE_TYPES),
tuple())
if "file" in cdata.get("sex", {}):
@@ -98,7 +98,7 @@ def phenose_errors(zfile: ZipFile) -> Iterator[Union[InvalidValue, MissingFile]]
def retrieve_errors(zfile: ZipFile, filetype: str, checkers: tuple[Callable]) -> Iterator[
Union[InvalidValue, MissingFile]]:
"""Check for and retrieve errors from files of type `filetype`."""
- assert filetype in __FILE_TYPES__, f"Invalid file type {filetype}."
+ assert filetype in FILE_TYPES, f"Invalid file type {filetype}."
cdata = rqtl2.control_data(zfile)
try:
for lineno, row in enumerate(