Question: How to delete Assay from Seurat object?
0
gravatar for cook.675
15 months ago by
cook.67560
cook.67560 wrote:

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")

?

rna-seq seurat • 2.3k views
ADD COMMENTlink modified 15 months ago by jared.andrews078.4k • written 15 months ago by cook.67560
0
gravatar for _r_am
15 months ago by
_r_am32k
Baylor College of Medicine, Houston, TX
_r_am32k wrote:

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

s4obj@myslot <- NULL
s3obj$myNamedItem <- NULL
ADD COMMENTlink modified 15 months ago • written 15 months ago by _r_am32k

I got it!

Thanks

ADD REPLYlink modified 15 months ago • written 15 months ago by cook.67560

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 REPLYlink modified 15 months ago • written 15 months ago by _r_am32k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2014 users visited in the last hour
_