Many thanks for reading my post.
When I finish NGS, I use BWA to conduct reference mapping/assembly to align short reads into the reference genome, and then use samtools and bcftools to get the consensus sequence. Then I found the length of consensus sequence is the same as the reference, with no gaps. But actually, there should be gaps between the sequences. And it seems BWA and subsequent tools cannot incorporate indels when generating consensus sequence.
For the insertion in reads, it seems BWA cannot insert gaps into reference sequence which leads to the exclusion of those insertion information in the consensus sequence.
For the deletion in reads, it seems BWA do not treat gaps as character when counting the consensus character for one site.
Thus I just want to know if there is any reference mapping/assembly tools can incorporate the indels between the reads and the reference sequence when generating consensus sequence. If not, it seems the resultant sequence would be a "wrong" one. Right?
If I have any mistakes in my understanding of BWA or others, please feel free to correct me. I am a newbie in NGS, your help would be important to me. Thanks.