[R] Character SNP data to binary MAF data

Hadassa Brunschwig hadassa.brunschwig at mail.huji.ac.il
Wed Jan 28 14:36:03 CET 2009


Hi

I am sure there is a function out there already but I couldn't find it.
I have SNP data, that is, a matrix which contains in each row two
characters (they are different in each row) and I would like to
convert this matrix to a binary one according to the minor allele
frequency. For non-geneticists: I want to have a binary matrix
for which in each row the 0 stands for the less frequent character
and 1 for the more frequent character.

Thanks for any suggestions.
Hadassa

-- 
Hadassa Brunschwig
PhD Student
Department of Statistics
The Hebrew University of Jerusalem
http://www.stat.huji.ac.il




More information about the R-help mailing list