Skip to content

Commit

Permalink
use correct validator
Browse files Browse the repository at this point in the history
  • Loading branch information
michabirklbauer committed Jan 24, 2024
1 parent 3972e36 commit 6bff9c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msannika_fdr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()]
Expand Down

0 comments on commit 6bff9c3

Please sign in to comment.