-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Add pykofamsearch
#51537
Add pykofamsearch
#51537
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,48 @@ | ||||||||||||||||||||||||||||||
{% set name = "pykofamsearch" %} | ||||||||||||||||||||||||||||||
{% set version = "2024.10.20" %} | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
package: | ||||||||||||||||||||||||||||||
name: {{ name|lower }} | ||||||||||||||||||||||||||||||
version: {{ version }} | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
source: | ||||||||||||||||||||||||||||||
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/pykofamsearch-{{ version }}.tar.gz | ||||||||||||||||||||||||||||||
sha256: f9455f343095327bab331a35010867d5d60f67b13bd5c2344d012e6801e48fad | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
build: | ||||||||||||||||||||||||||||||
script: {{ PYTHON }} -m pip install . -vvv --no-deps --no-build-isolation --no-cache-dir | ||||||||||||||||||||||||||||||
number: 0 | ||||||||||||||||||||||||||||||
noarch: python | ||||||||||||||||||||||||||||||
entry_points: | ||||||||||||||||||||||||||||||
- pykofamsearch=pykofamsearch.pykofamsearch:main | ||||||||||||||||||||||||||||||
- reformat_enzymes=pykofamsearch.reformat_enzymes:main | ||||||||||||||||||||||||||||||
- reformat_pykofamsearch=pykofamsearch.reformat_pykofamsearch:main | ||||||||||||||||||||||||||||||
- serialize_kofam_models=pykofamsearch.serialize_kofam_models:main | ||||||||||||||||||||||||||||||
run_exports: | ||||||||||||||||||||||||||||||
- {{ pin_subpackage("pykofamsearch", max_pin=None) }} | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
requirements: | ||||||||||||||||||||||||||||||
host: | ||||||||||||||||||||||||||||||
- python | ||||||||||||||||||||||||||||||
- pip | ||||||||||||||||||||||||||||||
run: | ||||||||||||||||||||||||||||||
- python | ||||||||||||||||||||||||||||||
- pyhmmer >=0.10.12 | ||||||||||||||||||||||||||||||
- pandas >=2 | ||||||||||||||||||||||||||||||
- tqdm >=4 | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
test: | ||||||||||||||||||||||||||||||
commands: | ||||||||||||||||||||||||||||||
- pykofamsearch --help | ||||||||||||||||||||||||||||||
- reformat_enzymes --help | ||||||||||||||||||||||||||||||
- reformat_pykofamsearch --help | ||||||||||||||||||||||||||||||
- serialize_kofam_models --help | ||||||||||||||||||||||||||||||
- subset_serialized_models --helps | ||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Test commands look good, but there's a typo in the last command. The approach of testing the help output for each entry point is a good basic test. There's a typo in the last test command: - - subset_serialized_models --helps
+ - subset_serialized_models --help Please correct this to ensure all tests pass. 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
about: | ||||||||||||||||||||||||||||||
home: "https://github.com/jolespin/pykofamsearch" | ||||||||||||||||||||||||||||||
summary: "Fast implementation of HMMSEARCH optimized for high-memory systems using PyHmmer." | ||||||||||||||||||||||||||||||
license: MIT | ||||||||||||||||||||||||||||||
license_family: MIT | ||||||||||||||||||||||||||||||
license_file: LICENSE | ||||||||||||||||||||||||||||||
dev_url: "https://github.com/jolespin/pykofamsearch" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Consider revising the pinning strategy for
pykofamsearch
.The current
max_pin=None
allows any version ofpykofamsearch
to satisfy the dependency, which might be too permissive. Given the date-based versioning, it's advisable to implement a more restrictive pinning strategy to ensure compatibility and stability.🔗 Analysis chain
LGTM: Build section is well-defined, but consider reviewing the pinning strategy.
The build script, build number,
noarch
specification, and entry points are all correctly defined. Therun_exports
section is included, which is good for maintaining consistency across dependent packages.However, consider if
max_pin=None
is the desired pinning strategy for this package. This strategy means that any version ofpykofamsearch
will satisfy the dependency, which might be too permissive. You might want to use a more restrictive pinning strategy depending on your versioning scheme and backwards compatibility guarantees.To help decide on the appropriate pinning strategy, you can review the package's versioning history and compatibility guarantees. Here's a script to check the available versions:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 468
Script:
Length of output: 149