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 pipeline management system. Snk allows you to install Snakemake pipelines as Command Line Interfaces (CLIs). Using a pipeline as a CLI increases its interoperability and allows complex pipelines to be used as modular components in a larger system. Snk, using python magic, will dynamic genrate the pipeline CLI using the pipeline configuration file.

Installation

pip install snk

Basic Use

Install a pipeline as a CLI

Install the dna-seq-gatk-variant-calling pipeline (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

variant-calling --help
main cli

View run options

variant-calling run -h
run cli

Create a DAG

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

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

Configure

Snk will dynamically generate config options for the CLI. For example if your 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 pipeline 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 

how it works

When installing a pipeline snk will

  • create directory $PYTHON_BIN_DIR/../snk/pipelines/PIPELINE
  • install the pipeline into this directory
  • expose CLI at $PYTHON_BIN_DIR that point to pipeline directory in snk/pipelines/PIPELINE/bin
  • As long as $PYTHON_BIN_DIR is on your PATH, you can now invoke the pipeline globally

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

Uploaded Source

Built Distribution

snk-0.6.9-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for snk-0.6.9.tar.gz
Algorithm Hash digest
SHA256 8a3fbfe456a2a88a29dcd36673575f82c87c24a596e17c97b7cbe75bc6080c64
MD5 098074040edfb2e366ce7a53501e75be
BLAKE2b-256 698fbd5d1d8a19a988e91e920b165a268176a788a6c11f298a95a073b02453cf

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for snk-0.6.9-py3-none-any.whl
Algorithm Hash digest
SHA256 ea2f22c73017c9468ddbc92d95a10eaaf2b3f80b4919fddec1c921f86d8e8dd1
MD5 1ea0d343ebf11338432c70300d173d42
BLAKE2b-256 db9d335cbc923ae1ae5a7679d0dffe3e96c336565896223bd8c2a3a42c9b06e2

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