---
name: "bamheadrg.py"
section: "1"
platform: "linux"
package: "bamkit"
version: "0.0.1+git20170413.ccd079d-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/bamheadrg.py"
---

# bamheadrg.py(1)

Inject readgroup info

## NAME

bamheadrg.py - Inject readgroup info

## SYNOPSIS

**bamheadrg.py** \[-h\] \[-r READGROUP\] **-d** DONOR \[-S\] \[recipient\]

## DESCRIPTION

Inject readgroup info

## OPTIONS

### positional arguments:

- recipient

  SAM file to inject header lines into. If '-' or absent then defaults to stdin.

### optional arguments:

- **-h**, **--help**

  show this help message and exit

- **-r** READGROUP, **--readgroup** READGROUP

  Read group(s) to extract (comma separated)

- **-d** DONOR, **--donor** DONOR

  Donor BAM/SAM file to extract read group info

- **-S**, **--donor\_is\_sam**

  Donor file is SAM

## AUTHOR

 This manpage was written by Andreas Tille for the Debian distribution and\
  can be used for any other usage of the program.
