SEQanswers

Go Back   SEQanswers > Bioinformatics > Bioinformatics



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I go about converting a BCF file to a VCF file? prs321 Bioinformatics 20 03-12-2014 06:47 AM
multiple vcf files to one multisampled vcf file Jetse Bioinformatics 2 06-27-2013 05:34 AM
Converting .sam to .vcf bnfoguy Bioinformatics 1 06-19-2012 06:46 AM
How to get list of column in vcf file using Vcf.pm? jessada Bioinformatics 0 01-20-2012 07:22 AM
Converting Dindel VCF file to GATK BED file MolecularToast Bioinformatics 2 09-24-2011 06:38 PM

Reply
 
Thread Tools
Old 01-16-2020, 01:09 PM   #1
Noveline
Junior Member
 
Location: Poland

Join Date: Jan 2020
Posts: 4
Default Converting vcf.gz file into vcf

Hello,

If there is any possibility to convert vcf.gz file into vcf file? I am not familiar with bioinformatic tools and I will be extremely grateful for any help.
Noveline is offline   Reply With Quote
Old 01-17-2020, 04:23 AM   #2
GenoMax
Senior Member
 
Location: East Coast USA

Join Date: Feb 2008
Posts: 7,054
Default

The file extension indicates gzip compression. You should be able to use "gunzip" program to uncompress the file. On windows you may want to use a program such as 7-zip to do this conversion.
GenoMax is offline   Reply With Quote
Old 01-21-2020, 04:25 PM   #3
gringer
David Eccles (gringer)
 
Location: Wellington, New Zealand

Join Date: May 2011
Posts: 838
Default

Have a look at the bcftools package. It supports uncompressed and gzip-compressed VCF file formats as input, as well as the BCF format, and provides means to output as any of those formats. Here are the first few lines of documentation for bcftools view:

Code:
$ bcftools view

About:   VCF/BCF conversion, view, subset and filter VCF/BCF files.
Usage:   bcftools view [options] <in.vcf.gz> [region1 [...]]

Output options:
    -G,   --drop-genotypes              drop individual genotype information (after subsetting if -s option set)
    -h/H, --header-only/--no-header     print the header only/suppress the header in VCF output
    -l,   --compression-level [0-9]     compression level: 0 uncompressed, 1 best speed, 9 best compression [-1]
    -o,   --output-file <file>          output file name [stdout]
    -O,   --output-type <b|u|z|v>       b: compressed BCF, u: uncompressed BCF, z: compressed VCF, v: uncompressed VCF [v]
gringer is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT -8. The time now is 02:36 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO