I have two sets of alignments from different sequencing runs that I want to compare in IGV. I want to maintain the order of the read alignments between the two bams so I can visually compare the alignments, but when I sort the bams I lose the order. I know I can use samtools sort -n but then I can't index it and open in IGV.
Is there a solution to this problem?
Hi- It's unclear to me what it is exactly that you want to compare. Different sequencing runs will give different read names, so regardless of the tool you use you cannot compare individual reads across runs. Even if read names were the same (say you match reads across runs using the flow cell coordinates), reads with the same coordinates from different runs probably come from different parts of the genome so I don't see how such comparison would be useful.
I was trying to simplify my question. My "reads" are consensus sequences of loci of interests that I named. One I did with Sanger sequencing and the other with PacBio.