Skip to content

Conversation

@clelange
Copy link
Contributor

@clelange clelange commented Mar 10, 2025

…with Apple Silicon

Fixes #14

Summary by CodeRabbit

  • Chores
    • Updated dependency version requirements for bcftools, samtools, and bwa to support a broader range of releases, ensuring improved compatibility and smoother future updates.
    • Changed environment management commands from mamba to conda in the Dockerfile for consistency.

@coderabbitai
Copy link

coderabbitai bot commented Mar 10, 2025

📝 Walkthrough

Walkthrough

The pull request modifies the environment.yaml file to change the version specifications for the dependencies bcftools, samtools, and bwa. The fixed version constraints have been updated to allow for more flexibility, permitting any version greater than or equal to the specified minimum for bcftools and samtools, and any compatible version for bwa. Additionally, the Dockerfile has been updated to replace mamba with conda for environment management commands.

Changes

File Change Summary
environment.yaml Updated dependency version specifications: bcftools from 1.19 to >=1.19; samtools from 1.19.2 to >=1.19; bwa from 0.7.17 to ~=0.7.17.
Dockerfile Replaced mamba commands with conda for creating and updating the environment.

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2a9ef4a and fc39420.

📒 Files selected for processing (1)
  • Dockerfile (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: test
🔇 Additional comments (1)
Dockerfile (1)

3-4: Switch to conda for environment management

The updated commands replacing mamba with conda in lines 3-4 align well with the PR objective of enhancing compatibility with Apple Silicon. Using conda create ... --clone snakemake and conda env update is appropriate in this context. Please ensure that the conda channels and environment configurations remain optimal for performance and that the --clone option replicates the expected base environment correctly.


🪧 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 generate docstrings to generate docstrings for this 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.

@clelange
Copy link
Contributor Author

On Apple Silicon, this then yields the following packages:

❯ pixi list --explicit
Package            Version  Build            Size       Kind   Source
bcftools           1.21     h48e1df0_1       875.7 KiB  conda  https://conda.anaconda.org/bioconda/
bwa                0.7.18   hba9b596_2       202.7 KiB  conda  https://conda.anaconda.org/bioconda/
graphviz           12.2.1   hff64154_1       2.1 MiB    conda  https://conda.anaconda.org/conda-forge/
jinja2             3.1.6    pyhd8ed1ab_0     110.1 KiB  conda  https://conda.anaconda.org/conda-forge/
matplotlib         3.10.1   py312h1f38498_0  16.7 KiB   conda  https://conda.anaconda.org/conda-forge/
pygments           2.19.1   pyhd8ed1ab_0     867.8 KiB  conda  https://conda.anaconda.org/conda-forge/
pysam              0.22.0                    37.9 MiB   pypi   pysam-0.22.0-cp312-cp312-macosx_11_0_arm64.whl
samtools           1.21     h267f7b9_1       449.6 KiB  conda  https://conda.anaconda.org/bioconda/
snakemake-minimal  8.29.3   pyhdfd78af_0     821.3 KiB  conda  https://conda.anaconda.org/bioconda/

@clelange
Copy link
Contributor Author

The test failures are not due to this change, but due to mamba missing:

#8 [3/4] RUN mamba create -n snakemake-tutorial --clone snakemake;     mamba env update -n snakemake-tutorial -f environment.yaml;
#8 0.172 bash: line 1: mamba: command not found
#8 0.172 bash: line 1: mamba: command not found
#8 ERROR: process "/usr/local/bin/_dockerfile_shell.sh mamba create -n snakemake-tutorial --clone snakemake;     mamba env update -n snakemake-tutorial -f environment.yaml;" did not complete successfully: exit code: 127

@clelange
Copy link
Contributor Author

Once #17 is in, I can rebase.

@cmeesters cmeesters self-requested a review March 11, 2025 10:31
Copy link
Member

@cmeesters cmeesters left a comment

Choose a reason for hiding this comment

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

ok, trivial

@cmeesters cmeesters merged commit e2676d6 into snakemake:master Mar 11, 2025
2 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Mar 13, 2025
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.

Current package constraints too tight for Apple Silicon

2 participants