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

Update Resistify #51675

Merged
merged 6 commits into from
Oct 28, 2024
Merged

Update Resistify #51675

merged 6 commits into from
Oct 28, 2024

Conversation

SwiftSeal
Copy link
Contributor

Updating Resistify to v0.5.0, switching source to GitHub as PyPI file size is now exceeded. Added additional dependencies and misc.


Please read the guidelines for Bioconda recipes before opening a pull request (PR).

General instructions

  • If this PR adds or updates a recipe, use "Add" or "Update" appropriately as the first word in its title.
  • New recipes not directly relevant to the biological sciences need to be submitted to the conda-forge channel instead of Bioconda.
  • PRs require reviews prior to being merged. Once your PR is passing tests and ready to be merged, please issue the @BiocondaBot please add label command.
  • Please post questions on Gitter or ping @bioconda/core in a comment.

Instructions for avoiding API, ABI, and CLI breakage issues

Conda is able to record and lock (a.k.a. pin) dependency versions used at build time of other recipes.
This way, one can avoid that expectations of a downstream recipe with regards to API, ABI, or CLI are violated by later changes in the recipe.
If not already present in the meta.yaml, make sure to specify run_exports (see here for the rationale and comprehensive explanation).
Add a run_exports section like this:

build:
  run_exports:
    - ...

with ... being one of:

Case run_exports statement
semantic versioning {{ pin_subpackage("myrecipe", max_pin="x") }}
semantic versioning (0.x.x) {{ pin_subpackage("myrecipe", max_pin="x.x") }}
known breakage in minor versions {{ pin_subpackage("myrecipe", max_pin="x.x") }} (in such a case, please add a note that shortly mentions your evidence for that)
known breakage in patch versions {{ pin_subpackage("myrecipe", max_pin="x.x.x") }} (in such a case, please add a note that shortly mentions your evidence for that)
calendar versioning {{ pin_subpackage("myrecipe", max_pin=None) }}

while replacing "myrecipe" with either name if a name|lower variable is defined in your recipe or with the lowercase name of the package in quotes.

Bot commands for PR management

Please use the following BiocondaBot commands:

Everyone has access to the following BiocondaBot commands, which can be given in a comment:

@BiocondaBot please update Merge the master branch into a PR.
@BiocondaBot please add label Add the please review & merge label.
@BiocondaBot please fetch artifacts Post links to CI-built packages/containers.
You can use this to test packages locally.

Note that the @BiocondaBot please merge command is now depreciated. Please just squash and merge instead.

Also, the bot watches for comments from non-members that include @bioconda/<team> and will automatically re-post them to notify the addressed <team>.

Copy link
Contributor

coderabbitai bot commented Oct 25, 2024

📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough

Walkthrough

The pull request introduces several modifications to the meta.yaml file for the resistify package. The version has been updated from "0.4.0" to "0.5.0", and a new SHA256 checksum has been added. The source URL has changed from a PyPI link to a GitHub repository link. The Python version constraint has been refined to indicate compatibility with Python 3.9 but not 3.10. The numpy dependency has been removed, while new dependencies such as cython, pytorch, torchvision, torchaudio, fair-esm, and transformers==4.31.0 have been introduced. The scikit-learn dependency remains but is now specified with a version constraint of ==0.24.2. Additional metadata in the about section includes a new documentation URL, a reference to a license file, and an expanded description detailing the package's functionality as a tool for identifying disease resistance genes in plant genomes.

Possibly related PRs

  • Update resistify to 0.4.0 #51372: This PR updates the meta.yaml file for the resistify package, which is directly related to the main PR that also modifies the meta.yaml for the same package, focusing on versioning and dependencies.

Suggested labels

please review & merge, new version

Suggested reviewers

  • adamhospital
  • gbayarri
  • mencian

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Outside diff range and nitpick comments (2)
recipes/resistify/meta.yaml (2)

50-58: Fix trailing whitespace issues.

The description and metadata additions look good, but there are trailing spaces on lines 35, 36, and 58 that should be removed.

-    - pytorch 
-    - torchvision 
+    - pytorch
+    - torchvision
     ...
-  
+
🧰 Tools
🪛 yamllint

[error] 58-58: trailing spaces

(trailing-spaces)


Based on the search results, I can now generate the final response since I have sufficient information about PyTorch and ML framework dependencies in the codebase.

The noarch: python setting should be removed due to platform-specific dependencies

The package includes PyTorch and other ML frameworks that have platform-specific optimizations and dependencies:

  • The package directly depends on PyTorch, torchvision, and torchaudio which have platform-specific builds
  • The package also depends on cpuonly which is inherently platform-specific
  • Other packages in the codebase with similar PyTorch dependencies (like vamb, ggcaller, etc.) are not using noarch: python

The noarch: python setting is not appropriate when packages have platform-specific dependencies, as it assumes the package is platform-independent. This should be changed to ensure proper platform-specific builds are created.

🔗 Analysis chain

Line range hint 14-21: Verify if noarch: python is still appropriate.

Given the addition of PyTorch and other ML frameworks as dependencies, please verify that the package remains platform-independent. Some ML operations might have platform-specific optimizations or requirements.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if there are any platform-specific files or build requirements
rg -l "platform|architecture|cuda|gpu" 

Length of output: 26985

🧰 Tools
🪛 yamllint

[error] 1-1: syntax error: found character '%' that cannot start any token

(syntax)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between d792d8e and 1e52ef4.

📒 Files selected for processing (1)
  • recipes/resistify/meta.yaml (3 hunks)
🧰 Additional context used
🪛 yamllint
recipes/resistify/meta.yaml

[error] 35-35: trailing spaces

(trailing-spaces)


[error] 36-36: trailing spaces

(trailing-spaces)


[error] 58-58: trailing spaces

(trailing-spaces)

🔇 Additional comments (3)
recipes/resistify/meta.yaml (3)

2-3: LGTM: Version update and checksum look correct.

The version bump to 0.5.0 and its corresponding SHA256 checksum are properly configured.


10-11: LGTM: Source URL change is appropriate.

The switch to GitHub source with versioned tags is a good practice, especially given the PyPI file size limitations mentioned in the PR objectives.


34-39: Review ML framework version constraints.

The PyTorch ecosystem components (pytorch, torchvision, torchaudio) should have consistent version constraints. Additionally, verify compatibility between:

  • PyTorch and transformers 4.31.0
  • fair-esm and its PyTorch requirements
#!/bin/bash
# Check for any existing version constraints or compatibility requirements
rg -A 5 "torch|transformers|fair-esm" 
🧰 Tools
🪛 yamllint

[error] 35-35: trailing spaces

(trailing-spaces)


[error] 36-36: trailing spaces

(trailing-spaces)

@@ -21,16 +22,22 @@ build:
requirements:
host:
- pip
- python >=3.9
- python
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Consider maintaining Python version constraint.

Removing the Python >=3.9 constraint might lead to compatibility issues, especially with the ML frameworks added as dependencies. Consider keeping version constraints to ensure compatibility.

-    python
+    python >=3.9

Also applies to: 28-28

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (1)
recipes/resistify/meta.yaml (1)

50-58: Fix trailing space in description section.

The metadata additions (doc_url, license_file, and description) are great improvements. However, there's a trailing space issue to fix:

    genes in plant genomes.
-  
+
🧰 Tools
🪛 yamllint

[error] 58-58: trailing spaces

(trailing-spaces)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 1e52ef4 and ff00ebd.

📒 Files selected for processing (1)
  • recipes/resistify/meta.yaml (3 hunks)
🧰 Additional context used
🪛 yamllint
recipes/resistify/meta.yaml

[error] 35-35: trailing spaces

(trailing-spaces)


[error] 36-36: trailing spaces

(trailing-spaces)


[error] 58-58: trailing spaces

(trailing-spaces)

🔇 Additional comments (5)
recipes/resistify/meta.yaml (5)

2-3: LGTM: Version update and checksum look correct.

The version update to 0.5.0 and the corresponding SHA256 checksum are properly configured.


Line range hint 21-22: LGTM: Appropriate pinning strategy.

The run_exports configuration with max_pin="x.x" is well-suited for managing potential API/ABI changes.

🧰 Tools
🪛 yamllint

[error] 35-35: trailing spaces

(trailing-spaces)


[error] 36-36: trailing spaces

(trailing-spaces)


25-25: Previous Python version constraint comment still applies.

The concern about removing Python version constraints raised in the previous review remains valid.

Also applies to: 28-28


34-40: ⚠️ Potential issue

Consider version constraints for ML dependencies.

The ML dependencies (pytorch, torchvision, torchaudio) should have version constraints to ensure compatibility, especially since transformers is pinned to 4.31.0.

#!/bin/bash
# Check if there are any version constraints in other recipes using these dependencies
rg -l 'pytorch.*[0-9]' recipes/
rg -l 'transformers.*[0-9]' recipes/

Also, fix the trailing spaces in the YAML file:

-    pytorch 
-    torchvision 
-    torchaudio 
+    pytorch
+    torchvision
+    torchaudio
🧰 Tools
🪛 yamllint

[error] 35-35: trailing spaces

(trailing-spaces)


[error] 36-36: trailing spaces

(trailing-spaces)


10-11: Verify GitHub source URL accessibility.

The switch from PyPI to GitHub source is correctly configured, but let's verify the URL accessibility.

✅ Verification successful

The previous script execution seems to have been overridden with a different search. Let me try to verify the GitHub URL accessibility again.


GitHub source URL is properly configured and accessible

The GitHub repository and release URL are both accessible:

  • Repository exists at github.com/SwiftSeal/resistify (HTTP 200)
  • Release archive URL properly redirects to codeload.github.com (HTTP 302)
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Verify that the GitHub release tag exists and is accessible
gh release view v0.5.0 --repo SwiftSeal/resistify

Length of output: 1053


Script:

#!/bin/bash
# Verify that the GitHub release tag exists and is accessible
curl -I "https://github.com/SwiftSeal/resistify/archive/refs/tags/v0.5.0.tar.gz"

# Also check the repository itself
curl -I "https://github.com/SwiftSeal/resistify"

Length of output: 9186

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Outside diff range and nitpick comments (1)
recipes/resistify/meta.yaml (1)

29-31: Consider relaxing strict version pins.

The strict version pins (scikit-learn==0.24.2, transformers==4.31.0) might be unnecessarily restrictive. Consider using compatible release specifiers (e.g., >=0.24.2,<0.25.0) unless these specific versions are absolutely required.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between ff00ebd and 6823b9b.

📒 Files selected for processing (1)
  • recipes/resistify/meta.yaml (3 hunks)
🧰 Additional context used
🪛 yamllint
recipes/resistify/meta.yaml

[error] 37-37: trailing spaces

(trailing-spaces)


[error] 38-38: trailing spaces

(trailing-spaces)


[error] 59-59: trailing spaces

(trailing-spaces)

🔇 Additional comments (5)
recipes/resistify/meta.yaml (5)

2-3: LGTM: Version and checksum update.

The version bump and new SHA256 checksum are properly configured.


10-11: LGTM: Source URL update.

The switch to GitHub source is appropriate given the PyPI file size limitations mentioned in the PR objectives.


Line range hint 20-21: LGTM: Proper run_exports configuration.

The pin_subpackage configuration will help manage API/ABI compatibility for downstream dependencies.

🧰 Tools
🪛 yamllint

[error] 1-1: syntax error: found character '%' that cannot start any token

(syntax)


51-58: LGTM: Improved metadata documentation.

The addition of documentation URL, license file, and detailed description improves package metadata quality.


36-41: Verify ML framework version compatibility.

The addition of PyTorch ecosystem (pytorch, torchvision, torchaudio) along with transformers and fair-esm requires careful version alignment. Please verify:

  1. The compatibility between PyTorch and transformers 4.31.0
  2. The minimum required CUDA version if GPU support is needed
✅ Verification successful

Let me gather more information about transformers version compatibility.


PyTorch and transformers compatibility looks acceptable

The transformers version 4.31.0 is compatible with recent PyTorch versions, and since no specific PyTorch version is pinned in the recipe, conda will resolve to a compatible version. The absence of explicit CUDA requirements suggests CPU-only usage, which simplifies the dependency resolution.

Key observations:

  • Other recipes in the repository use various PyTorch versions (1.2.0 to 1.13.1) for different purposes
  • Not pinning PyTorch version here provides flexibility while ensuring compatibility through conda's dependency resolver
  • No CUDA requirements specified, indicating CPU-only usage
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if there are any version constraints for PyTorch in the repository
rg -A 2 'pytorch.*==' 
rg -A 2 'torch.*==' 

Length of output: 1739


Script:

#!/bin/bash
# Check if there are any version constraints for transformers and related packages
rg -A 2 'transformers.*==' 
rg -A 2 'fair-esm.*==' 

# Check if there are any CUDA requirements specified
rg -A 2 'cuda' recipes/resistify/

Length of output: 220

🧰 Tools
🪛 yamllint

[error] 37-37: trailing spaces

(trailing-spaces)


[error] 38-38: trailing spaces

(trailing-spaces)

Comment on lines 37 to 38
- torchvision
- torchaudio
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Fix trailing whitespace.

Remove trailing spaces from the following lines:

  • Line 37: pytorch
  • Line 38: torchvision
  • Line 59: Empty line with spaces

Also applies to: 59-59

🧰 Tools
🪛 yamllint

[error] 37-37: trailing spaces

(trailing-spaces)


[error] 38-38: trailing spaces

(trailing-spaces)

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 6823b9b and d717879.

📒 Files selected for processing (1)
  • recipes/resistify/meta.yaml (3 hunks)
🧰 Additional context used
🪛 yamllint
recipes/resistify/meta.yaml

[error] 59-59: trailing spaces

(trailing-spaces)

🔇 Additional comments (6)
recipes/resistify/meta.yaml (6)

2-3: LGTM: Version update and checksum look correct.

The version bump and SHA256 checksum are properly formatted.


Line range hint 20-21: LGTM: Proper version pinning with run_exports.

The addition of run_exports with appropriate version pinning helps manage API/ABI compatibility, which is a recommended practice in Bioconda.

🧰 Tools
🪛 yamllint

[error] 1-1: syntax error: found character '%' that cannot start any token

(syntax)


51-58: LGTM: Complete metadata information.

The added documentation, license information, and description provide clear and complete metadata for the package.


36-41: Verify ML framework compatibility.

The addition of PyTorch ecosystem and transformer libraries significantly increases the dependency footprint. Please ensure:

  1. All version combinations are tested and compatible
  2. The package size remains manageable for conda distribution
#!/bin/bash
# Check other bioconda packages for similar dependency patterns
rg "pytorch.*torchvision.*transformers" -A 5 -B 5

10-11: Verify GitHub release availability.

The switch from PyPI to GitHub source is appropriate for handling large package files.

#!/bin/bash
# Verify that the GitHub release exists and is accessible
gh release view "v0.5.0" --repo "SwiftSeal/resistify" || echo "Release not found"

25-25: Consider relaxing numpy version constraint.

While specific version pins for scikit-learn and Python are justified due to ML framework compatibility, the numpy version constraint <1.23.0 seems overly restrictive and might cause dependency conflicts with other packages.

Also applies to: 29-31

Resistify is a nucleotide-binding leucine rich repeat (NLR) annotation
program, for the purpose of identifying putative disease resistance
genes in plant genomes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Fix trailing whitespace.

Remove the trailing whitespace on line 59.

-  
+
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
🧰 Tools
🪛 yamllint

[error] 59-59: trailing spaces

(trailing-spaces)

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.

3 participants