Skip to main content

tools for comparing DNA sequences with MinHash sketches

Project description

sourmash

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


Compute MinHash signatures for nucleotide (DNA/RNA) and protein sequences.

Usage:

sourmash compute *.fq.gz
sourmash compare *.sig -o distances
sourmash plot distances

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


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 is a product of the Lab for Data-Intensive Biology at the UC Davis School of Veterinary Medicine.

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 3.

You can also use pip to install sourmash:

pip install sourmash

A quickstart tutorial is available.

Requirements

sourmash runs under both Python 2.7.x and Python 3.5+. The base requirements are screed and ijson, together with a Rust environment (for the extension code). We suggest using rustup to install the Rust environment:

curl https://sh.rustup.rs -sSf | sh

The comparison code (sourmash compare) uses numpy, and the plotting code uses matplotlib and scipy, but most of the code is usable without these.

For search and gather you also need khmer version 2.1+.

Installation with conda

Bioconda is a channel for the conda package manager with a focus on bioinformatics software. After installing conda you will need to add the bioconda channel as well as the other channels bioconda depends on. Once you have setup bioconda, 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 compute -h

which will install the latest alpha release.

Support

Please ask questions and files issues on Github.

Development

Development happens on github at dib-lab/sourmash.

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.


CTB Jan 2020

Project details


Release history Release notifications | RSS feed

This version

3.2.1

Download files

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

Source Distribution

sourmash-3.2.1.tar.gz (7.3 MB view details)

Uploaded Source

Built Distributions

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

sourmash-3.2.1-py2.py3-none-manylinux2010_x86_64.whl (1.0 MB view details)

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

sourmash-3.2.1-py2.py3-none-manylinux1_x86_64.whl (1.0 MB view details)

Uploaded Python 2Python 3

sourmash-3.2.1-py2.py3-none-macosx_10_11_intel.whl (464.1 kB view details)

Uploaded Python 2Python 3macOS 10.11+ Intel (x86-64, i386)

File details

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

File metadata

  • Download URL: sourmash-3.2.1.tar.gz
  • Upload date:
  • Size: 7.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.4

File hashes

Hashes for sourmash-3.2.1.tar.gz
Algorithm Hash digest
SHA256 79659f4210a6ea4e5f7cc859dd71bdcd5d1274379260eca3be3cf0e434ee2afa
MD5 ba63cf13cf3fdb219ea71ad711aba7ba
BLAKE2b-256 675688c0a4d78955d4a70b1272fe42615db04d3f5f09f20bb965e284b37e2f92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sourmash-3.2.1-py2.py3-none-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: Python 2, Python 3, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.4

File hashes

Hashes for sourmash-3.2.1-py2.py3-none-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d34fdb424a805b7a37a9fe2f7fca3a6789a0a29465e942f54102fe0607414661
MD5 6589756bca031ffa02e15e767bce3c1f
BLAKE2b-256 8f26720edca6738357f0d7e0b5a9cc7b6e17fcdc2aec9611ef034c145a882d45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sourmash-3.2.1-py2.py3-none-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.4

File hashes

Hashes for sourmash-3.2.1-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ec034f602ae52593a87b76f9ba495b0309b082294f6712d80f1b4785be8c414d
MD5 65ddf7a611358d806d900c0ee108b711
BLAKE2b-256 b2f8d1a44dd337898c9ab59550aa4770a78983f50532f7f74d5f331d08524b11

See more details on using hashes here.

File details

Details for the file sourmash-3.2.1-py2.py3-none-macosx_10_11_intel.whl.

File metadata

  • Download URL: sourmash-3.2.1-py2.py3-none-macosx_10_11_intel.whl
  • Upload date:
  • Size: 464.1 kB
  • Tags: Python 2, Python 3, macOS 10.11+ Intel (x86-64, i386)
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.4

File hashes

Hashes for sourmash-3.2.1-py2.py3-none-macosx_10_11_intel.whl
Algorithm Hash digest
SHA256 e11d68a88ca82d4ec5d71236df10770207d337449599fb0b3ef96292132eb5bd
MD5 4fdc9ff9051acdac02a4d812e360131f
BLAKE2b-256 1ad1b80ea2ffa4f36bd90dc015e793c4db9b782cd0bdc4c41c453c4c28043ed6

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