This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Sample based on allele frequency matching between two files

I have two files, each of which has the SNP_ID and its allele frequency.

File 1 has a set of 200 SNPs (subset from my genome) and their respective allele frequencies, whereas File 2 is every SNP in the genome along with its allele frequency.

I need to sample 1000 SNPs from file 2, using the distribution of allele frequencies in file 1. In essence I need random SNPs from the larger file (file 2) that are somewhat matched in allele frequency distribution to file 1.

Any help is appreciated!

linkage

0 answers

No answers yet.

Log in to answer this question.