Skip to main content

tools for comparing DNA sequences with MinHash sketches

Project description

sourmash

Quickly search, compare, and analyze genomic and metagenomic data sets.

Documentation Build Status Bioconda install PyPI codecov DOI License: 3-Clause BSD

Usage:

sourmash sketch dna *.fq.gz
sourmash compare *.sig -o distances.cmp -k 31
sourmash plot distances.cmp

sourmash 1.0 is published on JOSS; please cite that paper if you use sourmash (doi: 10.21105/joss.00027):.

The latest major release is sourmash v4, which has several command-line and Python incompatibilities with previous versions. Please visit our migration guide to upgrade!


The name is a riff off of Mash, combined with @ctb's love of whiskey. (Sour mash is used in making whiskey.)

Primary authors: C. Titus Brown (@ctb) and Luiz C. Irber, Jr (@luizirber).

sourmash was initially developed by the Lab for Data-Intensive Biology at the UC Davis School of Veterinary Medicine, and now includes contributions from the global research and developer community.

Installation

We recommend using bioconda to install sourmash:

conda install -c conda-forge -c bioconda sourmash

This will install the latest stable version of sourmash 4.

You can also use pip to install sourmash:

pip install sourmash

A quickstart tutorial is available.

Requirements

sourmash runs under Python 3.7 and later. The base requirements are screed, cffi, numpy, matplotlib, and scipy. Conda (see below) will install everything necessary, and is our recommended installation method.

Installation with conda

Bioconda is a channel for the conda package manager with a focus on bioinformatics software. After installing conda, you can install sourmash by running:

$ conda create -n sourmash_env -c conda-forge -c bioconda sourmash python=3.7
$ source activate sourmash_env
$ sourmash --help

which will install the latest released version.

Support

Please ask questions and files issues on Github.

Development

Development happens on github at dib-lab/sourmash.

sourmash is developed in Python and Rust, and you will need a Rust environment to build it; see the developer notes for our suggested development setup.

After installation, sourmash is the main command-line entry point; run it with python -m sourmash, or do pip install -e /path/to/repo to do a developer install in a virtual environment.

The sourmash/ directory contains the Python library and command-line interface code.

The src/core/ directory contains the Rust library implementing core functionality.

Tests require py.test and can be run with make test.

Please see the developer notes for more information on getting set up with a development environment.


CTB Feb 2021

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

sourmash-4.1.1.tar.gz (7.9 MB view details)

Uploaded Source

Built Distributions

sourmash-4.1.1-py2.py3-none-manylinux2014_s390x.whl (1.6 MB view details)

Uploaded Python 2 Python 3

sourmash-4.1.1-py2.py3-none-manylinux2014_ppc64le.whl (1.4 MB view details)

Uploaded Python 2 Python 3

sourmash-4.1.1-py2.py3-none-manylinux2014_aarch64.whl (1.2 MB view details)

Uploaded Python 2 Python 3

sourmash-4.1.1-py2.py3-none-manylinux2010_x86_64.whl (1.2 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.12+ x86-64

sourmash-4.1.1-py2.py3-none-manylinux1_x86_64.whl (1.2 MB view details)

Uploaded Python 2 Python 3

sourmash-4.1.1-py2.py3-none-macosx_10_11_x86_64.whl (557.1 kB view details)

Uploaded Python 2 Python 3 macOS 10.11+ x86-64

File details

Details for the file sourmash-4.1.1.tar.gz.

File metadata

  • Download URL: sourmash-4.1.1.tar.gz
  • Upload date:
  • Size: 7.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.6

File hashes

Hashes for sourmash-4.1.1.tar.gz
Algorithm Hash digest
SHA256 c4acd713692db2da4c682a3ed4ff1fae59879aa2e883ed674bf0f56857696ed9
MD5 a73ab30e3a2fb99b8ed5e167cb35c222
BLAKE2b-256 99793dce0f0bf50c9f5da02cdd55f663895ec7020696c2ddfdbeb16a225ca383

See more details on using hashes here.

Provenance

File details

Details for the file sourmash-4.1.1-py2.py3-none-manylinux2014_s390x.whl.

File metadata

  • Download URL: sourmash-4.1.1-py2.py3-none-manylinux2014_s390x.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.6

File hashes

Hashes for sourmash-4.1.1-py2.py3-none-manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 ae7cf559eb8eff7c4ca3fc8a382580be4bea1d8b8d6ed3a8586941a30e81eed0
MD5 cb796a6dc6b78f6acc36f0999a3515d9
BLAKE2b-256 a585283105de3db7ef0e4c64bf6ce0a6f48df4032b3c89fb11981476697e80c0

See more details on using hashes here.

Provenance

File details

Details for the file sourmash-4.1.1-py2.py3-none-manylinux2014_ppc64le.whl.

File metadata

  • Download URL: sourmash-4.1.1-py2.py3-none-manylinux2014_ppc64le.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.6

File hashes

Hashes for sourmash-4.1.1-py2.py3-none-manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 7c34d1d7f68dde4687d446f0e44d75ef0cde087fdfd8a31f4747002e96c09386
MD5 c00f5ad7d3144eeaef74b6194a2fa010
BLAKE2b-256 bb9c5857a5dc13249ae28b4215c50c730aeb157a72f88c64944b80f0a1dcc643

See more details on using hashes here.

Provenance

File details

Details for the file sourmash-4.1.1-py2.py3-none-manylinux2014_aarch64.whl.

File metadata

  • Download URL: sourmash-4.1.1-py2.py3-none-manylinux2014_aarch64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.6

File hashes

Hashes for sourmash-4.1.1-py2.py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8a78e71cbba335ebe18bd6bbb88fb44fbaff59ac70f80a4cdcd7ca0dfc745d6a
MD5 0ccb3f6c6e98edba5bd1dd11444ca677
BLAKE2b-256 3d75a487157b6f5daa9ff88f4b8a555616ca66bfafb27f03e455dc026e3f99ca

See more details on using hashes here.

Provenance

File details

Details for the file sourmash-4.1.1-py2.py3-none-manylinux2010_x86_64.whl.

File metadata

  • Download URL: sourmash-4.1.1-py2.py3-none-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 2, Python 3, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.6

File hashes

Hashes for sourmash-4.1.1-py2.py3-none-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 7eec4f13b59c83bb5d8566d7e9cc1ef4da6ae660bd614761baa31d1e1fde690e
MD5 6633681a1f1c599c6bd0bd6257cfca3c
BLAKE2b-256 200a7cd257ade0ffa7306be28f509af161c86654e7797a917399937eda7477cf

See more details on using hashes here.

Provenance

File details

Details for the file sourmash-4.1.1-py2.py3-none-manylinux1_x86_64.whl.

File metadata

  • Download URL: sourmash-4.1.1-py2.py3-none-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.6

File hashes

Hashes for sourmash-4.1.1-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 db64bde0ae8bb7c546a75ccbe208b7de71ed80cd029138fd941227f6999580d4
MD5 bd9f7973588ca6f38a37ddb534f2152f
BLAKE2b-256 067fcae2401564ff98e7ffde2b2e58aa572532c6f3b786a4c96515f61c99b8af

See more details on using hashes here.

Provenance

File details

Details for the file sourmash-4.1.1-py2.py3-none-macosx_10_11_x86_64.whl.

File metadata

  • Download URL: sourmash-4.1.1-py2.py3-none-macosx_10_11_x86_64.whl
  • Upload date:
  • Size: 557.1 kB
  • Tags: Python 2, Python 3, macOS 10.11+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.6

File hashes

Hashes for sourmash-4.1.1-py2.py3-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 c80a4dcc839de63e146dcf52328d3b647df82983cd78d4fc16ba3559c617fddf
MD5 7a81bf376363ade2edd65643d31d340e
BLAKE2b-256 f4a26daa1cc05c866a0e245abc2c25288597c0f8c18315fd9c53b90ca86da605

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