How to delete Assay from Seurat object?
1
1
Entering edit mode
4.5 years ago
cook.675 ▴ 220

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 • 9.5k views
ADD COMMENT
5
Entering edit mode
4.5 years ago
Ram 43k

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
1
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: 1886 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