An outside lab took some M. tuberculosis clinical isolates and sequenced them on as Illumina miseq. They then ran it through their pipeline to map it to H37rv. They've shared with me their BAM and VCF files and I'd like to annotate the genomes with prokka. Prokka expects a contigs.fa input. Is there a way to get from either a bam or vcf to contigs in a fasta format?
@jrj.healey describes one way of doing the analysis below.
If you want to start with VCF calls you have in hand then you could generate a new consensus for each strain using the procedure described on this page. Then go to next step.
if you have reference file and vcf, you can use bcftools consensus function to create fasta.