Hey everyone,
ATM I am working with GATK for the first time and a get an error, wich everybody knows:
##### ERROR MESSAGE: Input files reads and reference have incompatible contigs: Order of contigs differences, which is unsafe.
##### ERROR reads contigs = [chr1, chr2, ..., chrUn_gl000226, chr18_gl000207_random]
##### ERROR reference contigs = [chr1, chr2, ..., chrY, chrM]
Is there a way to remove the chr18_gl000207_random on the BAM level, I don't wanna go back to SAM level and kick them out. Because if already done some postprocessing now.
With best,
Mario
What if you change the reference sequence instead of the alignment?
This would work to, but I am looking for nice and fast why, Istvan Albert posted below.