compEdgeOccur: Compare similarity between edges' occurrence

View source: R/func__networkAnalyser__compEdgeOccur.R

compEdgeOccurR Documentation

Compare similarity between edges' occurrence

Description

Compute a matrix of Simpson's similarity coefficients for the presence of edges.

Usage

compEdgeOccur(net, apam, directed = TRUE)

Arguments

net

A Graph object created by the function mkNetwork for a single network. It has three attributes: id, E and V. Required columns of E are "y" and "x", which are vertex names.

apam

Allelic presence-absence matrix. Rows: strain names; columns: allele names.

directed

A logical argument specifying whether net stores a directed network. Default: TRUE.

Value

A list of three elements: net, an undirected network converted from the input network; es, a data frame of edge pairs; sim, the similarity matrix for edges, which is a symmetric matrix.

Author(s)

Yu Wan (wanyuac@126.com)

Examples

compEdgeOccur


wanyuac/GeneMates documentation built on Aug. 12, 2022, 7:37 a.m.