Skip to content

Change default k to 31 - #101

Merged
johnlees merged 1 commit into
masterfrom
default-k
Oct 14, 2025
Merged

johnlees merged 1 commit into
masterfrom
default-k

Conversation

@johnlees

Copy link
Copy Markdown
Member

Also update build options, fix tests

Also update build options, fix tests
@codecov

codecov Bot commented Oct 14, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.15%. Comparing base (c8d5834) to head (3325176).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #101   +/-   ##
=======================================
  Coverage   95.15%   95.15%           
=======================================
  Files          25       25           
  Lines        3630     3630           
=======================================
  Hits         3454     3454           
  Misses        176      176           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@johnlees

Copy link
Copy Markdown
Member Author

Closes #100

@johnlees
johnlees merged commit b5e203a into master Oct 14, 2025
@johnlees
johnlees deleted the default-k branch October 14, 2025 09:04
@johnlees johnlees mentioned this pull request Oct 14, 2025
@mbhall88

Copy link
Copy Markdown

Are you able to elaborate on why the default was changed? Is there some kind of analysis you can point to?

@johnlees

johnlees commented Jan 2, 2026

Copy link
Copy Markdown
Member Author

@mbhall88 The lower k-mer length 17 we had before tended to match repeats or randomly, giving too ambiguous bases. In the paper (if you see the plots fig2 vs k-mer length) we focused on maximising recall overall. But we had many reports of overestimated distances vs ska1 due to different defaults, and it turns out most users don't want ambigous bases (especially affecting their distances). You can see 31 gives good recall in the ideal range, and we thought this would prevent unexpected behaviour of ska dist. This change is mainly discussed in #92. Hope that helps

@mbhall88

mbhall88 commented Jan 4, 2026

Copy link
Copy Markdown

Cool. Thanks for the info! Makes sense. Seems to also be somewhat supported by https://doi.org/10.1099/mgen.0.001347 (though they suggest 37 for assemblies). Not sure if you have any thoughts on the findings in that paper?

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.

2 participants