预安装 conda envs Snakemake
当尝试运行 Snakemake 时,我总是必须安装/下载 conda envs。
(snakemake) (ec2-user)$ bash run_snakemake.sh
Building DAG of jobs...
Creating conda environment ../envs/svg_env.yaml...
Downloading and installing remote packages.
有办法预装吗?我注意到 conda envs 安装在 .snakemake/
文件夹内。
When trying to run snakemake, I always have to install/download conda envs.
(snakemake) (ec2-user)$ bash run_snakemake.sh
Building DAG of jobs...
Creating conda environment ../envs/svg_env.yaml...
Downloading and installing remote packages.
Is there a way to preinstall? I notice that conda envs get installed inside .snakemake/
folder.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据 docs,运行此命令将创建环境:
相关引用:
As per docs, running this will create the envs:
Relevant quote:
@SultanOrazbayev 对于预安装有正确的答案,但根据您每次运行时重新安装的问题,我还想指出,默认情况下,snakemake 将其 .snakemake 目录放在工作目录中。如果您使用它多次运行工作流程,可能会导致环境重新安装。为了防止这种情况,您可以设置
singularity-prefix
和conda-prefix
选项。另外值得注意的是,虽然它被称为 conda-create-envs-only,但如果您使用 use-singularity 运行,它也会设置奇点图像。
@SultanOrazbayev has the right answer for preinstall, but based on your question of reinstalling every run, I also wanted to note that by default snakemake places its
.snakemake
dir in the working directory. If you are utilizing that to run your workflow multiple times, it could cause the environments to reinstall. To prevent that, you can set thesingularity-prefix
andconda-prefix
options.Also of note, while it is called
conda-create-envs-only
it will also set up singularity images if you run withuse-singularity
.