Skip to content

Error when runing the pipeline #16

@cuilina2019

Description

@cuilina2019

Hi, thanks for this interesting new approach for studying single-cell trajectories. I was following the tutorial notebook at https://github.com/Teichlab/Genes2Genes/blob/main/notebooks/Tutorial.ipynb and ran into errors during the Analysing gene-level alignments step:

df = aligner.get_stat_df() # ordered genes according to alignment similarity statistics

errors with:

Mean alignment similarity percentage (matched %): 
100.0 %
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/share/home/envs/g2g_env/lib/python3.8/site-packages/genes2genes/Main.py", line 493, in get_stat_df
    VisualUtils.plot_alignmentSim_vs_optCost(df)
  File "/share/home/envs/g2g_env/lib/python3.8/site-packages/genes2genes/VisualUtils.py", line 194, in plot_alignmentSim_vs_optCost
    sb.scatterplot(x=x['opt_alignment_cost'],y=x['alignment_similarity_percentage']*100,s=120, legend=False, hue =x['alignment_similarity_percentage'] ,
  File "/share/home/envs/g2g_env/lib/python3.8/site-packages/seaborn/relational.py", line 621, in scatterplot
    p.map_hue(palette=palette, order=hue_order, norm=hue_norm)
  File "/share/home/envs/g2g_env/lib/python3.8/site-packages/seaborn/_base.py", line 838, in map_hue
    mapping = HueMapping(self, palette, order, norm, saturation)
  File "/share/home/envs/g2g_env/lib/python3.8/site-packages/seaborn/_base.py", line 150, in __init__
    levels, lookup_table = self.categorical_mapping(
  File "/share/home/envs/g2g_env/lib/python3.8/site-packages/seaborn/_base.py", line 248, in categorical_mapping
    colors = color_palette(palette, n_colors)
  File "/share/home/envs/g2g_env/lib/python3.8/site-packages/seaborn/palettes.py", line 245, in color_palette
    pal_cycle = cycle(palette)
TypeError: 'LinearSegmentedColormap' object is not iterable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions