RWR_network_aggregation: RWR_network_aggregation

View source: R/RWR_network_aggregation.R

RWR_network_aggregationR Documentation

RWR_network_aggregation

Description

This function acts as an aggregator for RWR multiplex objects.

Usage

RWR_network_aggregation(
  data = NULL,
  flist = NULL,
  outdir = NULL,
  merged_with_all_edges = F,
  merged_with_edgecounts = F,
  verbose = F
)

Arguments

merged_with_all_edges

A boolean denoting a return of a merged down multiplex network along with network edge counts and vertex counts. Default False

merged_with_edgecounts

A boolean denoting a return of a merged down multiplex, but simplified with edge weights denoting the total number of layers in which that edge existed. Default False

Examples

# An example of aggregating multiplex networks 
# into a singular network 
extdata.dir <- system.file("example_data", package="RWRtoolkit")
mpo_path <- paste(extdata.dir, "string_interactions.Rdata", sep = "/")

output_aggregated_networks <- RWR_network_aggregation(
   data = mpo_path,
   merged_with_all_edges = T,
   merged_with_edgecounts = T,
   verbose = T
)

print(output_aggregated_networks)

dkainer/RWRtoolkit documentation built on Jan. 11, 2025, 3:26 a.m.