BCFTOOLS VIEW parameter?
1
0
Entering edit mode
4 weeks ago
charlie • 0

I am trying to split my multiple samples vcf files to single one with Bcftools view, and -O z which can generate the compressed VCF.

bcftools view -s "$id" -g het  -v snps -o "$id/${id}_${vcf%.vcf.gz}_hetsnps.vcf" -O z "$vcf" --threads 50

However, the output files are uncompressed?

enter image description here

SNP • 342 views
ADD COMMENT
1
Entering edit mode

Please do not paste screenshots of plain text content, it is counterproductive. You can copy paste the content directly here (using the code formatting option shown below), or use a GitHub Gist if the content volume exceeds allowed length here.

code_formatting

ADD REPLY
2
Entering edit mode
4 weeks ago

you should add a '.gz' to the output file name.

 -o "$id/${id}_${vcf%.vcf.gz}_hetsnps.vcf.gz" -O z
ADD COMMENT

Login before adding your answer.

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