diff_gen: Calculate the F-statistics and ECF-statistics

Description Usage Arguments Value Author(s) Examples

View source: R/diff_gen.R

Description

The "diff_gen" function calculates the F-statistics which measures the differential expression of each gene and the ECF-statistcs which measures the differential correlation of each gene pair between two datasets

Usage

1
diff_gen(data1, data2)

Arguments

data1

one of the two gene expression datasets

data2

a second gene expression dataset

Value

A list containing:

diff_expr

a vector of the F-statistics for each gene

diff_coex

a square matrix storing the ECF-statistics for each gene pair

Author(s)

Haisu Ma

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#Load two of the simualted datasets

data(simulated_data)

set1_data <- simulated_data[[1]]
control_data <- simulated_data[[7]]

#Compute the F-statistics and ECF-statistics for the first 10 genes

diff_gen_test <- diff_gen(set1_data[,1:10],control_data[,1:10])

COSINE documentation built on May 1, 2019, 10:21 p.m.