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
217 stars 53 forks source link

In the module Network Plot, Can we label the node as gene_name instead of gene_id ? #96

Closed davidbinod closed 7 months ago

davidbinod commented 8 months ago

Hello, I was learning WGCNA with the PyWGCNA program. It was easy to run. Thank you for developing this program. I have just an issue with a module Network Plot. In the network fig, It labeled gene_id in the node, but I want to label it as gene_name. On clicking on the node, it shows the gene_name but I want to label the node with gene_name, not with gene_id. Would you please instruct me on how to do that? I appreciate your help. Thanks,

nargesr commented 7 months ago

Hi,

Thank you for your kind comments. If you initiate the PyWGCNA object with gene expression data in a way that indexes are gene names rather than gene IDs then it should show each node with the corresponding gene name (index).

Best, Narges

davidbinod commented 7 months ago

Thank you for the reply. I will try and let you know. binod

On Mon, Apr 8, 2024 at 5:14 PM Narges Rezaie @.***> wrote:

Hi,

Thank you for your kind comments. If you initiate the PyWGCNA object with gene expression data in a way that indexes are gene names rather than gene IDs then it should show each node with the corresponding gene name (index).

Best, Narges

— Reply to this email directly, view it on GitHub https://github.com/mortazavilab/PyWGCNA/issues/96#issuecomment-2043653204, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXPKO7PTWFR7TDKCOCLR6YTY4MCEHAVCNFSM6AAAAABF2UO7LOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBTGY2TGMRQGQ . You are receiving this because you authored the thread.Message ID: @.***>