Adds comments to the header of a BAM file.This tool makes a copy of the input bam file, with a modified header that includes the comments specified at the command line (prefixed by @CO). Use double quotes to wrap comments that include whitespace or special characters. Note that this tool cannot be run on SAM files.
java -jar picard.jar AddCommentsToBam I=input.bam O=modified_bam.bam C=comment_1 C="comment 2"
INPUT (File) Input BAM file to add a comment to the header Required.
OUTPUT (File) Output BAM file to write results Required.
COMMENT (String) Comments to add to the BAM file Default value: null. This option may be specified 0 or more times.