This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Get length of the alignment from bam file

Hi, I would like to know if it is it possible to get the read length of the higher alignment in a bam file having more than 85% identity.

For example an output with this fields:

  • Read_length
  • Alignment_length
  • Percent_identity

thanks

bam

You can do this with pysam. Do you have any (Python) coding experience?

I´m more of a perl guy but can give it a try

1 answer

using bioalcidaejdk : http://lindenb.github.io/jvarkit/BioAlcidaeJdk.html

Hi, Does bioaclidaejdk get the output of those three column in same order as present in sam file. So can i apped read id information row by row to the output.?

Log in to answer this question.