Heres the last 3 columns of metadata from my seurat object (pbs.hashtag):
hash.ID percent.mt stim AAACCCAAGGAGAGGC htag2 4.786380 VEH AAACCCAAGTCTCTGA htag3 6.642512 VEH AAACCCAAGTTTCAGC Doublet 2.559588 VEH AAACCCACACAGTCAT Negative 4.982733 VEH AAACCCACACGCGCAT htag2 3.220281 VEH AAACCCACACGGATCC htag2 3.391841 VEH
I want to remove all rows from the object that have Doublet as the hash ID. Here's what I tried:
pbs.hashtag <- subset(pbs.hashtag, subset = meta.data@hash.ID != "Doublet")
it didn't work obvioulsy it says:
Error in FetchData(object = object, vars = expr.char[vars.use], cells = cells, : None of the requested variables were found:
Any ideas? I also tried meta.data$hash.ID in the subset line. Im pretty new to R and Seurat but I used to program some C 20 years ago so im getting back in the pool.