Convert Tab delimited file to VCF file
0
0
Entering edit mode
8.5 years ago
niharraul • 0

Hello,

I have tab delimited/csv file containing the SNP information and want to convert it to vcf file so that I can annotate it using VEP

chromosome Number    chromosome position      SNP ids         Ref Allele   Alt Allele    Qual    Filter    Info
21                   26960070                 rs116645811     G            A             .       .         .
21                   26965148                 rs1135638       G            A             .       .         .
...
...

I am familiar with python. It will be great if you could provide any suggestion/help

snp • 9.6k views
ADD COMMENT
3
Entering edit mode

That looks pretty close to a VCF file, sans header and proper field names.

http://samtools.github.io/hts-specs/VCFv4.2.pdf

ADD REPLY
1
Entering edit mode

Just copy header from some VCF file. Just make sure to have information fields ('#') that matches your fields, and chromosome lengths.

Or read on vcf-annotate, which I was using to make vcfs with custom fields some time ago

ADD REPLY
0
Entering edit mode

It might be only enough to have ##fileformat=VCFv4.2 and the #CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tXXX.

ADD REPLY

Login before adding your answer.

Traffic: 2555 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