aboutsummaryrefslogtreecommitdiff
path: root/r_qtl/errors.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-02-05 07:00:01 +0300
committerFrederick Muriuki Muriithi2024-02-05 07:00:01 +0300
commitab71b34b97f3f1eee52b5688f41644541535f281 (patch)
tree4ae94d1957a62bd739203eddc4c157d2701461e4 /r_qtl/errors.py
parent635cf832f4717da6e8e7ef273a675a4ceea42ed0 (diff)
downloadgn-uploader-ab71b34b97f3f1eee52b5688f41644541535f281.tar.gz
Do general bundle validation and show errors
* Display any and all errors on the UI * Move `validate_bundle` to QC module and refactor to use `missing_files`
Diffstat (limited to 'r_qtl/errors.py')
-rw-r--r--r_qtl/errors.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/r_qtl/errors.py b/r_qtl/errors.py
index 20c5ced..417eb58 100644
--- a/r_qtl/errors.py
+++ b/r_qtl/errors.py
@@ -5,3 +5,9 @@ class RQTLError(Exception):
class InvalidFormat(RQTLError):
"""Raised when the format of the file(s) is invalid."""
+
+class MissingFileError(InvalidFormat):
+ """
+ Raise when at least one file listed in the control file is missing from the
+ R/qtl2 bundle.
+ """