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 files for equirep #51972

Merged
merged 20 commits into from
Dec 10, 2024
Merged

add files for equirep #51972

merged 20 commits into from
Dec 10, 2024

Conversation

shaomingfu
Copy link
Contributor

Describe your pull request here


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 6, 2024

📝 Walkthrough
📝 Walkthrough

Walkthrough

This pull request introduces two new files related to the equirep package. The first file, build.sh, is a shell script located in the recipes/equirep directory that automates the configuration and build process. It begins with a shebang for Bash, sets the script to exit on errors, and prints each command before execution. The script executes the ./configure command followed by make to compile the program.

The second file, meta.yaml, defines the package's metadata and build configuration. It specifies the package name as "equirep" with a version of "1.0.0", includes the source URL and SHA-256 checksum for the package, and outlines build requirements, which consist of make and a C++ compiler. The file also includes a test command for the EquiRep executable, additional information about the project, supported platforms, and the recipe maintainer.

Possibly related PRs

  • recipe for pgrc #50973: The introduction of a build.sh script in the pgrc recipe is similar to the new build.sh script added in the main PR for equirep, as both scripts automate the build process for their respective projects.
  • add gfainject #51287: The addition of a build.sh script in the gfainject recipe parallels the new build.sh script in the equirep recipe, both serving to automate the build process.
  • Adding the devider recipe  #51365: The build.sh script added for the devider package is similar in purpose to the build.sh in the equirep recipe, as both facilitate the build process for their respective software.
  • add recipe for steamboat #51612: The build.sh script for the steamboat package shares a similar role with the build.sh in the equirep recipe, both designed to automate the build process.
  • Update meta-neuro version 1.0.0 #51826: The updates to the build.sh script for meta-neuro reflect a similar focus on build automation as seen in the build.sh for equirep, emphasizing the importance of script functionality in the build process.
  • adding RDEVAL #52070: The build.sh script introduced for the rdeval package serves the same purpose as the build.sh in the equirep recipe, both aimed at automating the build process for their respective projects.

Suggested labels

please review & merge

Suggested reviewers

  • bgruening

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

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

23-25: Enhance test coverage

The current test only verifies that the binary exists. Consider adding:

  • Help command test: EquiRep --help
  • Version test: EquiRep --version
  • Test with example data if available

33-38: Consider adding co-maintainers

Having multiple maintainers helps ensure long-term recipe maintenance. Consider adding co-maintainers, especially if there are other contributors to the EquiRep project.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between c575d95 and caf4a10.

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

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

(syntax)

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

12-15: LGTM! Good use of run_exports

The pin_subpackage configuration will help prevent ABI breakage in downstream dependencies.


1-6: 🛠️ Refactor suggestion

Ensure consistent package naming across the recipe

The package name is defined as lowercase "equirep" but the source URL and run_exports use "EquiRep". This inconsistency could cause issues. Consider using lowercase consistently throughout the recipe.

-{% set name = "equirep" %}
+{% set name = "EquiRep" %}

Likely invalid or redundant comment.

🧰 Tools
🪛 yamllint

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

(syntax)


8-10: Verify source availability and checksum

Please ensure that:

  1. The GitHub release URL is publicly accessible
  2. The SHA256 checksum matches the source tarball

Comment on lines 27 to 31
about:
home: "https://github.com/Shao-Group/EquiRep"
license: BSD-3-Clause
license_file: LICENSE
summary: "EquiRep is tool to identify tandem repeats."
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

Fix grammar in summary and clarify biological relevance

  1. The summary has a grammatical error: "is tool" should be "is a tool"
  2. Please expand the summary to clarify the biological relevance of tandem repeats analysis, as Bioconda is specifically for bioinformatics tools.
-  summary: "EquiRep is tool to identify tandem repeats."
+  summary: "A bioinformatics tool for identifying tandem repeats in genomic sequences."
📝 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/Shao-Group/EquiRep"
license: BSD-3-Clause
license_file: LICENSE
summary: "EquiRep is tool to identify tandem repeats."
about:
home: "https://github.com/Shao-Group/EquiRep"
license: BSD-3-Clause
license_file: LICENSE
summary: "A bioinformatics tool for identifying tandem repeats in genomic sequences."

Comment on lines 17 to 21
requirements:
build:
- make
- {{ compiler('c') }}
- {{ compiler('cxx') }}
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

Based on the analysis of the source code and build files, I can now provide a response regarding the runtime dependencies for EquiRep.

Add runtime dependencies for the compiled binary

The recipe needs the following runtime dependencies:

  • libgcc-ng - Core system library that the compiled C++ binary links against
  • libstdc++ - C++ standard library
  • zlib - Required for compression support (linked via -lz)
🔗 Analysis chain

Verify runtime dependencies

The recipe only specifies build requirements. Please verify if any runtime dependencies are needed, such as:

  • Core system libraries that the compiled binary links against
  • Any runtime dependencies mentioned in the project's documentation
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if there's any documentation about dependencies in the source
curl -sL "https://raw.githubusercontent.com/Shao-Group/EquiRep/main/README.md" | grep -i "depend\|require"

Length of output: 106


Script:

#!/bin/bash
# Let's check the source code for potential library dependencies

# Look for #include statements in source files
echo "=== Checking C/C++ includes ==="
fd -e cpp -e c -e h --exec rg -l "#include" {} \; | while read -r file; do
  echo "=== In $file ==="
  rg "#include" "$file"
done

# Check for shared library linkage in Makefile
echo -e "\n=== Checking Makefile for library linkage ==="
fd Makefile --exec cat {}

Length of output: 160681


Script:

#!/bin/bash
# Let's check for library dependencies in the source code and build files

# Look for library dependencies in source files
echo "=== Checking source files for library dependencies ==="
fd -e cpp -e c -e h --exec rg -l "^#include|^#pragma|LIBS|LDFLAGS" {} \; | while read -r file; do
  echo "=== In $file ==="
  rg "^#include|^#pragma|LIBS|LDFLAGS" "$file"
done

# Check for linker flags and library dependencies in build files
echo -e "\n=== Checking build files for library dependencies ==="
fd "CMakeLists.txt|Makefile|\.pro$" --exec rg -l "LIBS|LDFLAGS|target_link_libraries|find_package" {} \; | while read -r file; do
  echo "=== In $file ==="
  rg "LIBS|LDFLAGS|target_link_libraries|find_package" "$file"
done

Length of output: 21348

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

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between caf4a10 and 6f1f654.

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

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

(syntax)

🔇 Additional comments (1)
recipes/equirep/build.sh (1)

1-6: Consider adding build verification and documentation.

As this is a Bioconda package:

  1. Consider adding a basic test after installation to verify the build:
    # Add after make install
    $PREFIX/bin/EquiRep --version || true
  2. Add a comment block at the top of the script documenting build requirements and any special considerations.

Let's verify if this package follows Bioconda's biological software requirement:

Comment on lines 5 to 6
./configure
make
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

Complete the build and installation process.

The current build commands are insufficient for proper Conda package creation:

  1. Configure needs to specify installation prefix
  2. Make should utilize parallel builds
  3. Missing installation step

Apply these changes:

-./configure
-make 
+./configure --prefix="${PREFIX}"
+make -j${CPU_COUNT}
+make install
📝 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
./configure
make
./configure --prefix="${PREFIX}"
make -j${CPU_COUNT}
make install

Comment on lines +1 to +3
#!/bin/bash

set -xe
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 required Conda build environment setup.

The build script needs to incorporate Conda-specific environment variables and error handling:

Apply these changes:

 #!/bin/bash
 
-set -xe
+set -euo pipefail
+
+# Conda build environment setup
+export CFLAGS="${CFLAGS} -I${PREFIX}/include"
+export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib"
+export CPATH="${PREFIX}/include"
+export LIBRARY_PATH="${PREFIX}/lib"
📝 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
#!/bin/bash
set -xe
#!/bin/bash
set -euo pipefail
# Conda build environment setup
export CFLAGS="${CFLAGS} -I${PREFIX}/include"
export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib"
export CPATH="${PREFIX}/include"
export LIBRARY_PATH="${PREFIX}/lib"

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/equirep/meta.yaml (2)

16-17: Remove extra blank line

There's an unnecessary blank line after the build section.

  run_exports:
    - {{ pin_subpackage('equirep', max_pin="x") }}

-

requirements:

31-31: Fix grammar in summary and enhance description

The summary contains a grammatical error ("is tool") and could be more descriptive.

-  summary: "EquiRep is tool to identify tandem repeats."
+  summary: "EquiRep is a tool for identifying tandem repeats in genomic sequences."
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 6f1f654 and e8b5fb7.

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

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

(syntax)

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

33-38: LGTM!

The extra section correctly specifies additional platforms and maintainer information.


18-21: Consider adding host and run requirements sections

The recipe only specifies build requirements. Consider if any runtime dependencies are needed for the package to function correctly.

#!/bin/bash
# Check source code for potential runtime dependencies
curl -sL "https://github.com/Shao-Group/EquiRep/releases/download/v1.0.0/EquiRep-1.0.0.tar.gz" | \
  tar xz --to-stdout | \
  rg -i "include\s+[<\"].*[>\"]" | \
  sort -u

8-10: Verify source URL and checksum

Let's verify the release exists and the checksum is correct.

Comment on lines +23 to +25
test:
commands:
- EquiRep
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

Enhance test coverage

The current test only verifies that the executable runs. Consider adding:

  • Version check command (EquiRep --version)
  • Help command test (EquiRep --help)
  • Test with example data if available
test:
  commands:
    - EquiRep
+   - EquiRep --version
+   - EquiRep --help

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

@shaomingfu
Copy link
Contributor Author

@BiocondaBot please add label

@BiocondaBot BiocondaBot added the please review & merge set to ask for merge label Dec 10, 2024
@martin-g martin-g merged commit 368d125 into bioconda:master Dec 10, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
please review & merge set to ask for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants