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:
ppis (
DataFrame|list[tuple[str,str]]) – The PPIs to use for the prior network. If a pandas DataFrame is provided, it must have the columnsinput_nodes (
dict[str,float]) – A dictionary of input nodes. The keys are the node names, the values are the node scores.output_nodes (
dict[str,float]) – A dictionary of output nodes. The keys are the node names, the values are the node scores.lr_sep (
str|None(default:None)) – The separator to use to split the input nodes into ligand and receptor. If None, the input nodes will be used as is.verbose (
bool(default:False)) – Whether to print progress information. Default: True
- Returns:
corneto.Graph