Entering edit mode
Hi,
I'm trying to work in a tidyverse framework with the cell metadata (colData) of a SingleCellExperiment object. To do that, I have to explicitly convert it to a data frame with (as.data.frame). However, if I try to set colData(sce) <- as.data.frame(colData(sce)), it throws an error. I tried to convert it to a datatable with (as.data.table), but it didn't work either. If you have any insight it would be much appreciate it, especially since dplyr is one of the most useful packages to work with standard data frames.
Thanks,
Ramon
Maybe, you find useful these two packages: