Skip to content

Commit

Permalink
New.
Browse files Browse the repository at this point in the history
  • Loading branch information
canergen committed Dec 10, 2023
1 parent 5fb8aa7 commit 02b5865
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion popv/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@


class Process_Query:
'Class to preprocess AnnData for PopV.'
def __init__(
self,
query_adata: anndata.AnnData,
Expand Down Expand Up @@ -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")
Expand Down
4 changes: 1 addition & 3 deletions popv/reproducibility/_accuracy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 02b5865

Please sign in to comment.