tidyseurat
tidyseurat copied to clipboard
tidyseurat::aggregate_cells doesn't pull all meta.data columns of Seurat object?
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