Description Usage Arguments Details Value Author(s) References Examples
This function identifies differentially coexpressed links (DCLs) and differentially coexpressed genes (DCGs).
1 2 3 4 
exprs.1 
a SummarizedExperiment, data frame or matrix for condition 1, with gene IDs as rownames and sample IDs as column names. 
exprs.2 
a SummarizedExperiment, data frame or matrix for condition 2, with gene IDs as rownames and sample IDs as column names. 
r.method 
a character string specifying the method to be used to calculate correlation coefficients. It is passed to the cor function of the WGCNA package. 
q.method 
a character string specifying the method for adjusting p values. It is passed to the p.adjust function of the stats package. 
rth 
the cutoff of absolute value of correlation coefficients; must be within [0,1]. 
qth 
the cutoff of qvalue (adjusted p value); must be within [0,1]. 
r.diffth 
the cutoff of absolute value of the difference between the correlation coefficients of the two conditions; must be within [0,1]. 
q.diffth 
the cutoff of qvalue (adjusted p value) of the difference between the correlation coefficients of the two conditions; must be within [0,1]. 
q.dcgth 
the cutoff of qvalue (adjusted p value) of the genes enriched in the differentilly correlated gene pairs between the two conditions; must be within [0,1]. 
diffcoexp function identifies differentially coexpressed links (DCLs) and differentially coexpressed genes (DCGs). DCLs are gene pairs with significantly different correlation coefficients under two conditions (de la Fuente 2010, Jiang et al., 2016). DCGs are genes with significantly more DCLs than by chance (Yu et al., 2011, Jiang et al., 2016). It takes two gene expression matrices or data frames under two conditions as input, calculates genegene correlations under two conditions and compare them with Fisher's Z transformation, filter the correlation with the rth and qth and the correlation changes with r.diffth and q.diffth. It identifies DCGs using binomial probability model (Jiang et al., 2016).
The main steps are as follows:
a). Correlation coefficients and p values of all gene pairs under two conditions are calculated.
b). The difference between the correlation coefficients under two conditions are calculated and the p value is calculated using Fisher's Ztransformation.
c). p values are adjusted.
d). Gene pairs (links) coexpressed in at least one condition are identified using the criteria that at least one of the correlation coefficients under two conditions has absolute value greater than the threshold rth and adjusted p value less than the threshold qth. The links that meet the criteria are included in CLs.
e). Differentially coexpressed gene pairs (links) are identified from CLs using the criteria that the absolute value of the difference between the two correlation coefficients is greater the threshold r.diffth and adjusted p value is less than the threshold q.diffth. The links that meet the criteria are included in DCLs.
f). The DCLs are classified into three categories: "same signed", "diff signed", or "switched opposites". "same signed" indicates that the gene pair has same signed correlation coefficients under both conditions. "diff signed" indicates that the gene pair has oppositely signed correlation coefficients under two conditions and only one of them meets the criteria that absolute correlation coefficient is greater than the threshold rth and adjusted p value less than the threshold qth. "switched opposites" indicates that the gene pair has oppositely signed correlation coefficients under two conditions and both of them meet the criteria that absolute correlation coefficient is greater than the threshold rth and adjusted p value less than the threshold qth.
g). All the genes in DCLs are tested for their enrichment of DCLs, i.e, whether they have more DCLs than by chance using binomial probability model (Jiang et al., 2016). Those with adjusted p value less than the threshold q.dcgth are included in DCGs.
a list of two data frames.
The DCGs data frame contains genes that contribute to differentially correlated links (gene pairs) with q value less than q.dcgth. It has the following columns:

Gene ID 

Number of links with absolute correlation coefficient greater than rth and q value less than qth in at least one condition 

Number of links that meet the criteria for CLs and the criteria that absolute difference between the correlation coefficients of the two condition is greater than r.diffth and q value less than q.diffth 

Number of subset of DCLs with same signed correlation coefficients in both conditions 

Number of subset of DCLs with oppositely signed correlation coefficients under two conditions but only one of them has absolute correlation coefficient greater than rth and q value less than qth 

Number of subset of DCLs with oppositely signed correlation coefficients under two conditions and both of them have absolute correlation coefficient greater than rth and q value less than qth 

p value of having >=DCLs given CLs 

adjusted p value 
The DCLs data frame contains the differentially correlated links (gene pairs) that meet the criteria that at least one of their correlation coefficients (cor.1 and/or cor.2) is greater than rth with q value (q.1 and/or q.2) less than qth and the absolute value of the difference between the correlation coefficients under two conditions (cor.diff) is greater than r.diffth with q.diffcor less than q.diffth. It has the following columns:

Gene ID 

Gene ID 

correlation coefficients under condition 1 

correlation coefficients under condition 2 

difference between correlation coefficients under condition 2 and condition 1 

p value under null hypothesis that correlation coefficient under condition 1 equals to zero 

p value under null hypothesis that correlation coefficient under condition 2 equals to zero 

p value under null hypothesis that difference between two correlation coefficients under two conditions equals to zero using Fisher's rtoZ transformation 

adjusted p value under null hypothesis that correlation coefficient under condition 1 equals to zero 

adjusted p value under null hypothesis that correlation coefficient under condition 2 equals to zero 

adjusted p value under null hypothesis that the difference between two correlation coefficients under two conditions equals to zero using Fisher's rtoZ transformation 

can have value "same signed", "diff signed", or "switched opposites". "same signed" indicates that the gene pair has same signed correlation coefficients under both conditions. "diff signed" indicates that the gene pair has oppositely signed correlation coefficients under two conditions and only one of them meets the criteria that absolute correlation coefficient is greater than rth and q value less than qth. "switched opposites" indicates that the gene pair has oppositely signed correlation coefficients under two conditions and both of them meet the criteria that absolute correlation coefficient is greater than rth and q value less than qth. 
Wenbin Wei
1. de la Fuente A. From "differential expression" to "differential networking"  identification of dysfunctional regulatory networks in diseases. Trends in Genetics. 2010 Jul;26(7):32633.
2. Jiang Z, Dong X, Li ZG, He F, Zhang Z. Differential Coexpression Analysis Reveals Extensive Rewiring of Arabidopsis Gene Coexpression in Response to Pseudomonas syringae Infection. Scientific Reports. 2016 Dec;6(1):35064.
3. Yu H, Liu BH, Ye ZQ, Li C, Li YX, Li YY. Linkbased quantitative methods to identify differentially coexpressed genes and gene pairs. BMC bioinformatics. 2011;12(1):315.
1 2 3 4 5 6 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.