Teichlab / Genes2Genes

Aligning gene expression trajectories of single-cell reference and query systems
https://teichlab.github.io/Genes2Genes/
MIT License
44 stars 5 forks source link

module 'genes2genes.VisualUtils' has no attribute 'VisualUtils' #7

Closed Jylab-Genetics closed 4 days ago

Jylab-Genetics commented 5 days ago

In [11]: joint_cmap = {'ATII': '#ff7f0e', 'ATI': '#2ca02c','Aberrant_Basaloid': '#1f77b4'} ...: vs = VisualUtils.VisualUtils.get_celltype_composition_across_time(adata_healthy, adata_disease, n_points=13, ...: ANNOTATION_COLNAME='Manuscript_Identity', optimal_binning=False, ref_cmap=joint_cmap, query_cmap=joint_cmap)

AttributeError Traceback (most recent call last) Cell In[11], line 2 1 joint_cmap = {'ATII': '#ff7f0e', 'ATI': '#2ca02c','Aberrant_Basaloid': '#1f77b4'} ----> 2 vs = VisualUtils.VisualUtils.get_celltype_composition_across_time(adata_healthy, adata_disease, n_points=13, 3 ANNOTATION_COLNAME='Manuscript_Identity', optimal_binning=False, ref_cmap=joint_cmap, query_cmap=joint_cmap)

AttributeError: module 'genes2genes.VisualUtils' has no attribute 'VisualUtils'

dinithins commented 5 days ago

Hello @Gh-Genetics, I believe you have installed the latest Genes2Genes v0.2.0. The above function call is only available in our previous Genes2Genes v0.1.0. All notebooks in https://github.com/Teichlab/G2G_notebooks use v0.1.0 as noted; you will have to use https://github.com/Teichlab/Genes2Genes/releases/tag/v0.1.0 to run those notebooks.

Please refer to the function calls in notebooks/Tutorial.ipynb to use version 0.2.0.

Jylab-Genetics commented 5 days ago

Thank you for your prompt reply. The issue has been resolved at present. Thank you to the developers of Genes2Genes (G2G). Your innovation and effort have opened up a new level of comparative analysis of single-cell gene expression trajectories. Your contribution has not only simplified the complex process of gene analysis but also brought new vitality to the field of single-cell transcriptomics. We sincerely appreciate your outstanding work, which is helping more researchers explore the intricate patterns of gene expression!

dinithins commented 4 days ago

Thank you so much for your kind words! We are excited to hear that and look forward to seeing Genes2Genes make an impact through diverse applications in the field.