Skip to main content

The Next Generation of Microbial Variant Calling with Snippy

Project description

Snippy-NG

CZI's Essential Open Source Software for Science PyPI - Version PyPI - Python Version Test Coverage Downloads Benchmark

🚨 Snippy-NG is under construction and should not replace Snippy 🚨

Find the Snippy-NG documentation at cpg.org.au/snippy-ng and follow our progress in the Snippy-NG Development Blog!

Table of Contents

Installation

snippy is available on PyPI and can be installed using pip (without external dependencies):

pip install snippy-nextgen

The complete snippy-ng environment (including most dependencies) can be installed using the snippy-ng installer script. This script will install the latest version of snippy-ng and all its dependencies.

curl -sSL https://cpg.org.au/snippy-ng/install.sh | bash -s -- --force

Examples

snippy-ng asm --ref tests/data/reference.gbk tests/data/wildtype.contigs.fa
snippy-ng short --ref tests/data/reference.gbk tests/data/mutant_R1.fastq.gz tests/data/mutant_R2.fastq.gz
export CLAIR3_MODELS=./clair3_models # try to find appropriate models in this directory
snippy-ng long --ref tests/data/JKD6159.fasta tests/data/JKD6159.fastq.gz
snippy-ng utils gather --json --ref tests/data/reference.gbk tests/data/{wildtype,mutant}* > samples.json 
snippy-ng multi samples.json --cpus 6 -o multi
snippy-ng tree --fast multi/core/core.095.aln -o multi/tree
snippy-ng utils report tree multi/tree/tree.snps.newick --metadata multi/snippy.vcf.summary.tsv -o multi/report

Development

To set up a development environment, clone the repository and install pixi and hatch. Pixi is used to manage external dependencies, and Hatch is used to manage the Python package development.

git clone git@github.com:centre-pathogen-genomics/snippy-ng.git && cd snippy-ng
# install pixi if not already installed
curl -fsSL https://pixi.sh/install.sh | bash
# install hatch if not already installed
pixi global install hatch

Activate the pixi environment and launch a hatch shell. This will install all dependencies and set up the development environment.

pixi shell
hatch shell
snippy-ng --help

Testing

Run the default fast test suite with:

pixi run test

Run the simulation-backed integration tests with:

pixi run -e integration test-integration

Simulated inputs are generated at test time and cached under .cache/integration-sim/. See docs/integration-tests.md for the scenario format and harness contract.

License

snippy-ng is distributed under the terms of the MIT license.

Project details


Download files

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

Source Distribution

snippy_nextgen-1.37.2.tar.gz (37.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snippy_nextgen-1.37.2-py3-none-any.whl (478.0 kB view details)

Uploaded Python 3

File details

Details for the file snippy_nextgen-1.37.2.tar.gz.

File metadata

  • Download URL: snippy_nextgen-1.37.2.tar.gz
  • Upload date:
  • Size: 37.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.1 {"ci":true,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.12.3"},"installer":{"name":"hatch","version":"1.17.1"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.12.3","system":{"name":"Linux","release":"6.17.0-1020-azure"}} HTTPX2/2.7.0

File hashes

Hashes for snippy_nextgen-1.37.2.tar.gz
Algorithm Hash digest
SHA256 1aaef357161807b9ec1c9ec77ff77ae0adb7ee718578a4a45eb70f5f99915ea0
MD5 d9d2de4ff37c0a4ca324b1d5f8daf838
BLAKE2b-256 ddcb2a3d973ba8c9598a38a8226c7026aaf19e4d3d519e5ae80bd6b777874fd6

See more details on using hashes here.

File details

Details for the file snippy_nextgen-1.37.2-py3-none-any.whl.

File metadata

  • Download URL: snippy_nextgen-1.37.2-py3-none-any.whl
  • Upload date:
  • Size: 478.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.17.1 {"ci":true,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.12.3"},"installer":{"name":"hatch","version":"1.17.1"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.12.3","system":{"name":"Linux","release":"6.17.0-1020-azure"}} HTTPX2/2.7.0

File hashes

Hashes for snippy_nextgen-1.37.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0e4bff3866254c73e60fdea3d1e5a3cb5c04b69614ca7ca63023313aa990c397
MD5 2e91ce1023a0e06b2d8dda7ec134a63b
BLAKE2b-256 3da50487833177860d22ec1ee0e9b32e29c8120b286f04a19107dc6791ff24ee

See more details on using hashes here.

Supported by

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