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

Doubt on application #90

Closed
fmalmeida opened this issue Feb 14, 2024 · 1 comment
Closed

Doubt on application #90

fmalmeida opened this issue Feb 14, 2024 · 1 comment

Comments

@fmalmeida
Copy link

Hi,

This is rather an inquiry than an issue. I am currently with a matrix of genes that are absent/present in some samples and would like to investigate possible co-occurrences / correlations as I have data from different years.

The data is binary, 0 or 1, so I ask whether it would be possible to use this package with it, or if it is indeed tailored in a way to work with continuous data (counts) and so working with presence/absence would cause the tool to fail or induce errors.

Cheers,
Felipe.

@nargesr
Copy link
Member

nargesr commented Feb 15, 2024

Hi,

so WGCNA starts finding modules by calculating the correlation between each pair of genes and then finding the soft threshold to scale the calculated matrix to have a scale-free network and define modules based on the dissimilarity matrix.

If your input contains only 0 and 1, it would affect the correlation part and you might end up with a bunch of Nan values based on the ratio of zero and one so not sure how you want to interpret those.

In the end, I think it might still be worth giving it a shot but you might see too many warnings like "Some correlations are NA in block ..." when you call findModules() function, and if that's the case I would suggest looking for another tool that designed to work on boolean matrices.

Hope I can answer some of your questions
Best,
Narges

@nargesr nargesr closed this as completed Feb 15, 2024
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