Skip to content

Minimap2 presets are perhaps too strict? #209

Description

@schorlton

Thanks for the great tool!

My understanding from the source is that the minimap2 presets are set based on --min-identity to the following:

if qconfig.min_IDY < 90:
preset = 'asm20'
elif qconfig.min_IDY < 95:
preset = 'asm10'
else:
preset = 'asm5'

However, I'm wondering if these are actually too strict as the --min-identity is described?

@lh3 would be able to comment best, but my understanding from the minimap2 manual and issues is asm5 can align up to a maximum of 5% sequence identity, but in fact, most of the sequence should be far less than this. Same thing for asm10 and asm20. Therefore, for average identity across an entire contig of 95%, asm5 is not the optimal setting and probably too strict.

I'd recommend just using asm20 for all values of --min-identity (except maybe 1% or less, where asm5 may be safe). The speed/memory trade-offs for alignment just aren't there if you're doing bacterial genome alignment, and you're post-filtering the alignments anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions