Closed jun-miao113 closed 1 month ago
Hi @cpy113,
This would only work if the metabolites are also present in your .X matrix. Since I assume you are running this on single-cell transcriptomic data, it's likely not the case.
So, I assume you might need to estimate the metabolite abundances prior to running liana, I will try to write a simple tutorial on how this could be done by the end of next week.
I will keep you posted.
Daniel
Hi @cpy113,
This would only work if the metabolites are also present in your .X matrix. Since I assume you are running this on single-cell transcriptomic data, it's likely not the case.
So, I assume you might need to estimate the metabolite abundances prior to running liana, I will try to write a simple tutorial on how this could be done by the end of next week.
I will keep you posted.
Daniel
Thank you so much! Looking forward to your reply.
Hi @cpy113, I just merged an update.
The docs how to do it w LIANA+ are here: https://liana-py.readthedocs.io/en/latest/notebooks/sc_multi.html#Metabolite-mediated-CCC-from-Transcriptomics-Data
this would give you metabolite-receptor results, from there on you can follow up with the other LIANA+ tutorials.
Hope this helps. I will close the issue but please feel free to open new ones if you need help.
PS. I will wait a couple of days before I do a release on pip. So, please install liana from github:
pip install git+https://github.com/saezlab/liana-py --upgrade
Hi @cpy113, I just merged an update.
The docs how to do it w LIANA+ are here: https://liana-py.readthedocs.io/en/latest/notebooks/sc_multi.html#Metabolite-mediated-CCC-from-Transcriptomics-Data
this would give you metabolite-receptor results, from there on you can follow up with the other LIANA+ tutorials.
Hope this helps. I will close the issue but please feel free to open new ones if you need help.
Thanks you for the tutorial, it will be a great help for me!
Hello! When I wanted to use liana+ to perform metabolite-protein interactions analysis of my transcriptome data, I encountered some problems. Here is my code:
testis_metalinks_db=li.resource.get_metalinks(tissue_location='Testis', biospecimen_location='Blood')
testis_metalinks_db
testis_metalinks_db.columns = ['ligand', 'hmdb', 'uniprot', 'receptor']
cellphonedb(adata, groupby='Celltype', resource = testis_metalinks_db, interactions = list(zip(testis_metalinks_db['ligand'],testis_metalinks_db['receptor'])), expr_prop=0.1, verbose=True, key_added='cpdb_res')
Generating ligand-receptor stats for 1964 samples and 0 features 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1000/1000 [00:02<00:00, 398.60it/s]Why didn't we finally get any information about the metabolite-protein interaction? Is my function being used incorrectly?
I would be very grateful if you could give me an answer!! Best Wishes!