-
I'm writing an article whose results and figures rely on a github-hosted python tool that is currently not managed via PyPi or conda. What is the best way to integrate it in my showyourwork project? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@matiscke — My usual approach to this would be to install the tool using pip (which can directly install from GitHub) by adding it to your dependencies:
- ...
- pip
- pip:
- git+https://github.com/showyourwork/showyourwork.git@main If you can't use pip to install the tool, we could probably hack something with snakemake by adding custom rules to your rule install_tool:
output:
"installed.flag"
conda:
"environment.yml"
shell:
# ... install your tool using bash commands
touch installed.flag And then add |
Beta Was this translation helpful? Give feedback.
@matiscke — My usual approach to this would be to install the tool using pip (which can directly install from GitHub) by adding it to your
environment.yml
file:If you can't use pip to install the tool, we could probably hack something with snakemake by adding custom rules to your
Snakefile
. This might be something like (note: I haven't actually tried this...):And then add
installed.flag
as an input dep…