-
Notifications
You must be signed in to change notification settings - Fork 2
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
Building model for cell2location #2
Comments
Forgot to mention that I did the analysis on a group of Visium samples together and do not know if that can be used as input for NCEM or can only take one sample at a time. |
I am using the scripts to train the model in SLURM ( I prepared the data as suggested in the tutorial but there is no metadata or additional info regarding each individual sample. Now all estimated cells have been placed in one unique matrix. Will that influence the outcome? How would you recommend I should proceed in this case? Now is running like this:
Hope I am being clear about my question. Thanks in advance! |
Hi @ccruizm, thanks for raising an issue and your interest in using ncem. I will push a tutorial on how to use ncem for deconvoluted visium beginning of next week so showcase the usage. Maybe additional question: are you planning to identify potential type couplings in your data or do you want to inspect convergence of the model? Running the model itself is only required once to identify if ncem can infer communication, afterwards you can just simply use the trained model so obtain insights from your data. |
Thanks for your reply! I want to use it mainly to check type couplings. I am particularly seeing specific cell associations based on the estimated cell-type abundance and would like to check how the transcriptome changes in the different cellular compartments we have identified. I am not sure which of the models will be more suitable for my data. I am now running the linear one but do not know whether the others could fit better. Particularly for Visium data. Looking forward to the upcoming tutorial! |
Hi @AnnaChristina ! Many thanks and with best wishes, |
Hello @AnnaChristina! Do you have any news where we can find the tutorial on how to use ncem for deconvoluted visium data, please? Thanks! |
Hi @ccruizm, sorry for the delay, I added a tutorial for using ncem for deconvoluted Visium data here: https://github.com/theislab/ncem_tutorials/blob/main/tutorials/type_coupling_visium.ipynb We added this to a new release and it is now available in Please let me know if you have additional questions. |
No problem! thank you very much for this. |
Dear @AnnaChristina , First of all, thank you so much for a great tool! I first prepared the data as described in this tutorial (https://github.com/theislab/ncem_benchmarks/blob/main/notebooks/data_preparation/deconvolution/cell2location_human_lymphnode.ipynb), then used this tutorial to find type coupling (https://github.com/theislab/ncem_tutorials/blob/main/tutorials/type_coupling_visium.ipynb). In the latter, the type coupling step is actually run before training a model. I am not sure I understand how these functions work. Am I supposed to have trained the model somewhere on my data in between these two tutorials? Or can I just obtain the type coupling from the InterpreterDeconvolution, which I understand fits a standard OLS? Sorry if this has been explained elsewhere, but I couldn't find the information. Thank you! |
Good day!
I am trying out this nice tool to analyze data generated using Visium. I have employed cell2location for cell-type deconvolution and have successfully prepared the data according to the tutorials you shared in this repository. However, I want to continue with the receiver/sender analysis but did not find a tutorial explaining how to create the model in detail.
I assume it has to follow this tutorial (https://github.com/theislab/ncem_tutorials/blob/main/tutorials/model_tutorial_interactions.ipynb), but I am not sure whether the parameters suggested there are applicable for Visium as well and not sure how to input the h5ad file (from the data preparation section) for the model training. Could you please share how to generate the model?
Thanks in advance!
The text was updated successfully, but these errors were encountered: