aboutsummaryrefslogtreecommitdiff
path: root/r_qtl/errors.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-12-20 12:25:44 +0300
committerFrederick Muriuki Muriithi2023-12-20 12:25:44 +0300
commit16fc2613bb7f3e5f3596f1470e0de2741bd55f5a (patch)
treed6cbe4754667dac6cc2d0cc1bc8fc487eb2b06b0 /r_qtl/errors.py
parent7cb6a3449547c7d160457c69475a194bfc936d1d (diff)
downloadgn-uploader-16fc2613bb7f3e5f3596f1470e0de2741bd55f5a.tar.gz
Read R/qtl2 format files
* Set up error objects. * Read the control data.
Diffstat (limited to 'r_qtl/errors.py')
-rw-r--r--r_qtl/errors.py8
1 files changed, 8 insertions, 0 deletions
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."""