From 6bff9c3f8e486c875eed6a5afa0b62ff3b81211f Mon Sep 17 00:00:00 2001 From: Micha Birklbauer Date: Wed, 24 Jan 2024 15:04:51 +0100 Subject: [PATCH] use correct validator --- msannika_fdr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msannika_fdr.py b/msannika_fdr.py index ed4f302..ce9aeff 100644 --- a/msannika_fdr.py +++ b/msannika_fdr.py @@ -177,7 +177,7 @@ def get_class(row: pd.Series) -> str: @staticmethod def get_cutoff(data: pd.DataFrame, fdr: float) -> float: - data["Class"] = data.apply(lambda row: MSAnnika_CSM_Validator.get_class(row), axis = 1) + data["Class"] = data.apply(lambda row: MSAnnika_Crosslink_Validator.get_class(row), axis = 1) data["Class_label"] = data.apply(lambda row: 0 if row["Class"] == "Target" else 1, axis = 1) labels = data["Class_label"].to_numpy() labels_sorted = labels[data["Best CSM Score"].to_numpy().argsort()]