Open Linlinwangwang opened 1 year ago
# list cell types and genes for plotting ctypes = ['T_CD4+_TfH_GC', 'T_CD4+_naive', 'B_GC_LZ'] genes = ['CD3D', 'CR2'] with mpl.rc_context({'axes.facecolor': 'black'}): # select one slide slide = select_slide(adata_vis, 'V1_Human_Lymph_Node') from tutorial_utils import plot_genes_per_cell_type plot_genes_per_cell_type(slide, genes, ctypes);
ModuleNotFoundError Cell In[40], line 9 5 with mpl.rc_context({'axes.facecolor': 'black'}): 6 # select one slide 7 slide = select_slide(adata_vis, 'V1_Human_Lymph_Node') ----> 9 from tutorial_utils import plot_genes_per_cell_type 10 plot_genes_per_cell_type(slide, genes, ctypes); ModuleNotFoundError: No module named 'tutorial_utils'
You can copy this function from cell2location/docs/notebooks. It often need to be modified for your specific data so not included into the package