text: user2869: I have several bam files from unknown origin. I'd like to know what software was used to obtain those bam files, e.g. bwa-mem. Is it possible to somehow check it?
  
  user-1: If you're lucky the information is stored in the BAM header in the lines starting with @PG which stores the command lines run on the BAM, use samtools view -H your.bam to display the header.
  
original_text: 2869: <p>I have several bam files from unknown origin. I'd like to know what software was used to obtain those bam files, e.g. <code>bwa-mem</code>. Is it possible to somehow check it?</p>
   -1: <p>If you're lucky the information is stored in the BAM header in the lines starting with <code>@PG</code> which stores the command lines run on the BAM, use <code>samtools view -H your.bam</code> to display the header.</p>
  