diff --git a/popv/preprocessing.py b/popv/preprocessing.py index 07cddf7..0be89de 100644 --- a/popv/preprocessing.py +++ b/popv/preprocessing.py @@ -13,6 +13,7 @@ class Process_Query: + 'Class to preprocess AnnData for PopV.' def __init__( self, query_adata: anndata.AnnData, @@ -204,7 +205,7 @@ def __init__( except FileNotFoundError: raise FileNotFoundError( f"{self.cl_obo_file} doesn't exist. Check that folder exists." - ) + ) from FileNotFoundError self.check_validity_anndata(self.query_adata, "query") self.setup_dataset(self.query_adata, "query", add_meta="_query") diff --git a/popv/reproducibility/_accuracy.py b/popv/reproducibility/_accuracy.py index 3f519d3..081395b 100644 --- a/popv/reproducibility/_accuracy.py +++ b/popv/reproducibility/_accuracy.py @@ -37,9 +37,7 @@ def match_type(n1, n2): def _fine_ontology_sibling_accuracy(adata, obofile, pred_key, gt_key, save_key=None): - """ - Calculates the fine ontology accuracy and also determines the distance to siblings - """ + "Calculates the fine ontology accuracy and also determines the distance to siblings" if save_key is None: save_key = pred_key + "_ontology_distance" adata.obs[save_key] = None