cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar

Recode Genotypes

JMP Genomics had a workflow to recode genotypes (matrix - samples in rows, markers in columns), from nucleotide (A,T,C,G) to numeric (major allele = 0, minor allele = 1, hets =2).  Now the genomic analysis is offered in JMP pro, I'm not seeing an easy way to do this.  I see that you can check recoding, but not to create the original recoded file.  Is there a script or add-in that might be available for this?  THANK YOU

I am using JMP PRO 17.0.0

1 REPLY 1

Re: Recode Genotypes

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