How to Convert Raw DNA Data Formats

· By Digil Vinoy

How to convert raw DNA data between 23andMe text, VCF, PLINK, BAM, and FASTQ, with worked file examples and the conversions that are not possible.

To convert raw DNA data, start from the file you already have and choose the format the next program expects. A 23andMe-style text file can become a VCF. A VCF can become 23andMe-style text for GEDmatch or Promethease. FASTQ reads can become a BAM, and a BAM can become a VCF. GenoConnect reviews the file first, then converts only the pairs that are actually possible.

Open the raw data converter when you know the source and the target. The examples below use the same pairs the converter accepts.

How to convert raw DNA data

  1. Find the file. Consumer downloads are usually .txt or .txt.zip. A sequencing lab sends .fastq.gz, .bam, or .vcf.gz. An Illumina chip scan is a zip of two .idat files.
  2. Name the source format and the genome build printed in the header, if there is one. Most consumer files are GRCh37.
  3. Choose the target. Third-party genealogy tools want 23andMe-style text. Research and clinical tools want VCF. Alignment viewers want BAM.
  4. Submit it on the converter. We check that this file can make that output, then you pay only if it can.
  5. Download the result within 30 days, or create a kit from it so reports can be generated.

Conversion examples

Filenames below are examples. Yours will differ. Each row is one request.

You haveExample fileConvert toExample outputTypical use
23andMe-style textgenome_Anjali_v5.txtVCFAnjali.vcf.gzResearch or clinical variant tools
VCFvariants.vcf.gz23andMe-style textAnjali_23andMe.txtGEDmatch, Promethease, DNA Painter
AncestryDNA textAncestryDNA.txt23andMe-style textAnjali_23andMe.txtSites that only accept the 23andMe layout
Illumina IDAT zip207123450001_R01C01.zip23andMe text or VCFAnjali.txt or Anjali.vcf.gzTurn a chip scan into genotypes
PLINK bed, bim, and famanjali_plink.zipVCFAnjali.vcf.gzMove a GWAS dataset into variant tools
FASTQAnjali_R1.fastq.gzBAMAnjali.bamAligned reads for IGV or a variant caller
BAMAnjali.hg19.bamVCFAnjali.vcf.gzCall variants from aligned reads
BAMAnjali.hg38.bamFASTQAnjali_R1.fastq.gzExtract reads so they can be aligned again
Worked examples of raw DNA format conversions.

A short 23andMe-style row looks like this. The converter keeps rsid, chromosome, position, and genotype, then writes them in the target layout:

rs429358  19  45411941  CT

The same SNP in a VCF line carries the chromosome, position, reference allele, and called allele instead of a two-letter genotype:

19  45411941  rs429358  T  C  ...  GT  0/1

What cannot be converted

A genotype file does not contain sequencing reads, and reads cannot be rebuilt into a chip scan. These requests are rejected:

  • Anything to IDAT. Intensity files cannot be reconstructed from genotypes or reads.
  • VCF, PLINK, or SNP text to BAM, CRAM, or FASTQ. Those outputs need the original reads.
  • FASTA as a source. A plain sequence listing is not a genotype file.
  • FASTQ or BAM to PLINK in one step. Call a VCF first, then convert that VCF to PLINK.

Change the genome build while you convert

On a VCF or SNP text file, a build change is a coordinate lift. On a BAM or CRAM, it is not: the reads have to be extracted to FASTQ and aligned again. Most downloaded consumer files are still GRCh37. GRCh37 vs GRCh38 explains why the same SNP has different coordinates on each build, including why YFull often prefers GRCh38 BAM.

Impute when you need more SNPs

Imputation is a separate request, not a format change. It starts from an array-level file — 23andMe text, AncestryDNA text, CSV, PLINK, or VCF — and returns a denser VCF or 23andMe-style text. It does not run on FASTQ, BAM, or CRAM. Imputed genotypes are statistical, not new laboratory calls. DNA test accuracy and imputation covers what that density does and does not mean.

What each format contains, before you pick a target, is in raw DNA file formats.

After the file is ready

Download the converted file within 30 days. You can also create a kit from it so the data can enter the reports workflow. Creating a kit copies the file into kit storage, so the kit copy remains after the conversion request expires. Unfinished uploads are removed after 48 hours. Each account can have three active requests.

← Back to Blog · DNA Testing in India