Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the number of modules #132

Open
free-sky9527 opened this issue Dec 6, 2024 · 0 comments
Open

Change the number of modules #132

free-sky9527 opened this issue Dec 6, 2024 · 0 comments

Comments

@free-sky9527
Copy link

Hi!
When using the findModules() function, I wanted to change the number of modules and noticed that findModules() calls cutreeHybrid(). In cutreeHybrid(), there is a minModuleSize parameter. So, I executed:

pyWGCNA_object.findModules(kwargs_function={'cutreeHybrid': {'deepSplit': 2, 'pamRespectsDendro': False, 'minModuleSize': 50}})

However, I encountered an error: WGCNA.cutreeHybrid() got an unexpected keyword argument 'minModuleSize'.

I then checked the script wgcna.py at line 331 (see the image below) and found that minClusterSize is a fixed value, meaning it cannot be directly changed within the findModules() function.

However, I discovered that minModuleSize can be modified in the PyWGCNA.WGCNA() function.

I would like to ask why it is set up this way—is there a specific reason? If I want to change the number of modules, can I adjust the deepSplit parameter in findModules() and the minModuleSize in PyWGCNA.WGCNA()? Or are there other parameters I can tweak?

Thanks.
b3b8e161a853d2f4d7090a03ba6ea46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant