From ab71b34b97f3f1eee52b5688f41644541535f281 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 5 Feb 2024 07:00:01 +0300 Subject: 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` --- r_qtl/errors.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'r_qtl/errors.py') 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. + """ -- cgit v1.2.3