Skip to main content

Background

SNiPgenie is a tool for microbial variant calling and phylogenetic analysis from raw read data. It was primarily written to be used with bacterial isolates of M. bovis but can be applied to other species. You need a good quality reference genome to align to.

Dependencies

  • numpy

  • pandas

  • biopython

  • matplotlib

  • pyvcf

  • pyfaidx

  • bcbio_gff

  • pyside2 (for gui only)

Other binaries required:

  • bwa

  • samtools

  • bcftools

  • tabix

  • parallel

These binaries can be installed with apt in Ubuntu:

sudo apt install bwa samtools bcftools tabix parallel

Installation

From pypi:

pip install snipgenie

From github:

pip install -e git+https://github.com/dmnfarrell/snipgenie.git#egg=snipgenie

Usage

Call with your own reference fasta file:

snipgenie -r reference.fa -i data_files -o results

Use an in built species genome as reference. This will also supply an annotation file. The current options are Mbovis-AF212297, MTB-H37Rv, MAP-K10, M.smegmatis-MC2155:

snipgenie -S Mbovis-AF212297 -i data_files -o results

Provide more than one folder:

snipgenie -r reference.fa -i data_files1 -i data_files2 -o results

Provide an annotation (genbank format) for consequence calling:

snipgenie -r reference.fa -g reference.gb -i data_files -o results

Add your own filters and provide threads:

snipgenie -r reference.fa -i data_files -t 8 -o results` \
-f 'QUAL>=40 && INFO/DP>=20 && MQ>40'

Metadata

Release files for snipgenie 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snipgenie 0.7.0
File Size Uploaded Provenance Actions
snipgenie-0.7.0.tar.gz 31.8 MB Without provenance Details for snipgenie-0.7.0.tar.gz

Release files / snipgenie-0.7.0.tar.gz

Download URL snipgenie-0.7.0.tar.gz
Size 31.8 MB
Tags Source
SHA-256 checksum
How to use checksums
86d448b69c13f637509db9d2e68f60bc01ea6e5939b42c518141fb3d1c9ba428
BLAKE2b-256 checksum
How to use checksums
1c837df951c5b88302d758f7d377155fd286e944a3943b4e2ddfcefa1c3ecc34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Security for snipgenie 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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