Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snakedeploy creates snakefile with broken path #55

Open
seankmartin opened this issue Feb 13, 2023 · 0 comments
Open

Snakedeploy creates snakefile with broken path #55

seankmartin opened this issue Feb 13, 2023 · 0 comments

Comments

@seankmartin
Copy link

  • snakedeploy version: 0.8.6
  • Python version: 3.10.4
  • Operating System: Windows 10

Description

I created a snake deploy for atn-sub-lfp-workflow, which I am in the progress of trying to finalise. For some reason, the generated Snakefile from the deploy has a path to a non-existant github file due to a \ rather than a /.

What I Did

Since my own repository is under development, I tried on another repository and got the same problem:

snakedeploy deploy-workflow https://github.com/snakemake-workflows/rna-seq-star-deseq2 . --tag v1.2.0
snakemake --list
WorkflowError in line 19 of D:\SnakeTest\OtherTest\workflow\Snakefile:
Failed to open source file https://github.com/snakemake-workflows/rna-seq-star-deseq2/raw/v1.2.0/workflow\Snakefile
HTTPError: 404 Client Error: Not Found for url: https://github.com/snakemake-workflows/rna-seq-star-deseq2/raw/v1.2.0/workflow%5CSnakefile
  File "D:\SnakeTest\OtherTest\workflow\Snakefile", line 19, in <module>
  File "E:\ProgramFiles\Mambaforge\envs\snakemake\lib\site-packages\retry\api.py", line 101, in retry_call
  File "E:\ProgramFiles\Mambaforge\envs\snakemake\lib\site-packages\retry\api.py", line 33, in __retry_internal

Generated snakefile:

from snakemake.utils import min_version

min_version("6.10.0")

configfile: "config/config.yaml"

# declare https://github.com/seankmartin/atn-sub-lfp-workflow as a module
module atn_sub_lfp_workflow:
    snakefile: 
        github("seankmartin/atn-sub-lfp-workflow", path="workflow/Snakefile", tag="23.02.0")
    config:
        config

# use all rules from https://github.com/seankmartin/atn-sub-lfp-workflow
use rule * from atn_sub_lfp_workflow

Changing the generated Snakefile to have path="workflow\Snakefile" over path="workflow/Snakefile" fixes the error.

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

No branches or pull requests

1 participant