[R] Character SNP data to binary MAF data

Hadassa Brunschwig
Wed, 28 Jan 2009 13:36:03 -0000

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