Skip to content

Commit

Permalink
ca_utils: minor fix in split minimap2 alignments for IDY consistency …
Browse files Browse the repository at this point in the history
…with and w/o split
  • Loading branch information
alexeigurevich committed Apr 29, 2020
1 parent 87721c3 commit ad7358d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quast_libs/ca_utils/align_contigs.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def _write_align():
return
align.e1 = align.s1 + align.len1 - 1
align.e2 = align.s2 + (align.len2 - 1) * strand_direction
align.idy = '%.2f' % (matched_bases * 100.0 / align.len1)
align.idy = '%.2f' % (matched_bases * 100.0 / max(align.len1, align.len2))
if float(align.idy) >= qconfig.min_IDY:
coords_file.write(align.coords_str() + '\n')

Expand Down

0 comments on commit ad7358d

Please sign in to comment.