countGeneClassLinks: Count the number of links in a network at the level of gene...

View source: R/func__networkAnalyser__countGeneClassLinks.R

countGeneClassLinksR Documentation

Count the number of links in a network at the level of gene classes

Description

This function is useful in summarising connections between gene classes (for example, antimicrobial classes) based on a network.

Usage

countGeneClassLinks(net, mapping, out.matrix = FALSE)

Arguments

net

A Graph object, or a data frame whose first two columns are names of allele Y (response variable) and X (explanatory variable).

mapping

A data frame mapping allele names to gene classes. It can be the data frame "mapping" in the output list of findPhysLink.

out.matrix

A logical argument determining whether a square matrix or a data frame is returned.

Value

A data frame of three columns: Class_y and Class_x, the target and source gene class, respectively; Links, link counts per kind of edge (Class_y, Class_x).

Author(s)

Yu Wan (wanyuac@126.com)


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