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 🚨

Check out 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 all 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

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

Examples

snippy-ng asm --ref tests/data/wildtype.gbk --asm tests/data/wildtype.contigs.fa
snippy-ng short --ref tests/data/wildtype.gbk --R1 tests/data/mutant_R1.fastq --R2 tests/data/mutant_R2.fastq
snippy-ng long --clair3-model "/opt/models/r1041_e82_400bps_sup_v430_bacteria_finetuned" --clair3-fast-mode --ref tests/data/JKD6159.fasta --reads tests/data/JKD6159.fastq.gz
snippy-ng gather --ref tests/data/wildtype.gbk tests/data/{wildtype,mutant}* > tests/data/samples.csv 
snippy-ng multi tests/data/samples.csv \
  --ref tests/data/wildtype.gbk \
  -o multi \
  --cpus 6

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.18.0.tar.gz (35.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.18.0-py3-none-any.whl (84.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: snippy_nextgen-1.18.0.tar.gz
  • Upload date:
  • Size: 35.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.3 cpython/3.12.3 HTTPX/0.28.1

File hashes

Hashes for snippy_nextgen-1.18.0.tar.gz
Algorithm Hash digest
SHA256 389fe4cd3879a3a4cd871b8a5b5dd49a549a84a02284feee8340863a51f24a26
MD5 d5e2195b4da84cb729e854e9285f6539
BLAKE2b-256 a1ed508b9079f3d44f7c2ca0aa0df774ff86525f8b73259485fe133b2fb443ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snippy_nextgen-1.18.0-py3-none-any.whl
  • Upload date:
  • Size: 84.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.3 cpython/3.12.3 HTTPX/0.28.1

File hashes

Hashes for snippy_nextgen-1.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb3f8bd17e72b8a05e93498b34ff592eb5ad1f8b67f010ee44f6cb5938cea3dc
MD5 cfbc231274eaf7983748f30b5b1d0bb4
BLAKE2b-256 4b9a4580529482595b5121644bf1a6d57ae8848fc1b1e36dfbdcde135d614a7c

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