Skip to content

Nicely handle corrupt Minimap2 indexes, build at fetch time? #59

Open

Description

@bede

Since 2.0.0, MMI files are created on the fly if they do not already exist when hostile clean is invoked. In subsequent runs the .mmi version of the index is detected and used automatically, saving time. If MMI construction is interrupted the file can be corrupted, leading to repeated failure of hostile clean. This likely happened in #58 (comment)

There needs to be an easy way to purge corrupt MMI indexes, ideally without forcing redownload of fasta(.gz) indexes.

MMI creation should probably happen at fetch time instead, which seems more atomic.

Activity

  1. bede commented on Apr 18, 2025

    @bede
    OwnerAuthor

    We already have hostile index delete --mmi for this, but could still push mmi construction to fetch time

  2. bede commented on May 29, 2025

    @bede
    OwnerAuthor

    MMIs could also be built with a different file extension and renamed, as a transaction of sorts indicating completion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions