From 16fc2613bb7f3e5f3596f1470e0de2741bd55f5a Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 20 Dec 2023 12:25:44 +0300 Subject: Read R/qtl2 format files * Set up error objects. * Read the control data. --- r_qtl/errors.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 r_qtl/errors.py (limited to 'r_qtl/errors.py') diff --git a/r_qtl/errors.py b/r_qtl/errors.py new file mode 100644 index 0000000..648611e --- /dev/null +++ b/r_qtl/errors.py @@ -0,0 +1,8 @@ +"""R/qtl and R/qtl2 error types.""" +from collections import namedtuple + +class RQTLError(Exception): + """Base class for R/qtl and R/qtl2 errors.""" + +class InvalidFormat(RQTLError): + """Raised when the format of the file(s) is invalid.""" -- cgit v1.2.3