You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering several issues while using it, especially after the update to v5.
To debug, I attempted to run the tutorial from the vignette (https://satijalab.org/seurat/articles/pbmc3k_tutorial), but after running RunPCA, the results do not match those shown in the vignette.
for instance, the heatmap looks like this DimHeatmap(pbmc, dims = 1, cells = 500, balanced = TRUE)
while it should look like this
I remember being able to reproduce the tutorial in the past, so I'm not sure what has changed. This issue also arises when I analyze other datasets, where PC1 appears to explain nearly all the variance, with elbowplot looking like this
Could you help me understand what might be going wrong?
Reproducing Code Example
CODE:
`setwd("")
library(dplyr)
library(Seurat)
library(patchwork)
# Load the PBMC datasetpbmc.data<- Read10X(data.dir="./filtered_gene_bc_matrices/hg19/")
# Initialize the Seurat object with the raw (non-normalized data).pbmc<- CreateSeuratObject(counts=pbmc.data, project="pbmc3k", min.cells=3, min.features=200)
gc()
dim(pbmc)
pbmc.data[c("CD3D", "TCL1A", "MS4A1"), 1:30]
# The [[ operator can add columns to object metadata. This is a great place to stash QC statspbmc[["percent.mt"]] <- PercentageFeatureSet(pbmc, pattern="^MT-")
# Visualize QC metrics as a violin plot
VlnPlot(pbmc, features= c("nFeature_RNA", "nCount_RNA", "percent.mt"), ncol=3)
pbmc<- subset(pbmc, subset=nFeature_RNA>200&nFeature_RNA<2500&percent.mt<5)
pbmc<- NormalizeData(pbmc)
pbmc<- FindVariableFeatures(pbmc, selection.method="vst", nfeatures=2000)
# Identify the 10 most highly variable genestop10<- head(VariableFeatures(pbmc), 10)
# plot variable features with and without labelsplot1<- VariableFeaturePlot(pbmc)
plot2<- LabelPoints(plot=plot1, points=top10, repel=F)
plot1+plot2all.genes<- rownames(pbmc)
pbmc<- ScaleData(pbmc, features=all.genes)
pbmc<- RunPCA(pbmc, features= VariableFeatures(object=pbmc))
# Examine and visualize PCA results a few different ways
print(pbmc[["pca"]], dims=1:5, nfeatures=5)
VizDimLoadings(pbmc, dims=1:2, reduction="pca")
DimHeatmap(pbmc, dims=1, cells=500, balanced=TRUE)
`
Unable to reproduce results from seurat vignette
Hello,
Thank you for your great package!
I'm encountering several issues while using it, especially after the update to v5.
To debug, I attempted to run the tutorial from the vignette (https://satijalab.org/seurat/articles/pbmc3k_tutorial), but after running RunPCA, the results do not match those shown in the vignette.
for instance, the heatmap looks like this
DimHeatmap(pbmc, dims = 1, cells = 500, balanced = TRUE)
while it should look like this
I remember being able to reproduce the tutorial in the past, so I'm not sure what has changed. This issue also arises when I analyze other datasets, where PC1 appears to explain nearly all the variance, with elbowplot looking like this
Could you help me understand what might be going wrong?
Reproducing Code Example
Error Message
Additional Comments
No response
Session Info
The text was updated successfully, but these errors were encountered: