how to use vcf2bed with .gz file
1
0
Entering edit mode
7.0 years ago
Medhat 9.7k

Is there is a way to use vcf2bed with compressed file?

for example in general the tool work like this

vcf2bed < foo.vcf > sorted-foo.vcf.bed

so if my file is foo.vcf.gz

zcat foo.vcf.gz | vcf2bed > sorted-foo.vcf.bed

will not work any idea?

vcf SNP next-gen • 2.7k views
ADD COMMENT
1
Entering edit mode
7.0 years ago

( not tested ) using a hyphen for stdin ?

zcat foo.vcf.gz | vcf2bed - > sorted-foo.vcf.bed

or

vcf2bed <(gunzip -c foo.vcf.gz) > sorted-foo.vcf.bed

?

ADD COMMENT
1
Entering edit mode

That is right the first form zcat foo.vcf.gz | vcf2bed - > sorted-foo.vcf.bed worked fine; the other did not,

Please change to an answer :)

ADD REPLY

Login before adding your answer.

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