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

Miscellaneous snakemake cleanup #115

Open
skoren opened this issue Nov 25, 2022 · 1 comment
Open

Miscellaneous snakemake cleanup #115

skoren opened this issue Nov 25, 2022 · 1 comment
Assignees

Comments

@skoren
Copy link
Member

skoren commented Nov 25, 2022

  • use extension smk instead of sm for syntax highlights on GitHub
  • check the new feature that supports using existing bash scripts rather than inlining them in the smk files for cleaner smk files
  • consider using https://github.com/snakemake/snakefmt to standardize formatting
@brianwalenz
Copy link
Member

The script feature is described in snakemake/snakemake#1821 from Aug 22 and appears in release 7.14.0 from Aug 27. It requires bash, while verkko is happy with generic sh. It allows you to access the rule directives (input:, output:, etc) directly from the script. This would let us move the inlined shell scripts out of the Snakefiles and that could reduce the amount of escaping necessary. This would NOT let us stop generating scripts to run the task since the (external) script is useless without the snamemake variables passed to it.

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

2 participants