Merge seurat list
1
0
Entering edit mode
11 weeks ago
Long • 0

Good morning,

I have a question about how to merge Seurat objects. My Seurat objects are from separately integrated datasets using Harmony. The reason for performing separate Harmony integration is that the data size is too large and cannot be integrated effectively as a single dataset. Now, I want to merge these objects together. However, I have encountered a failure, and my error message is:

testMerge <- merge(othercell, y = tcell, project = "TestMerge")
Error in apply(X = GetAssayData(object = object, assay = assay, slot = "scale.data")[,  : 
  dim(X) must have a positive length
merge • 426 views
ADD COMMENT
1
Entering edit mode
11 weeks ago
bk11 ★ 2.4k

Most probably your data might have been integrated data w/ SCT performed. Can you try setting the SCT assay to NULL and see if merge works?

othercell[['SCT']] <- NULL
tcell[['SCT']] <- NULL
testMerge <- merge(x=othercell, y = tcell, project="TestMerge")
ADD COMMENT
0
Entering edit mode

it worked! thanks!

ADD REPLY
1
Entering edit mode

A small educational note: if an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one answer if they work. This will help future users that might find this post find the right answer. enter image description here

ADD REPLY

Login before adding your answer.

Traffic: 2763 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