To celebrate the release of GATK 4.0, we are giving away free credits for running the GATK4 Best Practices pipelines in FireCloud, our secure online analysis portal. It’s first come first serve, so sign up now to claim your free credits worth $250. Sponsored by Google Cloud. Learn more at

*bam files with the same size (# of contigs) to merge?


I am trying to merge multiple (4 files data fom UCEs) *bam files using MergeSamFiles.jar. However, the script shows this message:

Exception in thread "main" net.sf.samtools.util.SequenceUtil$SequenceListsDifferException: Sequence dictionaries are not the same size (3857, 3743)

Indeed, the *bam files have different sizes (and their dictionaries), but my experiment dont allow edit the files to be equal in size. I use the samtools view -H command(s) to see the format and information of each file, so I think that that is not the problem.

So, i have a question:

  • It is necessary that the *bam/sam files have the same size (contigs) to be merged?

Sorry by this basic question, but I dont find information on this.

Thanks in advance.


Sign In or Register to comment.