Hi guys, is there a way to remove from Seurat3 object (all slots) a set of cells listed in a vector? 

I tried: 

>      my_object_without_cells = subset(object = my_dataset, cells = cells_to_be_removed)

but the cells are still there. I checked the n of cells and the n of genes and it is unchanged. 


Thank you in advance

    ## Example data:
    pbmc_raw <- read.table(
      file = system.file('extdata', 'pbmc_raw.txt', package = 'Seurat'),
      as.is = TRUE
    )
    pbmc_small <- CreateSeuratObject(counts = pbmc_raw)
    
    length(colnames(pbmc_small)) ## 80
    
    ## list the cells (=colnames) that you want to remove:
    toRemove <- c("ATGCCAGAACGACT", "CATGGCCTGTGCAT")
    
    ## filter them out:
    pbmc_filtered <- pbmc_small[,!colnames(pbmc_small) %in% toRemove]
    
    length(colnames(pbmc_filtered)) ## 78

