BayraktarLab / cell2location

Comprehensive mapping of tissue cell architecture via integrated single cell and spatial transcriptomics (cell2location model)
https://cell2location.readthedocs.io/en/latest/
Apache License 2.0
321 stars 58 forks source link

ModuleNotFoundError #280

Open Linlinwangwang opened 1 year ago

Linlinwangwang commented 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'
vitkl commented 1 year ago

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