# VCF-to-23andMe
These scripts convert an imputed DNA.Land VCF into the 23andMe V3 raw data format.

Firstly, data_to_db.py converts the VCF file and any additional 23andMe raw data file into an indexed SQLite3 database for quick searching. db_to_23.py then inserts genotypes into the blank V3 file retrieved from the database by chromosome, position and identifier.

##Requirements
* Python

##Usage
```
python data_to_db.py <INPUT_VCF> vcf <OUTPUT_DB>
python data_to_db.py <INPUT_23_RAW> 23andme <OUTPUT_DB>
python db_to_23.py <INPUT_DB> <INPUT_BLANK_23_RAW> <OUTPUT_23_RAW>
```

##Usage Example
```
python data_to_db.py imputed.vcf genome.db
python data_to_db.py 23andme_v4_genome.txt genome.db
python db_to_23.py genome.db blank_v3.txt genome_Fred_Bloggs_Full_20140628012345.txt
```

# VCF-to-23andMe
These scripts convert an imputed DNA.Land VCF into the 23andMe V3 raw data format.

Firstly, data_to_db.py converts the VCF file and after any additional 23andMe raw data file (adds 23andMe indentifiers) into an indexed SQLite3 database for quick searching. db_to_23.py then inserts genotypes into the blank V3 file retrieved from the database by chromosome, position and identifier.

##Requirements
* Python

##Usage
```
python data_to_db.py <INPUT_VCF> vcf <OUTPUT_DB>
python data_to_db.py <INPUT_23_RAW> 23andme <OUTPUT_DB>
python db_to_23.py <INPUT_DB> <INPUT_BLANK_23_RAW> <OUTPUT_23_RAW>
```

##Usage Example
```
python data_to_db.py imputed.vcf vcf genome.db
python data_to_db.py 23andme_v4_genome.txt 23andme genome.db
python db_to_23.py genome.db blank_v3.txt genome_Fred_Bloggs_Full_20140628012345.txt
```

Correct example and add explaination
Correct example and add explaination