Hi
I went BWA alignment and sorted my bam file when I was doing my WES analysis to find SNP and Indel, however, my bam file look like this: chr1 ... chr22 chrX chrY chrM, now I want get my bam file : chrM chr1 ...chr22 chrX chrY ,what should I do?
Thank you
I think you should go for variant calling and then sort the resulted vcf file as per your liking..!!
Why would you do that? Which larger problem are you trying to solve by changing the order of chromosomes in your bam file?
I need to do variant calling with GATK and GATK may give incorrect results if the order of my bam file is chr1 ... chr22 chrX chrY chrM
No it wouldn't. What makes you think that?
cause I found that someone else had a bam file with the order of chrM, chr1, chr2, ... ,chrX, chrY and he mentioned it's very important. I will check it again and find the original information about the order of bam files.
I found it. These are defined by historical karotyping of largest to smallest chromosomes, followed by the X, Y, and MT for the b3x references; the order is thus 1, 2, 3, ..., 10, 11, 12, ... 20, 21, 22, X, Y, MT. The hg1x references differ in that the chromosome names are prefixed with "chr" and chrM appears first instead of last hg