SEQanswers

SEQanswers (http://seqanswers.com/forums/index.php)
-   Bioinformatics (http://seqanswers.com/forums/forumdisplay.php?f=18)
-   -   Converting vcf.gz file into vcf (http://seqanswers.com/forums/showthread.php?t=92538)

Noveline 01-16-2020 01:09 PM

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.

GenoMax 01-17-2020 04:23 AM

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.

gringer 01-21-2020 04:25 PM

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]



All times are GMT -8. The time now is 01:23 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2020, vBulletin Solutions, Inc.