Recovery¶
recover_false_negatives(candidates: list[tuple[str, str]], dist_matrix: np.ndarray, node_index: dict[str, int], motif_scores: dict[tuple[str, str], float]) -> list[dict]
¶
Recover kinase–substrate pairs missed by the motif step.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
candidates
|
list[tuple[str, str]]
|
|
required |
dist_matrix
|
ndarray
|
|
required |
node_index
|
dict[str, int]
|
|
required |
motif_scores
|
dict of {(kinase_id, substrate_id): motif_score} from pynetphorest
|
|
required |
Returns:
| Type | Description |
|---|---|
List of prediction dicts for recovered pairs, each with:
|
kinase_id, substrate_uniprot, motif_score (-1.0 sentinel), context_score, networkin_score, recovered (True), recovery_method |