-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Tangram mapped visium for ncem #122
Comments
Hi @jkbenotmane, yes we support data that was mapped with Tangram. To provide you a detailed answer to your questions: are you aiming to apply NCEM to deconvoluted Visium data or imputed whole transcriptome single cell resolved data? |
Hi @AnnaChristina , |
We currently provide a tutorial on how to use NCEM for deconvoluted 10x Visium data here: https://github.com/theislab/ncem_tutorials/blob/main/tutorials/type_coupling_visium.ipynb This tutorial uses cell2location as deconvolution method on a public dataset as described here: https://github.com/theislab/ncem_benchmarks/blob/main/notebooks/data_preparation/deconvolution/cell2location_human_lymphnode.ipynb You can replace the deconvolution method with a method of your choice. Crucial step is that is predicts spot abundances or proportions and cell-type specific expression values. Based on what I know from the Tangram API, you could use |
Thank you very much !
Tangram provides following tg.project_cell_annotation() & tg.project_genes() following matrix: Index|CD4 TEM | Mono | TAM-MG | TAM-BDM | MES-like | CD8 Naive | CD14 Mono | OPC | AC-like | OPC-like | ... | Plasma B | Astrocyte | CD8 TCM | B cell | Neuron | Treg | CD4 CTL | NK_CD56bright | HSPC | ASDC Am I correct with assuming nodetypes being columns/celltypes and proportions being the values for each cell ? |
Those are objects of a "pseudo-single-cell" object which is created in the notebook linked above. You can just link proportions to the abundances learned by Tangram. The cell specific expression must have the followin dimensions: |
Okay thank you very much that clarified a lot! Last question: spatial poximity of the inferred single cells is then calculated from .obsm['spatial'], is there a convention to be kept for the naming of the "new" single cell spatial Barcodes? |
I would still call it Additionally, we are currently working on an update of th ncem API that will make it easier to run these analysis steps for deconvoluted Visium. I can link you to the release as soon as we released the updated tutorials. |
Thank you @AnnaChristina ! AAATGGCATGTCTTGT-1 -> AAATGGCATGTCTTGT-1_4 I just wondered if this will interfere with ncem calling spatial coordinates. But thank you very much for your help, and I sure will check on future releases and mods of ncem ! |
ncem does not require barcode information. As far as I know, Tangram is adjusting the barcode to reflect the inferred deconvoluted cells. Each inferred cell in the barcode, i.e. |
Alright, understood thank you very much! |
Question
Hello,
Thank you for creating ncem. I wanted to ask if the Custom data loader also accepts tangram mapped adata.
In specific: what should obsm node_types, proportions consist of ?
The text was updated successfully, but these errors were encountered: