build_subset_graph: Remove transitive edges and prepare graph

build_subset_graphR Documentation

Remove transitive edges and prepare graph

Description

Create a graph from the "build_topology_subset" edge list, so that it respects the subset relation, omitting the transitive edges.

Usage

build_subset_graph(edges, labels)

Arguments

edges

edge list, built from "build_topology_subset"

labels

list of node labels, to be paired with the graph

Value

a graph with the subset topology, omitting transitive edges

Examples

require(dplyr)
preproc <- example_dataset() %>% dataset_preprocessing
samples <- preproc[["samples"]]
freqs   <- preproc[["freqs"]]
labels  <- preproc[["labels"]]
genes   <- preproc[["genes"]]
edges <- build_topology_subset(samples)
g <- build_subset_graph(edges, labels)


redsnic/CIMICE documentation built on March 30, 2022, 2:46 a.m.