Skip to main content

No project description provided

Project description

SNK (Snek)

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 (CLIs). 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.

Install the dna-seq-gatk-variant-calling workflow (v2.1.1) as variant-calling.

snk install snakemake-workflows/dna-seq-gatk-variant-calling --name variant-calling -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.

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 fasta: null you can set this option with --fasta.

variant-calling run --fasta example.fa

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 

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.22.4.tar.gz (73.4 kB view details)

Uploaded Source

Built Distribution

snk-0.22.4-py3-none-any.whl (37.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for snk-0.22.4.tar.gz
Algorithm Hash digest
SHA256 0994df89d1c7d2c428a98c13f96ef0fdf281daa9918ba0cb7aafa64b2ee907ac
MD5 008701ad322444c6f502f77663c26c67
BLAKE2b-256 20c5ec7f9c6c59fa22c2fa58c4e15a97c002c3690d1f04e605ed3b9d50a95515

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for snk-0.22.4-py3-none-any.whl
Algorithm Hash digest
SHA256 84b94bde7e84561e7dad23f1dfbdde85ed3d7540042618b56256326a92fea932
MD5 0ee77b144177580aa8c94134963b3b4f
BLAKE2b-256 4f846d35c2ff6f8d306bda91fd668ce7cd622d1ee464dc8ceef38aebac3d0e46

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