The current GATK version is 3.6-0

#### Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

# convert hapmap to vcf format

Member Posts: 261 ✭✭
edited February 2014

I’d like to convert a hapmap file to vcf. The hapmap file is from http://hapmap.ncbi.nlm.nih.gov/downloads/genotypes/latest/forward/non-redundant/genotypes_chr1_ASW_r27_nr.b36_fwd.txt.gz

java -Xmx2g -jar GenomeAnalysisTK.jar \
-R ref.fasta \
-T VariantsToVCF \
-o output.vcf \
--variant:RawHapMap input.hapmap \
--dbsnp dbsnp.vcf

1. Since the hapmap is in reference genome b36, should the ref.fasta be b36 as well? While b37 is everywhere, the only place I can find b36 is b36.3 at ftp://igenome:G3nom3s4u@ussd-ftp.illumina.com/Homo_sapiens/NCBI/build36.3/Homo_sapiens_NCBI_build36.3.tar.gz, is this OK?
2. What’s the usage of “-–dbsnp” here, should it be dbSNP built upon b36 as well?

Thanks,

Post edited by blueskypy on
Tagged:

1 and 2: Yes, all other files should be based on the same build, and after that you can liftover the resulting VCF to a different build if you want. Which I think is what you are doing now in your other thread...

3: It's built-in, you don't need to invoke it yourself.

Geraldine Van der Auwera, PhD

• Member Posts: 261 ✭✭

Thanks, Geraldine. It runs successfully even with the r28 of hapmap. I noticed a few other similar posts complaining errors used different built between the hapmap file and the ref genome, so that might be the source for those errors. Just to point it out so others can avoid similar errors.