tidyseurat icon indicating copy to clipboard operation
tidyseurat copied to clipboard

tidyseurat::aggregate_cells doesn't pull all meta.data columns of Seurat object?

Open denvercal1234GitHub opened this issue 5 months ago • 4 comments

Hi there,

Thanks for a great tool.

tidyseurat::aggregate_cells only pull some but not all metadata columns of the original Seurat object.

Would you mind taking a look?

Thank you again.

seuratObj %>% tidyseurat::aggregate_cells(.sample = c(Leiden39PCRes1p2_clusterID_2024Jan09), assays = "SCT", slot = "data", aggregation_function=Matrix::rowSums) |> filter(.feature %in% gene_vector) -> seuratObj_Data

> ncol(seuratObj_Data)
[1] 25
> ncol([email protected])
[1] 92

denvercal1234GitHub avatar Jan 09 '24 16:01 denvercal1234GitHub