What does a raw data file look like?

A 23andMe raw data file looks like this:

Each line contains:

  • rsid: Reference SNP ID (a unique identifier)
  • chromosome: Which chromosome (1-22, X, or Y)
  • position: Location on the chromosome
  • genotype: Your two alleles (one from each parent)

There are about 650,000 rows of data.

AncestryDNA uses a slightly different format but contains the same essential information. For AncestryDNA, the genotype is broken into two columns, referred to as allele 1 and allele 2


Both formats will work on Genetic Lifehacks.

These two examples are tab-delimited .txt files, but a comma-delimited .csv file in the same format will also work.