Skip to content

new_package_creation: use pixi instead of conda#307

Merged
wwood merged 2 commits into
mainfrom
new-package-creation-pixi
Jul 3, 2026
Merged

new_package_creation: use pixi instead of conda#307
wwood merged 2 commits into
mainfrom
new-package-creation-pixi

Conversation

@wwood

@wwood wwood commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Switch the extras/new_package_creation Snakefile to use pixi rather than conda.

Changes

  • Snakefile: removed all conda: "envs/singlem.yml" directives and prefixed every shell command with pixi run -e singlem. The hardcoded ~/git/singlem/bin/singlem ... invocations are replaced with pixi run -e singlem singlem ..., and the stale "unreleased fix post 0.16.0" comments are dropped.
  • pixi.toml (new): defines a single singlem environment pinned to the newest singlem.
  • envs/singlem.yml: removed (now unreferenced).

The verify_tested_metapackage rule uses a run: block (Snakemake's own Python), had no conda env, and is unchanged.

Note: pixi run -e singlem resolves the pixi project from the working directory, so Snakemake should be invoked from extras/new_package_creation/ where the new pixi.toml lives.

🤖 Generated with Claude Code

Switch the Snakefile to run each rule via `pixi run -e singlem` rather
than per-rule conda envs, and replace the hardcoded ~/git/singlem
invocations with `pixi run -e singlem singlem`. Add a pixi.toml defining
a single `singlem` environment pinned to the newest singlem, and remove
the now-unused envs/singlem.yml conda env.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 98a25dd44a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread extras/new_package_creation/Snakefile Outdated
"envs/singlem.yml"
shell:
"graftM create --min_aligned_percent 0 --force --sequences {params.aa_sequences_file} {params.hmm_arg} --output {output.gpkg} --threads {threads} --no_tree --taxonomy {params.taxonomy_file} 2> {log}"
"pixi run -e singlem graftM create --min_aligned_percent 0 --force --sequences {params.aa_sequences_file} {params.hmm_arg} --output {output.gpkg} --threads {threads} --no_tree --taxonomy {params.taxonomy_file} 2> {log}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Point pixi at this workflow’s manifest

When this Snakefile is launched from any directory other than extras/new_package_creation—for example snakemake -s extras/new_package_creation/Snakefile from the repo root—these pixi run -e singlem commands do not use the new extras/new_package_creation/pixi.toml. Pixi manifest discovery searches the current directory and then parent directories, so from the repo root it picks the repo-level pixi.toml, which has no singlem environment, and from unrelated work dirs it misses this manifest entirely. Pass --manifest-path for this workflow’s pixi.toml or otherwise anchor the command to the Snakefile directory so the rules remain runnable outside that exact cwd.

Useful? React with 👍 / 👎.

Use `pixi run --manifest-path <Snakefile dir>/pixi.toml -e singlem` (via
workflow.basedir) so the rules use this workflow's own pixi.toml
regardless of the invocation cwd, rather than relying on pixi's
parent-directory manifest discovery.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@wwood

wwood commented Jul 2, 2026

Copy link
Copy Markdown
Owner Author

Addressed the Codex review comment in 9b9b957: rules now run pixi run --manifest-path <Snakefile dir>/pixi.toml -e singlem ... (anchored via workflow.basedir), so they use this workflow's own pixi.toml regardless of the invocation cwd.

@wwood wwood merged commit f26663f into main Jul 3, 2026
2 checks passed
@wwood wwood deleted the new-package-creation-pixi branch July 3, 2026 03:00
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.

1 participant