Skip to content

Keep a given --min-read-percent-identity in metabat mode - #309

Merged
wwood merged 1 commit into
wwood:mainfrom
rec3141:metabat-identity
Oct 27, 2026
Merged

wwood merged 1 commit into
wwood:mainfrom
rec3141:metabat-identity

Conversation

@rec3141

@rec3141 rec3141 commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

contig --methods metabat replaced any --min-read-percent-identity with 97% (#308). With this change, a given threshold is kept, and 97% applies only when none is given. The metabat entry in contig --full-help now says so. The secondary, supplementary and improper-pair settings are unchanged.

New test test_metabat_given_percent_identity_is_kept: -m metabat --min-read-percent-identity 90 on k141_2005182.head11.bam.

  • The expected row (6.04 / 1.12) was computed with CoverM 0.8.0 using -m length mean variance --min-read-percent-identity 90 --min-covered-fraction 0 --contig-end-exclusion 75 --include-secondary.
  • At 97.001 the same command reproduces the existing test_metabat_97_of_100_bases_should_fail row exactly (1.9333 / 0.0631).
  • Not built or run locally; please let CI confirm.

Fixes #308

🤖 Generated with Claude Code

The metabat method replaced any --min-read-percent-identity with 97%, so a
lower threshold was silently ignored. Use 97% only when none is given, and
say so in the method's help.

Fixes wwood#308

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@wwood

wwood commented Oct 22, 2026

Copy link
Copy Markdown
Owner

@codez please review

@rec3141

rec3141 commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

cc @codex

@wwood
wwood merged commit e0dbaf9 into wwood:main Oct 27, 2026
9 checks passed
@wwood

wwood commented Oct 27, 2026

Copy link
Copy Markdown
Owner

Thanks. I ended up fixing some other things along the same lines too.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

contig --methods metabat ignores --min-read-percent-identity (always 97%)

2 participants