I have aligned raw 1D nanopore reads to a bacterial reference assembly using BWA –MEM and got the sam and bam file.
Is there a quick way to get the of percentage identity for each read from the sam/bam file ???
I would like to generate an histogram with reads count and the percent identity to the reference.
Thanks,
Here is the output ??
I don´t get anything else ???
Here is the output, redirecting stderr to /dev/null, using a BAM processed with bwa/samtools: (https://github.com/lindenb/jvarkit/blob/master/src/test/resources/S1.bam )
Please use
ADD COMMENT/ADD REPLY
when responding to existing posts to keep threads logically organized. This comment belongs under @Pierre's answer.