I'm trying to figure out which version/type of bwa was used in three aligned bam files (sampe, mem or aln). Is there a way of figuring this out? I can't find information on this from where I downloaded the samples.
Looking at the header, they say the following:
samtools view -H file1.bam | grep "bwa" @PG ID:bwa PN:bwa VN:0.5.9-r16 samtools view -H file2.bam | grep "bwa" @PG ID:bwa PN:bwa VN:0.6.1-r104-tpx samtools view -H file3.bam | grep "bwa" #(Has no output).
But from what I understand this just says the version of bwa and not the type of bwa used.
Is there something about the format in the output which might say which version was used?
EDIT: I've also grepped for "CL" and "PG", but the information is not in the header for these files.