clustergrammer2-notebooks icon indicating copy to clipboard operation
clustergrammer2-notebooks copied to clipboard

PBMC scRNA CIBERSORT gene signatures indexing error

Open oHunewald opened this issue 3 years ago • 1 comments

Following error when I try to run the PBMC-scRNA notebook:

/clustergrammer_fun/categories.py in dict_cat(net, define_cat_colors)
    131             for inst_full_name in inst_dict:
    132 
--> 133                 inst_name = inst_full_name.split(': ')[1]
    134                 inst_color = inst_dict[inst_full_name]
    135 

IndexError: list index out of range

I solved this issue by changing the dict iteration in categories.py

to:

for k, v in inst_dict.items():
      inst_name = k
      inst_color = v
      global_cat_colors[inst_name] = inst_color

oHunewald avatar Oct 28 '20 13:10 oHunewald

Thanks, I'll have a look and possibly bring into https://github.com/ismms-himc/clustergrammer2

cornhundred avatar Jul 20 '21 17:07 cornhundred