Entering edit mode
21 days ago
chiyong4783
•
0
Hello, everybody. I used VG to align a pangenome and generate the original BAM file, where the header sequence order is chr1, chr10, chr11. I wanted to replace the header to chr1, chr2, chr3, so I generated a SAM file, manually adjusted the chromosome order, and then used samtools reheader to modify the BAM file. After modification, an issue occurred: the chromosome positions of the original sequences changed. I would like to know how to avoid this situation.
What do you hope to achieve by renaming the header? That is unusual as the header matches the reference used. Also why not use http://www.htslib.org/doc/samtools-reheader.html
I am using GATK to identify regions requiring local realignment, providing target intervals for the IndelRealigner tool to optimize the alignment quality around short insertions and deletions (indels). However, the following error occurred, so I want to adjust the order of the BAM file header.