Error in Seurat ScaleData() function
1
0
Entering edit mode
23 months ago

Hey, so I have been having a recurring error for the past week to no avail. Once I perform "FindVariableFeatures()" on a SeuratObject, I get the error:

seurat_object$var.genes<- FindVariableFeautres(seurat_object, selection.method = "vst", nfeatures = 4000)

"Error in ``[<-.data.frame(*tmp*``, , i, value = new("Seurat", assays = list( : replacement has 32285 rows, data has 38328"

I have also looked on the Seurat forum on GitHub, and again not much help. Looking for any input which is much needed. Thank you!

seurat scrna-seq snrna-seq • 1.9k views
ADD COMMENT
0
Entering edit mode

Please use a code block to paste your code and error. Using inline code doesn't work when the error has back-ticks in it.

Copy and paste the command and error message again, include a blank line at the end. Select all of it then click the 101010 button.

code_formatting

ADD REPLY
2
Entering edit mode
23 months ago
ATpoint 86k

Assign the output directly to the Seurat object, not to $…, the method puts the output where it needs to be automatically. Follow the guided tutorials on the Seurat website if you’re new to it.

ADD COMMENT
0
Entering edit mode

Thank you so much for your helpful input ATpoint! Simple yet effective and worked!

ADD REPLY
0
Entering edit mode

Please accept the answer (green check mark) to provide closure to this thread.

ADD REPLY

Login before adding your answer.

Traffic: 1162 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6