Hi there! I followed the tutorial for "Identifying cellular compartments / tissue zones using matrix factorisation (NMF)". I successfully ran run_colocation, and all the results files were created. I am just confused about where the resulting data is stored in the adata itself. According to the tutorial, it should be in adata.uns[f"mod_coloc_n_fact{n_fact}"], but I haven't been able to obtain them for any of the factor numbers - every time, I get a key error when I do adata.uns["mod_coloc_n_fact10"].
Please use the template below to post a question to https://discourse.scverse.org/c/ecosytem/cell2location/.
Problem
Hi there! I followed the tutorial for "Identifying cellular compartments / tissue zones using matrix factorisation (NMF)". I successfully ran
run_colocation
, and all the results files were created. I am just confused about where the resulting data is stored in the adata itself. According to the tutorial, it should be inadata.uns[f"mod_coloc_n_fact{n_fact}"]
, but I haven't been able to obtain them for any of the factor numbers - every time, I get a key error when I doadata.uns["mod_coloc_n_fact10"]
.N_cells_per_location
anddetection_alpha
.batch_key
for reference NB regression.