Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EXP: try setting up --v4 and --v5 behavior differences for sig check #3072

Open
wants to merge 12 commits into
base: latest
Choose a base branch
from

Conversation

ctb
Copy link
Contributor

@ctb ctb commented Mar 9, 2024

This PR adds --v5 functionality to sig collect and sig check, switching the default behavior (when --v5 is specified) over to the new --relpath functionality per #3071.

This PR is a proposed step along the road to support a sourmash v5 release 🎉.

As part of this, the PR adds support for --v4 and --v5 command-line arguments to sig check and sig collect, along with test fixtures and a version=... argument to runtmp.sourmash. --v4 would retain the current default v4 behavior, while --v5 would switch the behavior over to the new, exciting (proposed) sourmash v5 behavior.

Copy link

codecov bot commented Mar 9, 2024

Codecov Report

Attention: Patch coverage is 90.00000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 86.55%. Comparing base (f4e7205) to head (10b6964).

Files Patch % Lines
src/sourmash/sig/__main__.py 83.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           latest    #3072   +/-   ##
=======================================
  Coverage   86.55%   86.55%           
=======================================
  Files         136      136           
  Lines       15809    15819   +10     
  Branches     2713     2717    +4     
=======================================
+ Hits        13683    13692    +9     
  Misses       1816     1816           
- Partials      310      311    +1     
Flag Coverage Δ
hypothesis-py 25.34% <0.00%> (-0.02%) ⬇️
python 92.32% <90.00%> (-0.01%) ⬇️
rust 61.47% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@ctb

This comment was marked as outdated.

@ctb

This comment was marked as outdated.

@ctb

This comment was marked as outdated.

@ctb

This comment was marked as outdated.

@ctb

This comment was marked as outdated.

@ctb

This comment was marked as outdated.

@ctb
Copy link
Contributor Author

ctb commented Mar 10, 2024

hi @sourmash-bio/devs any thoughts on this approach? It feels not-wrong to me... but curious about possible fine tuning!

ctb added a commit that referenced this pull request Apr 12, 2024
This PR refactors code to eliminate any internal dependencies on the
`compute` command or codebase, in preparation for removing `sourmash
compute` in v5.0, per
#1286.

Specifically, this PR:
* shifts common sketching code from `src/sourmash/command_compute.py` to
`src/sourmash/command_sketch.py`;
* refactors three tests that were still using `sourmash compute` to use
`sourmash sketch` instead.

No functionality is altered or adjusted in this PR; it's all just code
refactoring.

The next step for #1286 would maybe be adjust the code and the tests to
respect the `--v4` and `--v5` flags (as used in
#3072 /
#3074). The actual compute
code and command wouldn't be removed until after a 5.0 release, I think.
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.

change default sig check and sig collect behavior to use --relpath for v5
1 participant