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

How to find the Pearson correlation between genes? #1

Open
victortoledo opened this issue Nov 2, 2021 · 1 comment
Open

How to find the Pearson correlation between genes? #1

victortoledo opened this issue Nov 2, 2021 · 1 comment

Comments

@victortoledo
Copy link

Hello fellow researchers,

I am currently using the ALPACA and CONDOR functions in R and they return me the following objects: the DWBM values, row/col names, the membership of all TFs and genes and their scores.
However, I am failing to find a matrix of correlation between the genes, which would be important for me to plot the ALPACA modules. Since you reported in the original ALPACA article that it is possible to know the correlation between each pair of genes, I would like to ask for your help in this matter. How can I extract the Pearson correlation between each pair of genes in the ALPACA modules?

Thank you very much in advance.
Victor

@meghapadi
Copy link
Owner

Victor,

We haven't included a function to provide Pearson correlations between genes. The best way to represent the ALPACA modules is the DWBM values, which you can treat as edge weights between TFs and genes. These weights represent how much stronger the regulatory interaction in your case network is, when compared with the null expectation from your control network. It is more accurate to represent the ALPACA module as a bipartite graph with edges between TFs and genes since that is the type of network you are providing as input. (If you need to compute Pearson correlations between the genes, you can do that directly from your normalized gene expression data using R base functions like cor.)

Best,
Megha

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