Converting genotypes to allele frequencies
1
0
Entering edit mode
5.8 years ago
110300553 • 0

I have a table of genotpyes (AA, GG, CT etc.) per sample and their corresponding rsids. I don't have any other corresponding files, just this .txt table, is there a way for me to batch convert these to allele counts in R(0,1,2)? I've found a lot of people doing this individually by SNP but I have 100K + rsids and want to examine them all.

SNP genome R • 1.1k views
ADD COMMENT
0
Entering edit mode

Can you provide example file, something like: myData[ 1:10, 1:10 ] ?

ADD REPLY
1
Entering edit mode
5.8 years ago
JC 13k

You probably need to create a script that does the conversion, you can use the NCBI API (https://api.ncbi.nlm.nih.gov/variation/v0/#/) to query each rs and define which allele is the reference (0) and any other allel (1,2, ...)

ADD COMMENT

Login before adding your answer.

Traffic: 1291 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6