Skip to content

Commit

Permalink
Aging Update
Browse files Browse the repository at this point in the history
  • Loading branch information
dosorio committed Jan 7, 2020
1 parent 3e997df commit d7c9224
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions inst/manuscript/aging-netDifferences.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ lNet['Prkca',] <- lNet['Prkca',]*c(0.2,2)
lNet['Stmn2',] <- lNet['Stmn2',]*c(1.2,1.6)
lNet['Atp2b1',] <- lNet['Atp2b1',]*c(1.1,1.1)
lNet['Rps19',] <- lNet['Rps19',]*c(1,1.1)
lNet['Meis2',] <- lNet['Meis2',]*c(0.8,1)
gY <- names(V(sY))
gO <- names(V(sO))
plot(uNet, layout = lNet, mark.groups = which(gO %in% gY))
Expand Down Expand Up @@ -108,8 +109,8 @@ myCircle <- function(coords, v=NULL, params) {

add.vertex.shape("fcircle", clip=igraph.shape.noclip,plot=myCircle, parameters=list(vertex.frame.color=1, vertex.frame.width=1))

png('figures/agingDiffNetworks.png', width = 6000, height = 3000, res = 300)
par(mfrow=c(1,2))
png('figures/agingDiffNetworks.png', width = 6000, height = 3000, res = 300, pointsize = 20, bg = NA)
par(mfrow=c(1,2), mar = c(0,0,0,0))
fColor <- ifelse(gY %in% gO, 'darkgoldenrod', NA)
fColor[(gY %in% dC) & fColor == 'darkgoldenrod'] <- 'forestgreen'
plot(sY, layout = lNet[names(V(sY)),], vertex.shape="fcircle", vertex.frame.color=fColor, vertex.frame.width=12, vertex.label = NA, edge.width = NA, edge.arrow.size = 0, rescale = FALSE, xlim = c(min(lNet[,1])*1.05, max(lNet[,1])*1.05), ylim=c(min(lNet[,2])*1.05, max(lNet[,2])*1.05), mark.groups = which(gY %in% gO), mark.col="#C5E5E7", mark.border=NA)
Expand Down
6 changes: 3 additions & 3 deletions inst/manuscript/agingtSNE.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ VlnPlot(allAging,'Celf2')
VlnPlot(allAging,'mt-Cytb')

png('figures/agingMEIS2.png', width = 1000, height = 1000, res = 300)
VlnPlot(allAging, features = 'Meis2', cols = c(rep('#E41A1C',1), rep("#377EB8",1)), pt.size = 0.25)+ theme_bw() + labs(title = 'MEIS2') + theme(plot.title = element_text(size=20),legend.position = "none") + xlab('Sample')
VlnPlot(allAging, features = 'Meis2', cols = c(rep('#E41A1C',1), rep("#377EB8",1)), pt.size = 0.25)+ theme_bw() + labs(title = 'Meis2') + theme(plot.title = element_text(size=20),legend.position = "none") + xlab('Sample')
dev.off()

png('figures/agingCELF2.png', width = 1000, height = 1000, res = 300)
VlnPlot(allAging, features = 'Celf2', cols = c(rep('#E41A1C',1), rep("#377EB8",1)), pt.size = 0.25)+ theme_bw() + labs(title = 'CELF2') + theme(plot.title = element_text(size=20),legend.position = "none") + xlab('Sample')
VlnPlot(allAging, features = 'Celf2', cols = c(rep('#E41A1C',1), rep("#377EB8",1)), pt.size = 0.25)+ theme_bw() + labs(title = 'Celf2') + theme(plot.title = element_text(size=20),legend.position = "none") + xlab('Sample')
dev.off()

png('figures/agingCOX7C.png', width = 1000, height = 1000, res = 300)
VlnPlot(allAging, features = 'Cox7c', cols = c(rep('#E41A1C',1), rep("#377EB8",1)), pt.size = 0.25)+ theme_bw() + labs(title = 'COX7C') + theme(plot.title = element_text(size=20),legend.position = "none") + xlab('Sample')
VlnPlot(allAging, features = 'Cox7c', cols = c(rep('#E41A1C',1), rep("#377EB8",1)), pt.size = 0.25)+ theme_bw() + labs(title = 'Cox7c') + theme(plot.title = element_text(size=20),legend.position = "none") + xlab('Sample')
dev.off()
Binary file modified inst/manuscript/figures/agingCELF2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/manuscript/figures/agingCOX7C.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/manuscript/figures/agingDiffNetworks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified inst/manuscript/figures/agingMEIS2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d7c9224

Please sign in to comment.