If you happen to see a question you know the answer to, please do chime in and help your fellow community members. We encourage our fourm members to be more involved, jump in and help out your fellow researchers with their questions. GATK forum is a community forum and helping each other with using GATK tools and research is the cornerstone of our success as a genomics research community.We appreciate your help!

Test-drive the GATK tools and Best Practices pipelines on Terra

Check out this blog post to learn how you can get started with GATK and try out the pipelines in preconfigured workspaces (with a user-friendly interface!) without having to install anything.

*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.