edge.diss: Edge set dissimilarity

View source: R/roc.R

edge.dissR Documentation

Edge set dissimilarity

Description

Compute the dissimilarity between the edge sets of two networks via:

  1. maximum overlap: |x y| / max{|x|,|y|}

  2. jaccard index (default): |x y|/(|x U y|)

Input networks do not have to have the same node sets.

Usage

edge.diss(x, y, metric = "jaccard", otux = NULL, otuy = NULL)

Arguments

x

pxp adjacency matrix (Matrix::sparseMatrix class)

y

other qxq adjacency matrix (Matrix::sparseMatrix class)

metric

'jaccard' or 'max'

otux

taxa names of adjacency x

otuy

taxa names of adjacency y


zdk123/SpiecEasi documentation built on Oct. 20, 2023, 6:49 a.m.