CARD icon indicating copy to clipboard operation
CARD copied to clipboard

How to add CARD result to Seurat object

Open GouQiao opened this issue 10 months ago • 2 comments

Hi developer,

Thanks for developing such amazing package for ST analysis. After deconvolution by CARD, how to add the results of CARD object to Seurat data for downstream analysis ? for example, add the info into meta.data of Seurat object.

best,

GouQiao avatar Apr 10 '24 10:04 GouQiao

Hi @GouQiao,

Thank you for the question!

I think you can add the cell type compositions from CARD into Seurat by manually adding it to:

seuratObject[["predictions"]] <- predictions.assay #### this could be the place you put the cell type compositions
DefaultAssay(slide.seq) <- "predictions"

Please see more details in their tutorial: https://satijalab.org/seurat/articles/spatial_vignette

We can work on that later since it takes some time for us to check the details.

Best, Ying

YMalab avatar Apr 12 '24 14:04 YMalab

Thanks for your patient reply. Which data from the CARD object should be extracted to make the matrix of predictions.assay?

GouQiao avatar Apr 15 '24 06:04 GouQiao