Difference between vcf2fq and bcftools consensus
1
0
Entering edit mode
12 months ago

Hi everybody,

I'm working for generate consensus sequence and I'm interogating myself about the differences of work process between bcftools consensus and vcf2fq from vcfutils.pl. In the one hand, thanks to vcf2fq, I can generate consensus sequence with the following command:

bcftools mpileup -f {ref_seq} {input_file.bam} | \
bcftools call -c | \
bcftools annotate --rename-chrs {rename_file} | \
vcfutils.pl vcf2fq > {output_file.fastq}")

In the other and, it can be perform with bcftools consensus with the following commands:

bcftools mpileup -Ou -f {ref_seq.fasta} {input.bam} | bcftools call -mv -Oz --threads 10 -o {output.vcf.gz}
bcftools index {input.vcf.gz}
bcftools consensus -f {ref_seq.fasta} {input.vcf.gz}

Is there a difference ? Is there a better one than other ? Or is there a recommanded tool for a specific case ?

Best regards, Antoine

bcftools • 935 views
ADD COMMENT
1
Entering edit mode
12 months ago

The tools do change - especially when it comes to reconciling close variants.

But asking is it better or worse does not have an easy answer since the changes are not all that well documents.

All of us are, of course, are hoping that newer versions are better, but whether that is better for the author or all of us ... is less clear.

ADD COMMENT

Login before adding your answer.

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