Question: How to work with dplyr verbs in the colData slot of SingleCellExperiment objects?
1
ramonmassoni • 10 wrote:
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
ADD COMMENT
• link
•
modified 23 days ago
by
Martin Morgan ♦♦ 22k
•
written
23 days ago by
ramonmassoni • 10


Maybe, you find useful these two packages: