Question: Error in FindTransferAnchors Seurat
gravatar for massonix
18 months ago by
massonix20 wrote:

I have a scRNA-seq that I want to annotate using the Linnarson's brain cell atlas. To that end, I am using the Label Transfer pipeline from Seurat, which you can find here: . This is my code:

# Connect to loom object
brain_loom <- connect(filename = "data/TM_brain_ref.loom")

# Convert to Seurat
brain_seu <- as.Seurat(brain_loom)

# Pre-processing
brain_seu <- NormalizeData(
  object = brain_seu, 
  normalization.method = "LogNormalize",
  scale.factor = 10000, 
  display.progress = TRUE
brain_seu <- FindVariableFeatures(brain_seu, selection.method = "vst", nfeatures = 2000)
brain_seu <- ScaleData(brain_seu)
brain_seu <- RunPCA(brain_seu, features = VariableFeatures(object = brain_seu))
saveRDS(brain_seu, "results/R_objects/brain_reference_Seurat.rds")

# Project data
anchors <- FindTransferAnchors(reference = brain_seu, query = epid_seu, dims = 1:30)

However, when executing the FindTransferAnchors() function, I get the following error:

Performing PCA on the provided reference using 2000 features as input.
Projecting PCA
Error in FastSparseRowScaleWithKnownStats(mat =, mu = feature.mean,  : 
  Not an S4 object.

Do you have any idea on what is the underlying problem?

Thanks a lot!

seurat scrna-seq • 893 views
ADD COMMENTlink written 18 months ago by massonix20
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2087 users visited in the last hour