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

Correlation values from scatter plot matrix #14

Open
sambo988 opened this issue Feb 16, 2023 · 1 comment
Open

Correlation values from scatter plot matrix #14

sambo988 opened this issue Feb 16, 2023 · 1 comment

Comments

@sambo988
Copy link

Hi there!

I'm using bigPint for some RNAseq analysis (3 groups, 9-11 samples per group). I generated scatter plot matrices comparing conditions but was wondering if there was anyway to extract just the correlation values for each comparison?

Thank you!

Danielle

@lindsayrutter
Copy link
Owner

Hello Danielle:

Sorry for my (very) slow reply.

If you are looking to simply extract correlation values, you can likely do this with the cor() function in base R. As a MWE using some of the toy data from bigPint:

library(bigPint)
library(dplyr)

data("soybean_cn_sub")
data = soybean_cn_sub %>% select(ID, starts_with("S1"), starts_with("S3"))
cor(data[,2:7])

This should return a matrix of correlation values for the six variables of the data.

Is this what you were looking for?

Lindsay

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

No branches or pull requests

2 participants