Skip to main content

Snippy-NG

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

Synopsis

🚨 This software is still under development 🚨

snippy-ng is a modern version of the classic snippy tool. It finds variants in haploid microbial genomes relative to a reference genome. It can accept short reads, long reads, or assembled genomes. It can also combine the variants from multiple samples to make a multiple sequence alignment and a phylogenomic tree. Final results can be viewed from an interactive HTML report.

Documentation

Installation

Install script

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

Conda

Will be available on first official release.

Quick Start

snippy-ng short --ref tests/data/reference.gbk --R1 tests/data/mutant_R1.fastq.gz --R2 tests/data/mutant_R2.fastq.gz
snippy-ng asm --ref tests/data/reference.gbk tests/data/wildtype.contigs.fa
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.

Funding

This work was funded by the CZI EOSS scheme from 2024-2026.

Authors

  • Wytammma Wirth
  • Torsten Seemann

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.3.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.3-py3-none-any.whl (478.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: snippy_nextgen-1.37.3.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.9.1

File hashes

Hashes for snippy_nextgen-1.37.3.tar.gz
Algorithm Hash digest
SHA256 fe687bf8ffd70fcaea5b2a585814cd2d87746dc71571970a9fbd5fcf00e05d40
MD5 b596686a505e1b3adb906270ba4e73db
BLAKE2b-256 0175d8cec34faee54ebf45b65ca887a231d7d6308b5071a7bd363399632f6864

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snippy_nextgen-1.37.3-py3-none-any.whl
  • Upload date:
  • Size: 478.4 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.9.1

File hashes

Hashes for snippy_nextgen-1.37.3-py3-none-any.whl
Algorithm Hash digest
SHA256 eb56e05865903122ffa256d42183dea88d037ea522df206d261e96e24c8dd322
MD5 8bf78cc4c5dd22c37e6bdcfc60509a6b
BLAKE2b-256 e5463e90741a9c0c8603bf295ab7ff8e90d92e796bdb22be68959cb31ba69d1c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.37.3 This release

2 files

1.37.2

2 files

1.37.1

2 files

1.36.0

2 files

1.35.0

2 files

1.34.0

2 files

1.33.0

2 files

1.32.0

2 files

1.31.1

2 files

1.31.0

2 files

1.30.0

2 files

1.29.0

2 files

1.28.0

2 files

1.27.0

2 files

1.26.1

2 files

1.26.0

2 files

1.25.1

2 files

1.25.0

2 files

1.24.0

2 files

1.23.0

2 files

1.22.1

2 files

1.22.0

2 files

1.21.1

2 files

1.21.0

2 files

1.20.0

2 files

1.19.0

2 files

1.18.0

2 files

1.17.0

2 files

1.16.0

2 files

1.15.0

2 files

1.14.0

2 files

1.13.0

2 files

1.12.2

2 files

1.12.1

2 files

1.12.0

2 files

1.11.0

2 files

1.10.0

2 files

1.9.0

2 files

1.8.0

2 files

1.7.0

2 files

1.6.0

2 files

1.5.0

2 files

1.4.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.1

2 files

1.0.0

2 files

0.4.0

2 files

0.3.9

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page