VCF to BCF file conversion
1
1
Entering edit mode
8.7 years ago
SOHAIL ▴ 400

Hi Everyone,

I am sorry this might be stupid, but can anyone help me, is there any way:

  1. To convert VCF file to BCF file. I think we can use BCFTOOLS but I am not getting the right command.
  2. My VCF file has soe duplicated records, how to filter the duplicate records of variants?

Thanks in advance!

NGS Genomics • 17k views
ADD COMMENT
0
Entering edit mode

I think we can use BCFTOOLS but I am not getting the right command.

What did you try?

ADD REPLY
0
Entering edit mode

I tried bcftools

bcftools view file.vcf.gz -o file.bcf
ADD REPLY
2
Entering edit mode
8.7 years ago

in the manual: https://samtools.github.io/bcftools/bcftools.html#view

-O, --output-type b|u|z|v Output compressed BCF (b), uncompressed BCF (u), compressed VCF (z), uncompressed VCF (v). Use the -Ou option when piping between bcftools subcommands to speed up performance by removing unecessary compression/decompression and VCF←→BCF conversion.

ADD COMMENT
0
Entering edit mode

Thank you very much for your comment Pierre, can you please guide me how I can generate .BCI file for BCF (*..bcf.bci), I am trying to call de novo mutations by de novo gear software and I need this input file.

But by BCFtools, we can only generate CSI index file (https://samtools.github.io/bcftools/bcftools.html#index)

and can you please comment on how to remove duplicate records fro VCF file?

Thanks!

ADD REPLY

Login before adding your answer.

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