Learn R Programming

COSINE (version 2.1)

diff_gen_for3: Generate the F-statistics and ECF-statistics for the comparison of three datasets

Description

It works very similarly to "diff_gen" except that it performs the calculation across three rather than two datasets

Usage

diff_gen_for3(data1, data2, data3)

Arguments

data1
The first dataset of gene expression profiles
data2
The second dataset of gene expression profiles
data3
The third dataset of gene expression profiles

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

Examples

Run this code

#Load the simulated datasets

data(simulated_data)

set1_data<-simulated_data[[1]]

set2_data<-simulated_data[[2]]

control_data<-simulated_data[[7]]

#Calculate the F-statistics and ECF-statistics 
#for the first five genes

diff_gen_for3_test <- diff_gen_for3(set1_data[,1:5],
set2_data[,1:5],control_data[,1:5])

Run the code above in your browser using DataLab