I am trying to use bwa mem to align sequence reads to the hg19 reference but my sequences all have a UMI (Unique molecular Identifier). I used umitools like so:
umitools trim --end 5 input.fastq NNNNNN > output.fastq
This then properly appended my UMI sequence to the name line in the output.fastq file, but then when using bwa mem to align, I get the error that:
paired reads have different names: "someTitle:UMI_ATGCTC", "someTitle:UMI_CATTAT"
Is there a way to use both bwa mem and umitools together so this doesn't happen?