How to annotate all SNPs from a BAM file, not just the variants?
1
0
Entering edit mode
8 months ago

I have a BAM file from sequencing data, and I would like to annotate all SNPs read in the sequencing, not just the variants. Is the following command correct for achieving this goal?

bcftools mpileup -Ou -f referencia.fasta arquivo.bam | \
  bcftools call -a FORMAT/DP --ploidy 2 --output-type z --output arquivo.vcf.gz

If this approach is incorrect, could you suggest the appropriate method or tool to accomplish this?

Thank you for your help!

Annotation SNP BAM Variant-Calling • 762 views
ADD COMMENT
0
Entering edit mode
8 months ago
Mark ★ 1.7k

You are using or conflating different concepts. annotate refers to adding info to vcf tools, SNPS are variants. I think what you are after is output all sites not just variant sites. If so, then the bcftools call command looks correct because you have not included -v, --variants-only flag.

ADD COMMENT

Login before adding your answer.

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