modCor: Calculate correlation between regulation of orthologous genes...

Description Usage Arguments Value Examples

Description

Calculates correlation between regulation of group of genes in two data sets. Takes as arguments an object of class matchedOrtholog, a vector of genes of interest (for example, genes belonging to an expression module) and method of correlation calculation. The function also checks how many of the genes in the vector are present in the matchedOrtholog object. frame.

Usage

1
modCor(x, g = NULL, method = "pearson")

Arguments

x

an object of class matchedOrtholog

g

either a vector of gene names of genes of interest, or an object of class "tmod" with definitions of modules. If NULL, all genes will be used

method

method for calculation of correlation (default: pearson)

Value

data frame with two columns: Cor - calculated correlation between the genes, P.Value - p value from test of significance of the correlation, NGenes - number of genes included in correlation calculation. Row names of the data frame correspond to the names of the modules.

Examples

1
2
3
4
5
6
7
8
9
library(tmod)
data(tmod)
data(orthologs)

genes <- tmod$MODULES2GENES[["LI.M0"]]
a <- modCor(orthologs, genes)

# Using tmod objects directly
a <- modCor(orthologs, tmod[c("LI.M0", "LI.M1.0")], "spearman")

disco documentation built on May 2, 2019, 9:40 a.m.

Related to modCor in disco...