Error When Convert Human Snp138.Txt To .Vcf Format
1
0
Entering edit mode
10.4 years ago
asphodel6 ▴ 20

I have used the following command $ java -jar GenomeAnalysisTK.jar -T VariantsToVCF -V:OLDDBSNP snp138.txt -R genome.fa -o snp138.vcf to convert human snp138.txt file downloaded from http://hgdownload.soe.ucsc.edu/goldenPath/hg19/database/ to .vcf format. As output the snp138.vcf file has been generated which has the size as 0 and the other 2 files have been generated as snp138.txt.idx and snp138.vcf.idx.

gatk • 4.5k views
ADD COMMENT
2
Entering edit mode
10.4 years ago

snp138 is already available as VCF:

 curl -s "ftp://ftp.ncbi.nih.gov/snp/organisms/human_9606/VCF/00-All.vcf.gz" | gunzip -c |  more
##fileformat=VCFv4.0
##fileDate=20130806
##source=dbSNP
##dbSNP_BUILD_ID=138
##reference=GRCh37.p10
##phasing=partial

you might just have to add a 'chr' prefix if you're using hg19.

ADD COMMENT

Login before adding your answer.

Traffic: 2645 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6