Output of the mapping: bam/sam files

What are bam files?

Mappers will produce either a sam or a bam file. What’s the difference?

Content-wise there is no difference: they contain exactly the same info. But there is a difference in format:

  • sam files are tab delimited text files
  • bam files are binary files

Binary files are very compact, but you cannot open them in a text editor. Your computer can read them though.