corneto.methods.PHONEMeS#
- class corneto.methods.PHONEMeS(default_edge_cost=1e-05, max_flow=None, epsilon=1, backend=None)#
Bases:
FlowMethodInfer acyclic signaling networks from phosphoproteomic scores.
PHONEMeS uses one directed flow per condition. Perturbations inject flow, measured phosphosites can extract it, and explicit binary vertex variables attach signed phosphosite scores to every selected biological node.
- Parameters:
- __init__(default_edge_cost=1e-05, max_flow=None, epsilon=1, backend=None)#
Methods
__init__([default_edge_cost, max_flow, ...])build(pkn, *, perturbations, phosphosite_scores)Build a single-condition PHONEMeS problem.
build_from_data(graph[, data])Build the complete optimization problem.
build_many(pkn, *, perturbations, ...[, ...])Build a PHONEMeS problem for multiple named conditions.
create_flow_based_problem(flow_problem, ...)Add vectorized PHONEMeS selection, role, and objective terms.
create_problem(graph, data)Create selected biological flows without auxiliary-edge binaries.
Return a short method description.
get_flow_bounds(graph, data)Return condition-specific bounds for internal and boundary flows.
name()Return the method name.
preprocess(graph, data)Validate inputs, prune unreachable PKN regions, and add boundaries.
Return PHONEMeS publication citation keys.
show_bibtex()Display raw BibTeX entries in a formatted block for easy copying.
show_references()Display formatted citations in a Jupyter notebook.
Attributes
backendReturn the optimization backend being used.
- build(pkn, *, perturbations, phosphosite_scores, edge_costs=None)#
Build a single-condition PHONEMeS problem.
phosphosite_scoresaccepts a site mapping or a pandas Series when pandas is available.- Parameters:
pkn (BaseGraph)
- build_many(pkn, *, perturbations, phosphosite_scores, edge_costs=None)#
Build a PHONEMeS problem for multiple named conditions.
phosphosite_scoresaccepts a named condition mapping or a pandas DataFrame with phosphosites as rows and conditions as columns.- Parameters:
pkn (BaseGraph)
- preprocess(graph, data)#
Validate inputs, prune unreachable PKN regions, and add boundaries.
- get_flow_bounds(graph, data)#
Return condition-specific bounds for internal and boundary flows.
- create_problem(graph, data)#
Create selected biological flows without auxiliary-edge binaries.
- create_flow_based_problem(flow_problem, graph, data)#
Add vectorized PHONEMeS selection, role, and objective terms.
- static references()#
Return PHONEMeS publication citation keys.