TigerZheng commited on
Commit
7045685
·
verified ·
1 Parent(s): cc58f73

Update PFCdevApp.qmd

Browse files
Files changed (1) hide show
  1. PFCdevApp.qmd +10 -8
PFCdevApp.qmd CHANGED
@@ -55,11 +55,7 @@ Spatial data
55
  </p>
56
 
57
  <p style="font-size: 20px; text-align: justify;">
58
- We collected the whole brain stereo-seq datasets of P1 and Adult mice from [(Han et al., Neuron, 2025)](https://doi.org/10.1016/j.neuron.2025.02.015
59
-
60
-
61
-
62
- , extracted and analyzed the PFC brain region. Users can browse the following content through the spatial page:
63
  </p>
64
 
65
  - Spatial Clustering: Select different cell subtypes to view their spatial distribution
@@ -228,9 +224,15 @@ output$gene_plot <- renderPlot({
228
 
229
 
230
  output$vln_plot <- renderPlot({
231
- VlnPlot(seu(), features = input$gene, group.by = input$celltype, pt.size = 0) +
232
- NoLegend() +
233
- labs(x="")
 
 
 
 
 
 
234
  })
235
  ```
236
 
 
55
  </p>
56
 
57
  <p style="font-size: 20px; text-align: justify;">
58
+ We collected the whole brain stereo-seq datasets of P1 and Adult mice from [(Han et al., Neuron, 2025)](https://doi.org/10.1016/j.neuron.2025.02.015, extracted and analyzed the PFC brain region. Users can browse the following content through the spatial page:
 
 
 
 
59
  </p>
60
 
61
  - Spatial Clustering: Select different cell subtypes to view their spatial distribution
 
224
 
225
 
226
  output$vln_plot <- renderPlot({
227
+ data <- data.frame(
228
+ Gene = as.numeric(seu()[["RNA"]]@data[input$gene, ]),
229
+ Cluster = seu()@meta.data[,input$celltype]
230
+ )
231
+ ggplot(data, aes(x=Cluster, y=Gene, fill=Cluster)) +
232
+ geom_violin(scale = "width", adjust=1, trim=T) +
233
+ scale_fill_manual(values = col_cluster[[input$celltype]]) +
234
+ theme_classic(base_size = 15) +
235
+ theme(legend.position = "none")
236
  })
237
  ```
238