3
$\begingroup$

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?

$\endgroup$

1 Answer 1

6
$\begingroup$

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.

$\endgroup$
1
  • $\begingroup$ Indeed, there was the full command line, thanks! $\endgroup$
    – Adamm
    Mar 19, 2021 at 8:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.