liana.method.build_prior_network¶
- liana.method.build_prior_network(ppis, input_nodes, output_nodes, lr_sep=None, verbose=False)¶
Build Prior Network from PPIs and input/output nodes.
- Parameters:
- ppislist of tuples or pandas DataFrame
The PPIs to use for the prior network. If a pandas DataFrame is provided, it must have the columns
- input_nodesdict
A dictionary of input nodes. The keys are the node names, the values are the node scores.
- output_nodesdict
A dictionary of output nodes. The keys are the node names, the values are the node scores.
- lr_sepstr, optional
The separator to use to split the input nodes into ligand and receptor. If None, the input nodes will be used as is.
- verbosebool, optional
Whether to print progress information. Default: True
- Returns:
- corneto.Graph