Spaces:
Sleeping
Sleeping
Update PFCapp.qmd
Browse files- PFCapp.qmd +8 -7
PFCapp.qmd
CHANGED
@@ -103,14 +103,15 @@ source("R/Palettes.R")
|
|
103 |
source('R/includes.R')
|
104 |
Adult.Ex <- readRDS('data/Adult.Ex.rds')
|
105 |
sp.PFC <- readRDS('data/sp.PFC.rds')
|
|
|
|
|
|
|
|
|
106 |
sp.PFC$Proj_module[which(sp.PFC$Proj_module=="ITi-D")] <- "ITi-M1"
|
107 |
sp.PFC$Proj_module[which(sp.PFC$Proj_module=="ITi-V")] <- "ITi-M2"
|
108 |
sp.PFC$Proj_module[which(sp.PFC$Proj_module=="ITc")] <- "ITc-M3"
|
109 |
colnames([email protected])[match(c("ITi_D","ITi_V","ITc"),colnames([email protected]))] <- c("ITi-M1","ITi-M2","ITc-M3")
|
110 |
-
|
111 |
-
sp.PFC$`ITi-M1`[is.na(sp.PFC$`ITi-M1`)] <- 0
|
112 |
-
sp.PFC$`ITi-M2`[is.na(sp.PFC$`ITi-M2`)] <- 0
|
113 |
-
sp.PFC$`ITc-M3`[is.na(sp.PFC$`ITc-M3`)] <- 0
|
114 |
|
115 |
clean_cells <- colnames(Adult.Ex)[!(
|
116 |
(Adult.Ex$Ex_subtype %in% c("CT","NP") & Adult.Ex$BC_num>0) |
|
@@ -347,7 +348,8 @@ output$sp_gene_plot <- renderPlot({
|
|
347 |
df <- df[order(df$Zscore),]
|
348 |
ggplot(df,aes(x=X,y=Y)) +
|
349 |
geom_point(aes(colour=Zscore), size=1) +
|
350 |
-
scale_color_gradientn(colours = viridis(n = 256, option = "D", direction = 1)
|
|
|
351 |
ggdark::dark_theme_void() +
|
352 |
labs(title = input$sp_gene) +
|
353 |
theme(plot.title = element_text(size = 20, hjust = 0.5),
|
@@ -367,8 +369,7 @@ output$sp_target_plot <- renderPlot({
|
|
367 |
df <- df[order(df$Zscore),]
|
368 |
ggplot(df, aes(x=X,y=Y)) +
|
369 |
geom_point(aes(colour=Zscore), size=1) +
|
370 |
-
scale_color_gradientn(colours = viridis(n = 256, option = "E", direction = 1)
|
371 |
-
limits = c(0,3)) +
|
372 |
ggdark::dark_theme_void() +
|
373 |
labs(title = input$sp_target) +
|
374 |
theme(plot.title = element_text(size = 20, hjust = 0.5),
|
|
|
103 |
source('R/includes.R')
|
104 |
Adult.Ex <- readRDS('data/Adult.Ex.rds')
|
105 |
sp.PFC <- readRDS('data/sp.PFC.rds')
|
106 |
+
sp.PFC$PTi[is.na(sp.PFC$PTi)] <- 0
|
107 |
+
sp.PFC$ITi_D[is.na(sp.PFC$ITi_D)] <- 0
|
108 |
+
sp.PFC$ITi_V[is.na(sp.PFC$ITi_V)] <- 0
|
109 |
+
sp.PFC$ITc[is.na(sp.PFC$ITc)] <- 0
|
110 |
sp.PFC$Proj_module[which(sp.PFC$Proj_module=="ITi-D")] <- "ITi-M1"
|
111 |
sp.PFC$Proj_module[which(sp.PFC$Proj_module=="ITi-V")] <- "ITi-M2"
|
112 |
sp.PFC$Proj_module[which(sp.PFC$Proj_module=="ITc")] <- "ITc-M3"
|
113 |
colnames([email protected])[match(c("ITi_D","ITi_V","ITc"),colnames([email protected]))] <- c("ITi-M1","ITi-M2","ITc-M3")
|
114 |
+
|
|
|
|
|
|
|
115 |
|
116 |
clean_cells <- colnames(Adult.Ex)[!(
|
117 |
(Adult.Ex$Ex_subtype %in% c("CT","NP") & Adult.Ex$BC_num>0) |
|
|
|
348 |
df <- df[order(df$Zscore),]
|
349 |
ggplot(df,aes(x=X,y=Y)) +
|
350 |
geom_point(aes(colour=Zscore), size=1) +
|
351 |
+
scale_color_gradientn(colours = viridis(n = 256, option = "D", direction = 1),
|
352 |
+
limits = c(0,3)) +
|
353 |
ggdark::dark_theme_void() +
|
354 |
labs(title = input$sp_gene) +
|
355 |
theme(plot.title = element_text(size = 20, hjust = 0.5),
|
|
|
369 |
df <- df[order(df$Zscore),]
|
370 |
ggplot(df, aes(x=X,y=Y)) +
|
371 |
geom_point(aes(colour=Zscore), size=1) +
|
372 |
+
scale_color_gradientn(colours = viridis(n = 256, option = "E", direction = 1)) +
|
|
|
373 |
ggdark::dark_theme_void() +
|
374 |
labs(title = input$sp_target) +
|
375 |
theme(plot.title = element_text(size = 20, hjust = 0.5),
|