From Genome Analysis Wiki
no edit summary
Read and Validate a SAM/BAM file ==
The <code>validate</code> option on the bam executable validates a SAM/BAM file.
The validation checks that the file is sorted as specified in the user options. Default is unsorted, in which case, no order validation is done.