From 8b637a760362d08fb92152288d0b04f90299da5f Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 13 Feb 2024 04:03:02 +0300 Subject: Make "FILE_TYPES" part of public interface for module/package. --- r_qtl/r_qtl2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'r_qtl/r_qtl2.py') diff --git a/r_qtl/r_qtl2.py b/r_qtl/r_qtl2.py index e74312f..0241458 100644 --- a/r_qtl/r_qtl2.py +++ b/r_qtl/r_qtl2.py @@ -12,7 +12,7 @@ from functional_tools import take, chain from r_qtl.errors import InvalidFormat, MissingFileError -__FILE_TYPES__ = ( +FILE_TYPES = ( "geno", "founder_geno", "pheno", "covar", "phenocovar", "gmap", "pmap", "phenose") @@ -33,7 +33,7 @@ def control_data(zfile: ZipFile) -> dict: "comment.char": "#", "sep": ",", **{ - f"{key}_transposed": False for key in __FILE_TYPES__ + f"{key}_transposed": False for key in FILE_TYPES }, **(json.loads(zfile.read(files[0])) if files[0].endswith(".json") -- cgit v1.2.3