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

Question about module_trait_cor #30

Open
PFRoux opened this issue Dec 16, 2024 · 1 comment
Open

Question about module_trait_cor #30

PFRoux opened this issue Dec 16, 2024 · 1 comment

Comments

@PFRoux
Copy link

PFRoux commented Dec 16, 2024

Dear BioNERO developers,

Thanks a lot for this nice implementation of WGCNA.

I wanted to know how module_trait_cor is working when the variable of interest are categorical.
In other words, how to correlate module eigengenes to categorical traits ? What is the meaning of the correlation values ?
Wouldn't it be more meaningful to run an ANOVA kind of test to compare expression of eigengenes across categories for those categorical traits ?

Thanks a lot and have a great day.

Pef

@almeidasilvaf
Copy link
Owner

Hi, @PFRoux

For categorical variables, BioNERO calculates point-biserial correlation coefficients. The design matrix in this case includes so-called 'dummy variables' (without an intercept), as you'd do for levels of a factor (see source code here).

You could also run an ANOVA to compare eigengenes across levels, but you'd have to check if assumptions are met first.

All the best,
Fabricio

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

2 participants