makeAdjacencyMatrix: Starting point to wrangle anansi dictionary list into binary...

View source: R/weaveWebFromTables.R

makeAdjacencyMatrixR Documentation

Starting point to wrangle anansi dictionary list into binary adjacency matrix

Description

Takes the anansi dictionary in list format and wrangles it into a binary adjacency matrix.

Usage

makeAdjacencyMatrix(dict_list, tableY = NULL, verbose = TRUE, mode = mode)

Arguments

dict_list

A list that has tableY names as entries in the case of mode == "interaction" and group names in the case of mode == "membership". For general use, we recommend using the one provided in this package.

tableY

A matrix containing y features of interest. Rows should be samples and columns should be features. Only used for mode == "interaction".

verbose

A boolean. Toggles whether to print diagnostic information while running. Useful for debugging errors on large datasets.

mode

A character vector. Can be "interaction" or "membership". Toggles whether to link two datasets based on their interactions or based on shared group membership.

Value

a binary adjacency matrix with features from tableY as rows and features from tableX as columns.

See Also

weaveWebFromTables


thomazbastiaanssen/anansi documentation built on Feb. 9, 2025, 2:07 p.m.