Skip to content

Integration of non-PyPi/conda-managed codes #346

Answered by dfm
matiscke asked this question in Q&A
Discussion options

You must be logged in to vote

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

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 Snakefile. This might be something like (note: I haven't actually tried this...):

rule install_tool:
    output:
        "installed.flag"
    conda:
        "environment.yml"
    shell:
        # ... install your tool using bash commands
        touch installed.flag

And then add installed.flag as an input dep…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@matiscke
Comment options

Answer selected by matiscke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants