sql to vcf
0
0
Entering edit mode
5.5 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.

database sql vcf • 2.7k views
ADD COMMENT
1
Entering edit mode

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 valid vcf.

fin swimmer

ADD REPLY
0
Entering edit mode

Hello finswimmer, I want a converter to convert my data from sql server to the vcf file.

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode
  • I'm trying to convert sql data to the vcf file.
  • Database engine=DBMS : MS SQL (2017) on Windows 10 Schema:dbo
  • Structure of the table=My data in TABLE: String, Int, fload
  • Zygosity=a colum that is containing HET (hetrozygote) or HOM (homozygote)
ADD REPLY
0
Entering edit mode

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.

ADD REPLY
1
Entering edit mode

Are there any tools to convert tab delimited file to vcf file.

bcftools query

ADD REPLY
1
Entering edit mode

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.

ADD REPLY

Login before adding your answer.

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