network_coexpression: Calculate coexpression of network nodes

Description Usage Arguments Value

View source: R/network_coexpression.R

Description

Calculate the mRNA or protein coexpression of each pair of genes or proteins in a network, and append this value to the input data frame as an extra column.

Usage

1
network_coexpression(network, expr, col_name = "coexpr", ...)

Arguments

network

a matrix or data frame, with nodes (genes) in the first two columns

expr

a matrix containing mRNA or protein expression data, with genes as columns

col_name

the name of the new column to create; defaults to "coexpr"

...

further arguments passed directly to the cor function, such as coefficient (e.g., Pearson or Spearman)

Value

the input network, with an extra column containing the coexpression of each interacting gene or protein pair


skinnider/flavin documentation built on May 6, 2019, 10:49 a.m.