Hi everybody
I am trying to get a consensus sequences with bcftools with this commands:
bcftools mpileup -Ou -f reference.fa alignments_sorted.bam | bcftools call -mv -Oz -o calls.vcf.gz
tabix calls.vcf.gz
cat reference.fa | bcftools consensus calls.vcf.gz > consensus.fa
I then get this message:
The fasta sequence does not match the REF allele at MG564755.1:8368:
.vcf: [A]
.vcf: [AAATAT] <- (ALT)
.fa: [T]CAAATCATCGACGGAAACGGAAAGAGAGGGATT
and no output. I saw a previous post where the same question was asked, but following the solution given I could not solve the problem. thanks a lot
Hi everybody, I almost have the same problem as before … With the command line:
I have only the bi-allelic SNP in IUPAC code in the consensus.fa and not the tri-allelic SNP or indel. Please, have you got an idea ? or an option in the command line ? thanks a lot