Entering edit mode
6.1 years ago
fmail1221
•
0
Hi all I'm trying to convert sql data containing headers such as 'CHROM' 'POS' 'REF' 'ALT' 'Zygosity' to the variant call format (vcf) file. Can anybody help me? My operating system is windows 10.
Hello fmail1221 ,
and what is your problem? Have a look at the specification on how a
vcf
must look like and extract the data from your database to make a validvcf
.fin swimmer
Hello finswimmer, I want a converter to convert my data from sql server to the vcf file.
what is the database engine ? what is the structure of the table ? what is 'Zygosity' ? How To Ask Good Questions On Technical And Scientific Forums
Did you get the vcf file format from database. I am trying to get output vcf file from psql database.
Or Are there any tools to convert tab delimited file to vcf file. I have a file with CHROM, POS, REF and ALT, can we use any tool to convert it into vcf file. Let me know. Thank you.
bcftools query
Pierre, Thanks for quick reply.
bcftools query can extract tab delimited file from vcf/bcf format right, but I need a vcf file from tab delimited file. I found the below lines from bcftools document page.
bcftools query [OPTIONS] file.vcf.gz [file.vcf.gz […]] Extracts fields from VCF or BCF files and outputs them in user-defined format.