Samtools Bcf To Vcf Problem
1
0
Entering edit mode
11.9 years ago
Anjali ▴ 60

Hi I have a bcf file generated using bcftools(samtools), which I further wanted to convert to vcf format. I used the following command:

bcftools view ../bcf/test.bcf | vcfutils.pl varFilter -D 8000 > test.vcf

The corresponding vcf file only generated the header and not the body.

I have used this command 2 months before on a different dataset and it worked well. I have the same Human fasta index file as a refernce. I can not figure out what is the problem now.

Can anyone help me??

I look forward to your reply

vcf • 9.7k views
ADD COMMENT
1
Entering edit mode

are you sure that the bcf file is not empty?

ADD REPLY
0
Entering edit mode

you should also visualize your bcf file with your own eyes, open it with 'view' and check the data until the very end (unless it's too big).

ADD REPLY
0
Entering edit mode
11.9 years ago
madkitty ▴ 690

try to grab the header first (with grep or anything you like) write in a file with the same name as your output file and then overwrite to your output file (with the same command you have here)

.. not sure that would work but I would give it a try

ADD COMMENT

Login before adding your answer.

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