If remapping a BAM file it would be useful to be able to retain information such as barcode (BC) information in the downstream files.
BWA mem supports taking data from the fastq comment and appending it to the mapped read in it's ouput:
-C Append append FASTA/Q comment to SAM output. This option can be used to transfer read meta information (e.g. barcode) to the SAM output. Note that the FASTA/Q comment (the string after a space in the header line) must conform the SAM spec (e.g. BC:Z:CGTAC). Malformated comments lead to incorrect SAM output.
Could a option along the lines of the following be added?
tags=<[]> BAM tags to be copied in to fastq comment, e.g. BC.
If remapping a BAM file it would be useful to be able to retain information such as barcode (BC) information in the downstream files.
BWA mem supports taking data from the fastq comment and appending it to the mapped read in it's ouput:
Could a option along the lines of the following be added?