mortazavilab / PyWGCNA

PyWGCNA is a Python package designed to do Weighted Gene Correlation Network analysis (WGCNA)
https://academic.oup.com/bioinformatics/advance-article/doi/10.1093/bioinformatics/btad415/7218311
MIT License
192 stars 46 forks source link

AttributeError: 'WGCNA' object has no attribute 'expressionList' #78

Closed xiongsircool closed 7 months ago

xiongsircool commented 7 months ago

image my python version is 3.10 i run your Quckstart.ipynb

but i meet a error AttributeError: 'WGCNA' object has no attribute 'expressionList'

xiongsircool commented 7 months ago

type(pyWGCNA_5xFAD)
PyWGCNA.wgcna.WGCNA

View the properties of pyWGCNA_5xFAD

dir(pyWGCNA_5xFAD) #I found that there is an attribute named geneExpr. However, the author also changed the original attribute value to be stored in the DataFrame. Now it has been changed to AnnData after the update.

so should use pyWGCNA_5xFAD.geneExpr.to_df().head(5)