Skip to content

Commit

Permalink
Fix seurat_sub
Browse files Browse the repository at this point in the history
  • Loading branch information
epartan authored Nov 18, 2024
1 parent 9d5c028 commit 3e08d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lessons/08_differential_abundance.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ set.seed(1234)

# Subset to condition of interest
# seurat <- readRDS("data/BAT_GSE160585_final.rds")
seurat_sub <- subset(seurat_sub, subset = (condition %in% c("TN", "cold7")))
seurat_sub <- subset(seurat, subset = (condition %in% c("TN", "cold7")))
```

MiloR generates the neighborhoods based upon the UMAP coordinates supplied, so we will re-run the necessary steps from our Seurat pipeline on this new subset. Since we have fewer cells than the larger datset, will use 30 PCA dimensions calculated from 2,000 highly variable genes (HVG). Following a typical Seurat workflow, we then calculate UMAP coordinates, neighborhoods, and clusters for later comparisons. We are also supplying specific names for the graphs and cluster names to avoid overwriting the previous metadata.
Expand Down

0 comments on commit 3e08d5c

Please sign in to comment.