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

Add bubblegun recipe #51903

Merged
merged 5 commits into from
Nov 5, 2024
Merged

Add bubblegun recipe #51903

merged 5 commits into from
Nov 5, 2024

Conversation

fawaz-dabbaghieh
Copy link
Contributor

Adding BubbleGune for Bubbles and Superbubble detection in genome graphs in GFA format.


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 Nov 4, 2024

📝 Walkthrough
📝 Walkthrough

Walkthrough

The pull request introduces an updated meta.yaml file for the BubbleGun package, which specifies its metadata and build configuration. The package name is set to "BubbleGun" and the version is updated to "1.1.9". The source section includes the URL for the package's source code and a SHA256 checksum for integrity verification. The build section indicates that it is a noarch Python package and details the command to install the package using pip without dependencies. The requirements section outlines the dependencies needed for both the host and runtime environments, requiring Python version 3.6 or higher, along with pip and setuptools for the host. The test section includes a command to verify the installation by running the help command for BubbleGun. The about section provides additional information about the package, including its homepage, license details, a summary of its functionality related to detecting bubbles in GFA graphs, and links to documentation and the developer's URL.

Possibly related PRs

  • recipe for pgrc #50973: The meta.yaml file for the pgrc package also defines package metadata and build configuration, similar to the changes made in the meta.yaml for the BubbleGun package.
  • 2024.4 #50977: The update to the meta.yaml file for biobb_structure_checking includes changes to version and SHA256 checksum, which are similar types of modifications made in the BubbleGun meta.yaml.
  • Add patchify #51268: The meta.yaml for the patchify package includes similar structural elements, such as versioning and source URL definitions, akin to the changes in the BubbleGun package.
  • Add recipe for longcallr_nn #51355: The meta.yaml for longcallr_nn introduces a new package with a similar structure, including versioning and source URL, paralleling the updates in the BubbleGun meta.yaml.
  • [biobb_chemistry] update 5.0.0 #51435: The update to the meta.yaml for biobb_chemistry involves version increments and SHA256 checksum updates, which are consistent with the changes made in the BubbleGun package.
  • [biobb_cp2k] update 5.0.0 #51528: The meta.yaml for biobb_cp2k reflects similar updates in version and SHA256 checksum, akin to the modifications in the BubbleGun meta.yaml.
  • [biobb_dna] update 5.0.0 #51601: The changes in the meta.yaml for biobb_dna, including version updates and SHA256 checksum modifications, are comparable to those in the BubbleGun package.

Suggested labels

please review & merge


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: 4

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

8-11: Remove extra newline in source section.

The source section contains an unnecessary double newline which affects readability.

Apply this diff to fix the formatting:

source:
  url: "https://github.com/fawaz-dabbaghieh/bubble_gun/archive/refs/tags/v1.1.9.tar.gz"
  sha256: 005d61a1e5774dfec810e612c1b4c5ce6c8d15f80d131237590ef71f62704c94

-

28-30: Add import test.

While running the help command is good, it's recommended to also verify that the package can be imported correctly.

Add an import test:

test:
  commands:
    - BubbleGun -h
+  imports:
+    - bubble_gun
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 9f4b71f and 114ac12.

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

[error] 19-19: trailing spaces

(trailing-spaces)


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

(syntax)

Comment on lines 13 to 19
build:
number: 0
noarch: python
script: {{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv
run_exports:
- {{ pin_compatible('BubbleGun', max_pin="x") }}

Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Review build configuration issues.

  1. The run_exports section is typically used for compiled packages with ABI compatibility concerns. For a pure Python package, this section is unnecessary and might cause unexpected pinning behavior.
  2. There are trailing spaces on line 19.

Apply this diff to fix these issues:

build:
  number: 0
  noarch: python
  script: {{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv
-  run_exports:
-    - {{ pin_compatible('BubbleGun', max_pin="x") }}
-  
📝 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
build:
number: 0
noarch: python
script: {{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv
run_exports:
- {{ pin_compatible('BubbleGun', max_pin="x") }}
build:
number: 0
noarch: python
script: {{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv
🧰 Tools
🪛 yamllint

[error] 19-19: trailing spaces

(trailing-spaces)

Comment on lines 20 to 26
requirements:
host:
- python >=3.6
- pip
- setuptools
run:
- 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

Add Python version constraint to run requirements.

The host section requires Python >=3.6, but this constraint is missing in the run requirements. This could lead to installation issues with older Python versions.

Apply this diff to fix the requirements:

  run:
-    - python
+    - python >=3.6
📝 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
requirements:
host:
- python >=3.6
- pip
- setuptools
run:
- python
requirements:
host:
- python >=3.6
- pip
- setuptools
run:
- python >=3.6

Comment on lines 32 to 39
about:
home: "https://github.com/fawaz-dabbaghieh/bubble_gun"
license: MIT
license_family: MIT
license_file: LICENSE
summary: 'BubbleGun is a tool for detecting bubbles and superbubbles in GFA graphs, and reports them and their nested structures'
doc_url: "https://github.com/fawaz-dabbaghieh/bubble_gun/blob/master/README.md"
def_url: "https://github.com/fawaz-dabbaghieh"
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 incorrect metadata key name.

The key def_url should be dev_url according to the conda recipe specification.

Apply this diff to fix the key name:

  doc_url: "https://github.com/fawaz-dabbaghieh/bubble_gun/blob/master/README.md"
-  def_url: "https://github.com/fawaz-dabbaghieh"
+  dev_url: "https://github.com/fawaz-dabbaghieh"
📝 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
about:
home: "https://github.com/fawaz-dabbaghieh/bubble_gun"
license: MIT
license_family: MIT
license_file: LICENSE
summary: 'BubbleGun is a tool for detecting bubbles and superbubbles in GFA graphs, and reports them and their nested structures'
doc_url: "https://github.com/fawaz-dabbaghieh/bubble_gun/blob/master/README.md"
def_url: "https://github.com/fawaz-dabbaghieh"
about:
home: "https://github.com/fawaz-dabbaghieh/bubble_gun"
license: MIT
license_family: MIT
license_file: LICENSE
summary: 'BubbleGun is a tool for detecting bubbles and superbubbles in GFA graphs, and reports them and their nested structures'
doc_url: "https://github.com/fawaz-dabbaghieh/bubble_gun/blob/master/README.md"
dev_url: "https://github.com/fawaz-dabbaghieh"

Comment on lines 1 to 6
{% set name = "BubbleGun" %}
{% set version = "1.1.8" %}

package:
name: {{ name|lower }}
version: {{ version }}
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

Version mismatch between package metadata and source URL.

The package version is set to "1.1.8" but the source URL points to "v1.1.9". This inconsistency should be resolved to prevent potential installation issues.

Apply this diff to fix the version:

-{% set version = "1.1.8" %}
+{% set version = "1.1.9" %}

Committable suggestion skipped: line range outside the PR's diff.

🧰 Tools
🪛 yamllint

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

(syntax)

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/bubblegun/meta.yaml (1)

28-30: Consider adding more comprehensive tests.

While the basic help command test is good, consider adding more test commands to verify key functionality:

  • Version check command
  • Basic functionality test with a small example
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 114ac12 and 40696b8.

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

[error] 19-19: trailing spaces

(trailing-spaces)


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

(syntax)

🔇 Additional comments (4)
recipes/bubblegun/meta.yaml (4)

1-6: LGTM! Package metadata is well-defined.

The package name and version are properly configured using Jinja2 templating, with correct lowercasing applied.

🧰 Tools
🪛 yamllint

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

(syntax)


8-11: LGTM! Source configuration is properly defined.

The source URL and checksum are correctly specified, with version consistency maintained.


20-26: LGTM! Requirements are properly configured.

Python version constraints and dependencies are correctly specified for both host and run environments.


32-39: LGTM! Package metadata is complete and accurate.

The about section provides comprehensive information about the package, including correct license details and relevant URLs.

Comment on lines 1 to 39
{% set name = "BubbleGun" %}
{% set version = "1.1.9" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: "https://github.com/fawaz-dabbaghieh/bubble_gun/archive/refs/tags/v1.1.9.tar.gz"
sha256: 005d61a1e5774dfec810e612c1b4c5ce6c8d15f80d131237590ef71f62704c94


build:
number: 0
noarch: python
script: {{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv
run_exports:
- {{ pin_compatible('BubbleGun', max_pin="x") }}

requirements:
host:
- python >=3.6
- pip
- setuptools
run:
- python >=3.6

test:
commands:
- BubbleGun -h

about:
home: "https://github.com/fawaz-dabbaghieh/bubble_gun"
license: MIT
license_family: MIT
license_file: LICENSE
summary: 'BubbleGun is a tool for detecting bubbles and superbubbles in GFA graphs, and reports them and their nested structures'
doc_url: "https://github.com/fawaz-dabbaghieh/bubble_gun/blob/master/README.md"
dev_url: "https://github.com/fawaz-dabbaghieh"
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Codebase verification

Package name needs to be lowercase to avoid conflicts

The package name should be lowercase to follow Bioconda naming conventions and avoid potential conflicts. Currently, there are similar packages in the ecosystem:

  • bioconductor-bubbletree
  • scbubbletree
  • bubbletree

Please modify the package name in the recipe to use bubblegun (lowercase) consistently:

  • Change {% set name = "BubbleGun" %} to {% set name = "bubblegun" %}
  • Update the run_exports section to use lowercase: {{ pin_compatible('bubblegun', max_pin="x") }}
🔗 Analysis chain

Verify package name in bioconda-utils.

Since this is a Bioconda package, let's verify the package name doesn't conflict with existing packages.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check if package name exists in bioconda
rg -l "name:\s*bubblegun" --type yaml

Length of output: 39


Script:

#!/bin/bash
# Let's try a case-insensitive search and also check for the exact package name
rg -il "name:.*bubblegun" --type yaml
rg -il "name:.*BubbleGun" --type yaml

# Also check if there are any other recipes with similar names
fd -t f "meta.yaml" | xargs cat | grep -i "name.*bubble"

Length of output: 261

🧰 Tools
🪛 yamllint

[error] 19-19: trailing spaces

(trailing-spaces)


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

(syntax)

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/bubblegun/meta.yaml (1)

29-31: Consider adding more test commands.

While the basic help command test is good, consider adding more test commands to verify:

  1. Version output (BubbleGun --version)
  2. Basic functionality with a small example
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 40696b8 and 6394cbb.

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

[error] 20-20: trailing spaces

(trailing-spaces)


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

(syntax)

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

1-6: Use consistent lowercase package name.

For consistency with Bioconda naming conventions, the package name should be lowercase throughout the recipe. While name|lower filter correctly converts it in the package section, other references to the package name should also use lowercase.

🧰 Tools
🪛 yamllint

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

(syntax)


8-10: LGTM!

The source configuration is well-structured with proper version templating and includes SHA256 checksum for verification.


17-17: Consider enabling build isolation.

The --no-build-isolation flag is used in the pip install command. This can be risky as it might use packages from the environment instead of the specified dependencies. Consider removing this flag unless there's a specific reason for disabling build isolation.


18-20: Remove unnecessary run_exports section.

The run_exports section is typically used for compiled packages with ABI compatibility concerns. For a pure Python package:

  1. This section is unnecessary
  2. Contains trailing spaces
  3. Uses capitalized package name
🧰 Tools
🪛 yamllint

[error] 20-20: trailing spaces

(trailing-spaces)


21-27: LGTM!

The requirements are well-specified with consistent Python version constraints in both host and run sections.


33-40: LGTM!

The about section is comprehensive with all required metadata fields and proper version templating in documentation URLs.

@mencian mencian merged commit 0f4e2c7 into bioconda:master Nov 5, 2024
6 checks passed
@fawaz-dabbaghieh fawaz-dabbaghieh deleted the bubblegun branch November 5, 2024 11:50
This was referenced Nov 5, 2024
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