If I have a seurat object with two assay classes "ADT" and "RNA" how do I remove one or the other from the object?
rm(Object@ADT) rm(Object@"ADT") rm(Object$ADT) rm(Object$"ADT")
You cannot use rm to remove slots from an S3/S4 object. Set it to NULL instead.
s4obj@myslot <- NULL
s3obj$myNamedItem <- NULL
I got it!
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.
Login before adding your answer.
Use of this site constitutes acceptance of our User Agreement and Privacy