I'm trying to generate a fasta file from a reference including variants in a vcf file. I'm using bcftools and it works.

My problem is that I would like to create a fasta where only the mutated positions are showing and the wild type ones are representes as -.

So for example, if I have a mutation in position 3, the fasta should look like:

--T----

Is it possible?

More Marco Toffoli's questions See All
Similar questions and discussions