Galaxy | Tool Preview

Samtools reheader (version 2.0.3)
Header from this dataset will be used to replace header in the target dataset. May be either SAM or BAM dataset.
Header from the source dataset will be inserted here. Should be a BAM dataset.
By default, samtools reheader will add itself to the chain of tools used to manipulate the target dataset, which will cause one or more @PG records to be inserted into the new header. If you want the output dataset to end up with the header of the source dataset exactly, you should activate this option.

What it does

Generates a new BAM dataset with the contents of target dataset, but the header of source dataset using the samtools reheader command.