Biostar Beta. Not for public use.
Merging BAM file with Samtools
Entering edit mode
14 months ago
seta ♦ 1.2k

Hi everybody,

I'm trying to merge 2 bam files using samtools (1.9), but it give me th error "Tag PG:fastq2bam_damp_1-7-29 not found in @PG records". I didn't find any useful information about the error on net! Could you please let me know how I can solve the error?


Entering edit mode
13 months ago
Freiburg, Germany

That's probably a warning (it's written as such, but I haven't looked through the repercussions) and can be ignored. There's a nice comment in the samtools source code about this:

 * Common code for completing RG and PG record translation.
 * Input is a list of header lines, and the mapping from input to
 * output @PG record IDs.
 * RG and PG records can contain tags that cross-reference to other @PG
 * records.  This fixes the tags to contain the new IDs before adding
 * them to the output header text.

So, basically it's trying to ensure that PG record cross-references don't get broken by the merge. Unless you get a non-zero return code the resulting file should be fine.


Login before adding your answer.

Similar Posts
Loading Similar Posts
Powered by the version 2.1