This function matches two sets of variables using a bipartite graph and returns a data frame of the matched pairs.
bipartite_variable_match(
data,
cog_col = "cog",
voi_col = "voi",
plot = FALSE,
weight_type = "-log(p)",
edge_width_multiplier = 11,
directed = FALSE
)
A data frame containing the required columns for matching.
Character. The name of the first variable column. Default is "cog".
Character. The name of the second variable column. Default is "voi".
Logical. If TRUE, plots the resulting bipartite graph. Default is FALSE.
Character. Defines the edge weight type for the bipartite graph. Options are "d" (distance), "-log(p)" (negative log p-value). Default is "-log(p)".
Numeric. Multiplier for the edge width in the plot. Default is 11.
Logical. If TRUE, creates a directed graph. Default is FALSE.
A data frame with matched pairs of variables and their associated data.