Question: Allele Frequency correlation in R
gravatar for Cece
3.7 years ago by
United States/Houston
Cece0 wrote:



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 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.




myposts • 1.4k views
ADD COMMENTlink written 3.7 years ago by Cece0

You tried this?

data <- as.numeric(as.character(x))
ADD REPLYlink modified 13 months ago by RamRS24k • written 3.7 years ago by Floris Brenk890

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

ADD REPLYlink written 3.7 years ago by Ben2.0k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 763 users visited in the last hour