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.
Thank you
Then you may be out of luck on last file. It looks like you have reasonably older versions of
bwa
in first two examples and at that time it may not have been capturing the command line used.You could always recreate the fastq file and realign the data with current
bwa
.Please use the formatting bar (especially the
code
option) to present your post better. I've done it for you this time.