How to delete Assay from Seurat object?
1
0
Entering edit mode
18 months ago
cook.675 ▴ 60

If I have a seurat object with two assay classes "ADT" and "RNA" how do I remove one or the other from the object?

I tried

 rm(Object@ADT)   rm(Object@"ADT")     rm(Object$ADT)      rm(Object$"ADT")

?

seurat RNA-Seq • 2.9k views
ADD COMMENT
0
Entering edit mode
18 months ago
Ram 32k

You cannot use rm to remove slots from an S3/S4 object. Set it to NULL instead.

s4obj@myslot <- NULL
s3obj$myNamedItem <- NULL
ADD COMMENT
0
Entering edit mode

I got it!

Thanks

ADD REPLY
0
Entering edit mode

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 all work.

Upvote|Bookmark|Accept

ADD REPLY

Login before adding your answer.

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