Hi @CramerRaoEagle1 ,
If we assume diploid and use IUPAC Nucleotides, then the attached script should convert A, C, G, and T's into numeric genotypes (0 major homozygous, 1 heterozygous, and 2 minor homozygous). This also assumes that each SNP has a single IUPAC nucleotide letter in its column.
You would still need to user the Marker Statistics platform to verify the proper numeric coding based on frequency for each column and likely need to recode some of the SNPs. I have added that step to the script as well.
Let us know if this script will work for you
Chris Kirchberg, M.S.2
Data Scientist, Life Sciences - Global Technical Enablement
JMP Statistical Discovery, LLC. - Denver, CO
Tel: +1-919-531-9927 ▪ Mobile: +1-303-378-7419 ▪ E-mail: chris.kirchberg@jmp.com
www.jmp.com