Zhipeng Wang
Zhipeng Wang
Hello @nargesr . I also want to setup this one. But I still meet the error: "'ScalarMappable' object has no attribute 'keys'". And I'm using 2.0.4 the new version. How...
@nargesr , Yes. Actually, I'm using the above code that you shared with KGZaker. ``` pyWGCNA_datset.setMetadataColor('Sex',` {'F': 'Pink', 'M': 'blue'}) norm = mpl.colors.Normalize(vmin=df_sampleids_expr['Age'].min(), vmax=df_sampleids_expr['Age'].max()) my_palette_age = mpl.cm.ScalarMappable(norm=norm, cmap='viridis') pyWGCNA_datset.setMetadataColor("Age",my_palette_age) ```...
Hi @nargesr Could you please run "pyWGCNA_5xFAD.analyseWGCNA()" I see another error: "TypeError: Expecting 'to_replace' to be either a scalar, array-like, dict or None, got invalid type 'ScalarMappable'" as below. Notes:...
Hi @nargesr Here is the code that I used for the error: ``` import os import matplotlib as mpl import PyWGCNA path = r"" file_expression = r"expressionList.csv" file_sampleinfo = r"sampleInfo.csv"...