The results are from mashr_flashr_pipeline. We include the data driven covariance matrices based on the first three principal components and factors from flash
.
Results
logliks = c(get_loglik(m_simple_EE), get_loglik(m_mle_EE), get_loglik(m_Vgene_EE_kushal), get_loglik(m_Vgene_EE_nullz))
logliks_EZ = c(get_loglik(m_simple_EZ), get_loglik(m_mle_EZ), get_loglik(m_Vgene_EZ_kushal), get_loglik(m_Vgene_EZ_nullz))
tmp = cbind(logliks, logliks_EZ)
row.names(tmp) = c('Simple', 'MLE', 'Vgene Kushal', 'Vgene null z')
colnames(tmp) = c('EE', 'EZ')
tmp %>% kable() %>% kable_styling()
|
EE
|
EZ
|
Simple
|
936478.4
|
937254.7
|
MLE
|
940058.8
|
940457.4
|
Vgene Kushal
|
886368.9
|
907004.4
|
Vgene null z
|
1021859.8
|
1036059.9
|
par(mfrow=c(1,2))
barplot(get_estimated_pi(m_simple_EE), las=2, cex.names = 0.7, main = 'Simple EE')
barplot(get_estimated_pi(m_mle_EE), las=2, cex.names = 0.7, main = 'MLE EE')

Expand here to see past versions of plot weights-1.png:
Version
|
Author
|
Date
|
02da57c
|
zouyuxin
|
2019-01-27
|
barplot(get_estimated_pi(m_Vgene_EE_kushal), las=2, cex.names = 0.7, main = 'V gene specific EE Kushal')
barplot(get_estimated_pi(m_Vgene_EE_nullz), las=2, cex.names = 0.7, main = 'V gene specific EE null z')

Expand here to see past versions of plot weights-2.png:
Version
|
Author
|
Date
|
5d17b16
|
zouyuxin
|
2019-01-29
|
02da57c
|
zouyuxin
|
2019-01-27
|
barplot(get_estimated_pi(m_simple_EZ), las=2, cex.names = 0.7, main = 'Simple EZ')
barplot(get_estimated_pi(m_mle_EZ), las=2, cex.names = 0.7, main = 'MLE EZ')

Expand here to see past versions of plot weights-3.png:
Version
|
Author
|
Date
|
5d17b16
|
zouyuxin
|
2019-01-29
|
barplot(get_estimated_pi(m_Vgene_EZ_kushal), las=2, cex.names = 0.7, main = 'V gene specific EZ Kushal')
barplot(get_estimated_pi(m_Vgene_EZ_nullz), las=2, cex.names = 0.7, main = 'V gene specific EZ null z')

Expand here to see past versions of plot weights-4.png:
Version
|
Author
|
Date
|
5d17b16
|
zouyuxin
|
2019-01-29
|
Number of significant:
numsig_EE = c(length(get_significant_results(m_simple_EE)),
length(get_significant_results(m_mle_EE)),
length(get_significant_results(m_Vgene_EE_kushal)),
length(get_significant_results(m_Vgene_EE_nullz)))
numsig_EZ = c(length(get_significant_results(m_simple_EZ)),
length(get_significant_results(m_mle_EZ)),
length(get_significant_results(m_Vgene_EZ_kushal)),
length(get_significant_results(m_Vgene_EZ_nullz)))
tmp = cbind(numsig_EE, numsig_EZ)
row.names(tmp) = c('Simple', 'MLE', 'Vgene Kushal', 'Vgene null z')
colnames(tmp) = c('EE', 'EZ')
tmp %>% kable() %>% kable_styling()
|
EE
|
EZ
|
Simple
|
13068
|
13519
|
MLE
|
12654
|
12986
|
Vgene Kushal
|
15767
|
16066
|
Vgene null z
|
15916
|
15967
|
The gene significant in Simple EZ
, not in MLE EZ
:
ind = setdiff(get_significant_results(m_simple_EZ), get_significant_results(m_mle_EZ))[9]
stronggene = data.frame(gtex$strong.b[ind,])
colnames(stronggene) = 'EffectSize'
stronggene$Group = row.names(stronggene)
stronggene$se = gtex$strong.s[ind,]
p1 = ggplot(stronggene, aes(y = EffectSize, x = Group)) +
geom_point(show.legend = FALSE, color=gtex.colors) + coord_flip() + ggtitle(paste0(gene.names[ind], ' raw')) + ylim(c(-1,1)) + geom_errorbar(aes(ymin=EffectSize-1.96*se, ymax=EffectSize+1.96*se), width=0.4, show.legend = FALSE, color=gtex.colors) +
theme_bw(base_size=12) + theme(axis.text.y = element_text(colour = gtex.colors, size = 6))
stronggeneSimple = data.frame(m_simple_EZ$result$PosteriorMean[ind,])
colnames(stronggeneSimple) = 'EffectSize'
stronggeneSimple$Group = row.names(stronggeneSimple)
stronggeneSimple$se = m_simple_EZ$result$PosteriorSD[ind,]
p2 = ggplot(stronggeneSimple, aes(y = EffectSize, x = Group)) +
geom_point(show.legend = FALSE, color=gtex.colors) + coord_flip() + ggtitle(paste0(gene.names[ind],' Simple EZ')) + ylim(c(-1,1)) +
geom_errorbar(aes(ymin=EffectSize-1.96*se, ymax=EffectSize+1.96*se), width=0.4, show.legend = FALSE, color=gtex.colors) +
theme_bw(base_size=12) + theme(axis.text.y = element_text(colour = gtex.colors, size = 6))
stronggeneMLE = data.frame(m_mle_EZ$result$PosteriorMean[ind,])
colnames(stronggeneMLE) = 'EffectSize'
stronggeneMLE$Group = row.names(stronggeneMLE)
stronggeneMLE$se = m_mle_EZ$result$PosteriorSD[ind,]
p3 = ggplot(stronggeneMLE, aes(y = EffectSize, x = Group)) +
geom_point(show.legend = FALSE, color=gtex.colors) + ylim(c(-1,1)) + coord_flip() + ggtitle(paste0(gene.names[ind],' MLE EZ')) +
geom_errorbar(aes(ymin=EffectSize-1.96*se, ymax=EffectSize+1.96*se), width=0.4, show.legend = FALSE, color=gtex.colors) +
theme_bw(base_size=12) + theme(axis.text.y = element_text(colour = gtex.colors, size = 6))
stronggeneVgeneKushal = data.frame(m_Vgene_EZ_kushal$result$PosteriorMean[ind,])
colnames(stronggeneVgeneKushal) = 'EffectSize'
stronggeneVgeneKushal$Group = row.names(stronggeneVgeneKushal)
stronggeneVgeneKushal$se = m_Vgene_EZ_kushal$result$PosteriorSD[ind,]
p4 = ggplot(stronggeneVgeneKushal, aes(y = EffectSize, x = Group)) +
geom_point(show.legend = FALSE, color=gtex.colors) + ylim(c(-1,1)) + coord_flip() + ggtitle(paste0(gene.names[ind],' V gene specific Kushal EZ')) +
geom_errorbar(aes(ymin=EffectSize-1.96*se, ymax=EffectSize+1.96*se), width=0.4, show.legend = FALSE, color=gtex.colors) +
theme_bw(base_size=12) + theme(axis.text.y = element_text(colour = gtex.colors, size = 6))
stronggeneVgeneNullZ = data.frame(m_Vgene_EZ_nullz$result$PosteriorMean[ind,])
colnames(stronggeneVgeneNullZ) = 'EffectSize'
stronggeneVgeneNullZ$Group = row.names(stronggeneVgeneNullZ)
stronggeneVgeneNullZ$se = m_Vgene_EZ_nullz$result$PosteriorSD[ind,]
p5 = ggplot(stronggeneVgeneNullZ, aes(y = EffectSize, x = Group)) +
geom_point(show.legend = FALSE, color=gtex.colors) + ylim(c(-1,1)) + coord_flip() + ggtitle(paste0(gene.names[ind],' V gene specific Null EZ')) +
geom_errorbar(aes(ymin=EffectSize-1.96*se, ymax=EffectSize+1.96*se), width=0.4, show.legend = FALSE, color=gtex.colors) +
theme_bw(base_size=12) + theme(axis.text.y = element_text(colour = gtex.colors, size = 6))
grid.arrange(p1, p2, p3, p4, p5, nrow = 2)

Expand here to see past versions of unnamed-chunk-3-1.png:
Version
|
Author
|
Date
|
5d17b16
|
zouyuxin
|
2019-01-29
|
02da57c
|
zouyuxin
|
2019-01-27
|
The gene MCPH1
:
ind = 13837
stronggene = data.frame(gtex$strong.b[13837,])
colnames(stronggene) = 'EffectSize'
stronggene$Group = row.names(stronggene)
stronggene$se = gtex$strong.s[13837,]
p1 = ggplot(stronggene, aes(y = EffectSize, x = Group)) +
geom_point(show.legend = FALSE, color=gtex.colors) + coord_flip() + ggtitle('ENSG00000249898 row') + ylim(c(-1.3,1.1)) + geom_errorbar(aes(ymin=EffectSize-1.96*se, ymax=EffectSize+1.96*se), width=0.4, show.legend = FALSE, color=gtex.colors) +
theme_bw(base_size=12) + theme(axis.text.y = element_text(colour = gtex.colors, size = 6))
stronggeneSimple = data.frame(m_simple_EZ$result$PosteriorMean[13837,])
colnames(stronggeneSimple) = 'EffectSize'
stronggeneSimple$Group = row.names(stronggeneSimple)
stronggeneSimple$se = m_simple_EZ$result$PosteriorSD[13837,]
p2 = ggplot(stronggeneSimple, aes(y = EffectSize, x = Group)) +
geom_point(show.legend = FALSE, color=gtex.colors) + ylim(c(-1.3,1.1)) + coord_flip() + ggtitle('ENSG00000249898 Simple EZ') +
geom_errorbar(aes(ymin=EffectSize-1.96*se, ymax=EffectSize+1.96*se), width=0.4, show.legend = FALSE, color=gtex.colors) +
theme_bw(base_size=12) + theme(axis.text.y = element_text(colour = gtex.colors, size = 6))
stronggeneMLE = data.frame(m_mle_EZ$result$PosteriorMean[13837,])
colnames(stronggeneMLE) = 'EffectSize'
stronggeneMLE$Group = row.names(stronggeneMLE)
stronggeneMLE$se = m_mle_EZ$result$PosteriorSD[13837,]
p3 = ggplot(stronggeneMLE, aes(y = EffectSize, x = Group)) +
geom_point(show.legend = FALSE, color=gtex.colors) + coord_flip() + ggtitle('ENSG00000249898 MLE EZ') + ylim(c(-1.3,1.1)) +
geom_errorbar(aes(ymin=EffectSize-1.96*se, ymax=EffectSize+1.96*se), width=0.4, show.legend = FALSE, color=gtex.colors) +
theme_bw(base_size=12) + theme(axis.text.y = element_text(colour = gtex.colors, size = 6))
stronggeneVgeneKushal = data.frame(m_Vgene_EZ_kushal$result$PosteriorMean[ind,])
colnames(stronggeneVgeneKushal) = 'EffectSize'
stronggeneVgeneKushal$Group = row.names(stronggeneVgeneKushal)
stronggeneVgeneKushal$se = m_Vgene_EZ_kushal$result$PosteriorSD[ind,]
p4 = ggplot(stronggeneVgeneKushal, aes(y = EffectSize, x = Group)) +
geom_point(show.legend = FALSE, color=gtex.colors) + ylim(c(-1.3,1.1)) + coord_flip() + ggtitle(paste0(gene.names[ind],' V gene specific Kushal EZ')) +
geom_errorbar(aes(ymin=EffectSize-1.96*se, ymax=EffectSize+1.96*se), width=0.4, show.legend = FALSE, color=gtex.colors) +
theme_bw(base_size=12) + theme(axis.text.y = element_text(colour = gtex.colors, size = 6))
stronggeneVgeneNullZ = data.frame(m_Vgene_EZ_nullz$result$PosteriorMean[ind,])
colnames(stronggeneVgeneNullZ) = 'EffectSize'
stronggeneVgeneNullZ$Group = row.names(stronggeneVgeneNullZ)
stronggeneVgeneNullZ$se = m_Vgene_EZ_nullz$result$PosteriorSD[ind,]
p5 = ggplot(stronggeneVgeneNullZ, aes(y = EffectSize, x = Group)) +
geom_point(show.legend = FALSE, color=gtex.colors) + ylim(c(-1.3,1.1)) + coord_flip() + ggtitle(paste0(gene.names[ind],' V gene specific Null EZ')) +
geom_errorbar(aes(ymin=EffectSize-1.96*se, ymax=EffectSize+1.96*se), width=0.4, show.legend = FALSE, color=gtex.colors) +
theme_bw(base_size=12) + theme(axis.text.y = element_text(colour = gtex.colors, size = 6))
grid.arrange(p1, p2, p3, p4, p5, nrow = 2)

Expand here to see past versions of unnamed-chunk-4-1.png:
Version
|
Author
|
Date
|
5d17b16
|
zouyuxin
|
2019-01-29
|
02da57c
|
zouyuxin
|
2019-01-27
|
The gene significant in V gene specific EZ (null) tissuewide
, not in mle EZ
:
ind = setdiff(get_significant_results(m_Vgene_EZ_nullz), get_significant_results(m_mle_EZ))[10]
stronggene = data.frame(gtex$strong.b[ind,])
colnames(stronggene) = 'EffectSize'
stronggene$Group = row.names(stronggene)
stronggene$se = gtex$strong.s[ind,]
p1 = ggplot(stronggene, aes(y = EffectSize, x = Group)) +
geom_point(show.legend = FALSE, color=gtex.colors) + coord_flip() + ggtitle(paste0(gene.names[ind],' row')) + ylim(c(-1.3,1.4)) + geom_errorbar(aes(ymin=EffectSize-1.96*se, ymax=EffectSize+1.96*se), width=0.4, show.legend = FALSE, color=gtex.colors) +
theme_bw(base_size=12) + theme(axis.text.y = element_text(colour = gtex.colors, size = 6))
stronggeneSimple = data.frame(m_simple_EZ$result$PosteriorMean[ind,])
colnames(stronggeneSimple) = 'EffectSize'
stronggeneSimple$Group = row.names(stronggeneSimple)
stronggeneSimple$se = m_simple_EZ$result$PosteriorSD[ind,]
p2 = ggplot(stronggeneSimple, aes(y = EffectSize, x = Group)) +
geom_point(show.legend = FALSE, color=gtex.colors) + ylim(c(-1.3,1.4)) + coord_flip() + ggtitle(paste0(gene.names[ind],' Simple EZ')) +
geom_errorbar(aes(ymin=EffectSize-1.96*se, ymax=EffectSize+1.96*se), width=0.4, show.legend = FALSE, color=gtex.colors) +
theme_bw(base_size=12) + theme(axis.text.y = element_text(colour = gtex.colors, size = 6))
stronggeneMLE = data.frame(m_mle_EZ$result$PosteriorMean[ind,])
colnames(stronggeneMLE) = 'EffectSize'
stronggeneMLE$Group = row.names(stronggeneMLE)
stronggeneMLE$se = m_mle_EZ$result$PosteriorSD[ind,]
p3 = ggplot(stronggeneMLE, aes(y = EffectSize, x = Group)) +
geom_point(show.legend = FALSE, color=gtex.colors) + coord_flip() + ggtitle(paste0(gene.names[ind],' MLE EZ')) + ylim(c(-1.3,1.4)) +
geom_errorbar(aes(ymin=EffectSize-1.96*se, ymax=EffectSize+1.96*se), width=0.4, show.legend = FALSE, color=gtex.colors) +
theme_bw(base_size=12) + theme(axis.text.y = element_text(colour = gtex.colors, size = 6))
stronggeneVgeneKushal = data.frame(m_Vgene_EZ_kushal$result$PosteriorMean[ind,])
colnames(stronggeneVgeneKushal) = 'EffectSize'
stronggeneVgeneKushal$Group = row.names(stronggeneVgeneKushal)
stronggeneVgeneKushal$se = m_Vgene_EZ_kushal$result$PosteriorSD[ind,]
p4 = ggplot(stronggeneVgeneKushal, aes(y = EffectSize, x = Group)) +
geom_point(show.legend = FALSE, color=gtex.colors) + ylim(c(-1,1)) + coord_flip() + ggtitle(paste0(gene.names[ind],' V gene specific Kushal EZ')) +
geom_errorbar(aes(ymin=EffectSize-1.96*se, ymax=EffectSize+1.96*se), width=0.4, show.legend = FALSE, color=gtex.colors) +
theme_bw(base_size=12) + theme(axis.text.y = element_text(colour = gtex.colors, size = 6))
stronggeneVgeneNullZ = data.frame(m_Vgene_EZ_nullz$result$PosteriorMean[ind,])
colnames(stronggeneVgeneNullZ) = 'EffectSize'
stronggeneVgeneNullZ$Group = row.names(stronggeneVgeneNullZ)
stronggeneVgeneNullZ$se = m_Vgene_EZ_nullz$result$PosteriorSD[ind,]
p5 = ggplot(stronggeneVgeneNullZ, aes(y = EffectSize, x = Group)) +
geom_point(show.legend = FALSE, color=gtex.colors) + ylim(c(-1.3,1.4)) + coord_flip() + ggtitle(paste0(gene.names[ind],' V gene specific Null EZ')) +
geom_errorbar(aes(ymin=EffectSize-1.96*se, ymax=EffectSize+1.96*se), width=0.4, show.legend = FALSE, color=gtex.colors) +
theme_bw(base_size=12) + theme(axis.text.y = element_text(colour = gtex.colors, size = 6))
grid.arrange(p1, p2, p3, p4, p5, nrow = 2)

Expand here to see past versions of unnamed-chunk-5-1.png:
Version
|
Author
|
Date
|
5d17b16
|
zouyuxin
|
2019-01-29
|
02da57c
|
zouyuxin
|
2019-01-27
|
The pairwise sharing by magnitude
par(mfrow = c(1,2))
clrs=colorRampPalette(rev(c('darkred', 'red','orange','yellow','cadetblue1', 'cyan', 'dodgerblue4', 'blue','darkorchid1','lightgreen','green', 'forestgreen','darkolivegreen')))(200)
x <- get_pairwise_sharing(m_simple_EZ)
colnames(x) <- colnames(get_lfsr(m_simple_EZ))
rownames(x) <- colnames(x)
corrplot::corrplot(x, method='color', type='upper', tl.col="black", tl.srt=45, tl.cex = 0.7, diag = FALSE, col=clrs, cl.lim = c(0,1), title = 'Simple EZ', mar=c(0,0,5,0))
x <- get_pairwise_sharing(m_mle_EZ)
colnames(x) <- colnames(get_lfsr(m_mle_EZ))
rownames(x) <- colnames(x)
corrplot::corrplot(x, method='color', type='upper', tl.col="black", tl.srt=45, tl.cex = 0.7, diag = FALSE, col=clrs, cl.lim = c(0,1), title = 'MLE EZ', mar=c(0,0,5,0))

Expand here to see past versions of unnamed-chunk-6-1.png:
Version
|
Author
|
Date
|
5d17b16
|
zouyuxin
|
2019-01-29
|
par(mfrow = c(1,2))
clrs=colorRampPalette(rev(c('darkred', 'red','orange','yellow','cadetblue1', 'cyan', 'dodgerblue4', 'blue','darkorchid1','lightgreen','green', 'forestgreen','darkolivegreen')))(200)
x <- get_pairwise_sharing(m_Vgene_EZ_kushal)
colnames(x) <- colnames(get_lfsr(m_Vgene_EZ_kushal))
rownames(x) <- colnames(x)
corrplot::corrplot(x, method='color', type='upper', tl.col="black", tl.srt=45, tl.cex = 0.7, diag = FALSE, col=clrs, cl.lim = c(0,1), title = 'V gene specific Kushal EZ', mar=c(0,0,5,0))
x <- get_pairwise_sharing(m_Vgene_EZ_nullz)
colnames(x) <- colnames(get_lfsr(m_Vgene_EZ_nullz))
rownames(x) <- colnames(x)
corrplot::corrplot(x, method='color', type='upper', tl.col="black", tl.srt=45, tl.cex = 0.7, diag = FALSE, col=clrs, cl.lim = c(0,1), title = 'V gene specific Null EZ', mar=c(0,0,5,0))

Expand here to see past versions of unnamed-chunk-7-1.png:
Version
|
Author
|
Date
|
5d17b16
|
zouyuxin
|
2019-01-29
|