How to Convert Raw DNA Data Formats
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
- 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.
- Name the source format and the genome build printed in the header, if there is one. Most consumer files are GRCh37.
- Choose the target. Third-party genealogy tools want 23andMe-style text. Research and clinical tools want VCF. Alignment viewers want BAM.
- Submit it on the converter. We check that this file can make that output, then you pay only if it can.
- 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 have | Example file | Convert to | Example output | Typical use |
|---|---|---|---|---|
| 23andMe-style text | genome_Anjali_v5.txt | VCF | Anjali.vcf.gz | Research or clinical variant tools |
| VCF | variants.vcf.gz | 23andMe-style text | Anjali_23andMe.txt | GEDmatch, Promethease, DNA Painter |
| AncestryDNA text | AncestryDNA.txt | 23andMe-style text | Anjali_23andMe.txt | Sites that only accept the 23andMe layout |
| Illumina IDAT zip | 207123450001_R01C01.zip | 23andMe text or VCF | Anjali.txt or Anjali.vcf.gz | Turn a chip scan into genotypes |
| PLINK bed, bim, and fam | anjali_plink.zip | VCF | Anjali.vcf.gz | Move a GWAS dataset into variant tools |
| FASTQ | Anjali_R1.fastq.gz | BAM | Anjali.bam | Aligned reads for IGV or a variant caller |
| BAM | Anjali.hg19.bam | VCF | Anjali.vcf.gz | Call variants from aligned reads |
| BAM | Anjali.hg38.bam | FASTQ | Anjali_R1.fastq.gz | Extract reads so they can be aligned again |
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.