Skip to main content

No project description provided

Project description

Snk

PyPI - Version PyPI - Python Version write-the - docs Hits


Documentation: https://snk.wytamma.com

Source Code: https://github.com/Wytamma/snk


Snk (pronounced snek) is a Snakemake workflow management system. Snk allows you to install Snakemake workflows as dynamically generated Command Line Interfaces (via snk-cli). Using a workflow as a CLI increases its interoperability and allows complex workflows to be used as modular components in a larger system.

Installation

pip install snk

Basic Use

Install a workflow as a CLI

The snk install command can be use to install Snakemake workflows as CLIs. Snk can install Snakemake workflows from GitHub repos or local paths. An index of publicly available Snakemake workflows can be found on the snakemake workflow catalog.

snk install wytamma/snk-basic-pipeline

The snk install command is flexible and can be used to install diverse workflows. For example, the dna-seq-gatk-variant-calling workflow (v2.1.1) as variant-calling with Snakemake v8.10.8 and pandas dependency.

snk install \
  snakemake-workflows/dna-seq-gatk-variant-calling \
  --name variant-calling \
  --snakemake 8.10.8 \
  -d pandas \
  -t v2.1.1

Successfully installed variant-calling (v2.1.1)!

Inspect the CLI

Snk will automatically create a fully featured CLI for the Snakemake workflow using snk-cli.

[!note] For more details on the CLI created by snk read the snk-cli docs

variant-calling --help
cli help

View run options

Workflow configuration options are automatically generated from the snakemake config file.

variant-calling run --help
run cli help

Create a DAG

Here we use the .test resources included in the workflow to create the DAG.

variant-calling run -r .test/config -r .test/data --dag dag.pdf
run cli help

Configure

Snk will dynamically generate config options for the CLI. For example if the config.yaml file has the option samples: config/samples.tsv you can set this option with the --samples flag.

variant-calling run --samples new.tsv

You can also configure the workflow using a config file.

variant-calling config --pretty # print the config 
variant-calling config > config.yml # save the config 
variant-calling run --config config.yml # run with config 

Manage Installed Workflows

You can list installed workflows with snk list and uninstall them with snk uninstall.

snk list
Workflow Version
variant-calling v2.1.1
snk uninstall variant-calling

Successfully uninstalled variant-calling!

Documentation

Read the documentation for more information.

License

snk is distributed under the terms of the MIT license.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snk-0.30.0.tar.gz (58.4 kB view details)

Uploaded Source

Built Distribution

snk-0.30.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file snk-0.30.0.tar.gz.

File metadata

  • Download URL: snk-0.30.0.tar.gz
  • Upload date:
  • Size: 58.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for snk-0.30.0.tar.gz
Algorithm Hash digest
SHA256 f4123a0242ee2b99eea7977ee846e99333c950a454599b411031f56e8d600196
MD5 b22d731bc2d5041c39fcf3f50fb20184
BLAKE2b-256 209f403e8a5228013ea7aa0e8a185b41f7bf41afed67d516d49f60af50bff78b

See more details on using hashes here.

Provenance

File details

Details for the file snk-0.30.0-py3-none-any.whl.

File metadata

  • Download URL: snk-0.30.0-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for snk-0.30.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b83d091d77a217611d077fbfcb72da66ad46761cefd7024b0bed9f4ce7c33a3f
MD5 ddb5fbfae0e0af5746e0f588eb0e0b06
BLAKE2b-256 b4695f0b6e5b0103c2d321591090e8b8e597d1d4348196d13015cdbf7265c2af

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page