Allele Frequency correlation in R
0
0
Entering edit mode
8.8 years ago
Cece ▴ 30

Hi,

I'm trying to run a correlation of allele frequencies of my two populations. My datasets are from plink so I imported them into R with read.plink. Problem is, R says they're matrices. I was trying to use cor.test but data has to be numeric. I tried to transform them to numeric using as.data.frame(x) but the transformation just hangs and doesn't complete. Can anyone advise how I can get this done? I'm trying to look at the frequencies as a way of assessing any batch effect.

Thanks,
Cece

plink R • 2.6k views
ADD COMMENT
0
Entering edit mode

You tried this?

data <- as.numeric(as.character(x))
ADD REPLY
0
Entering edit mode

R matrices can be numeric, you'd need to post example data and code to get help for this.

ADD REPLY

Login before adding your answer.

Traffic: 1877 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6