This function performs message passing on a graph based on a transcription network and an aggregation method.
Usage
message_passing(graph, transcription_network, agg = "mean")
Arguments
- graph
An igraph object representing the graph.
- transcription_network
A data frame containing the transcription network with columns 'target' and 'edge_type'.
- agg
A character string specifying the aggregation method. Options are 'mean' or 'degree_importance'. Default is 'mean'.
Value
The updated graph with new vertex attributes 'feature_rep' and 'features_act'.