Skip to main content

tools for comparing biological sequences with k-mer sketches

Project description

sourmash

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

Documentation Gitter 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
$ source activate sourmash_env
$ sourmash --help

which will install the latest released version.

Support

For questions, please open an issue on Github, or ask in our chat.

Development

Development happens on github at sourmash-bio/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.

Research notice

Please note that this repository is participating in a study into sustainability of open source projects. Data will be gathered about this repository for approximately the next 12 months, starting from 2021-06-11.

Data collected will include number of contributors, number of PRs, time taken to close/merge these PRs, and issues closed.

For more information, please visit our informational page or download our participant information sheet.


CTB Feb 2021

Project details


Release history Release notifications | RSS feed

This version

4.6.0

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.6.0.tar.gz (8.8 MB view details)

Uploaded Source

Built Distributions

sourmash-4.6.0-py2.py3-none-musllinux_1_1_x86_64.whl (1.7 MB view details)

Uploaded Python 2 Python 3 musllinux: musl 1.1+ x86-64

sourmash-4.6.0-py2.py3-none-musllinux_1_1_aarch64.whl (1.6 MB view details)

Uploaded Python 2 Python 3 musllinux: musl 1.1+ ARM64

sourmash-4.6.0-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB view details)

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

sourmash-4.6.0-py2.py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl (1.8 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.17+ s390x

sourmash-4.6.0-py2.py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (1.8 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.17+ ppc64le

sourmash-4.6.0-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.6 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.17+ ARM64

sourmash-4.6.0-py2.py3-none-macosx_11_0_arm64.whl (780.9 kB view details)

Uploaded Python 2 Python 3 macOS 11.0+ ARM64

sourmash-4.6.0-py2.py3-none-macosx_10_11_x86_64.whl (783.8 kB view details)

Uploaded Python 2 Python 3 macOS 10.11+ x86-64

File details

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

File metadata

  • Download URL: sourmash-4.6.0.tar.gz
  • Upload date:
  • Size: 8.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.13

File hashes

Hashes for sourmash-4.6.0.tar.gz
Algorithm Hash digest
SHA256 ecc03b97e3f08ad4d128402ccdfc0b3f0fadf048cc4fc257df16d6b5df250b06
MD5 34075d18cad3366266336b800ef21faf
BLAKE2b-256 470c274a26a7fa22de666aa19df34656b4a67faeaf6a5ce9827dae53e3f5df1d

See more details on using hashes here.

Provenance

File details

Details for the file sourmash-4.6.0-py2.py3-none-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for sourmash-4.6.0-py2.py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 e2291b845e2908c28a2ffc1158a5384fa51f6cd06baaa6d0dc43b530ba32e90e
MD5 d8c21159fabd8587ad91be7b8907fcb1
BLAKE2b-256 768384646de92ed1a29a683ef9811fe1a94db88ca411f76253bb0ba2f3f9fe29

See more details on using hashes here.

Provenance

File details

Details for the file sourmash-4.6.0-py2.py3-none-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for sourmash-4.6.0-py2.py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 8c95b4af2de68302c9dfe07a56604c5ae29f97230ba66fbd96fe4436ec262aed
MD5 399f4e267c9c2462abcb144781fb92c8
BLAKE2b-256 d21eadee78f8186b39a499fe60614cfb4d1750e4455b7aae4c8090a1aaa3764d

See more details on using hashes here.

Provenance

File details

Details for the file sourmash-4.6.0-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for sourmash-4.6.0-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dc51166d6e6bd98c9489cb9afd12ff18f5e86b1b8cd10540b23c7ceea7f9af4c
MD5 7971502a1057f0366e6aa61c8a962448
BLAKE2b-256 dd6ce2cd36e290a13a36a1580b4111dff041e310f991077f089b8d898ee1ab28

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.6.0-py2.py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 242f16876bab59c6a3c71917a45dbab4e1aadd30560fb497ff03b9d61b2fdd4b
MD5 b88d4d9c3291052be521dd0687c781b5
BLAKE2b-256 1156d436559f7044447ea74ae893711047eba1db4ab07afd50aeaebc872a14df

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.6.0-py2.py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 d02ee51083b2076f5f1f446e98086b818b6b671916e9401669186f6cd6b5749d
MD5 ac707659a4c5016cbdd26aa3f80b1a6c
BLAKE2b-256 8304e2c3cc31f26821e9396110872f42a7a9c4acd1d8b1f0388224249399840f

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.6.0-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5d185abae6a7cb5c9c2dd8c660765df5018357dc0535f783cafb437daa5c6896
MD5 7c1db4106331065c3c35df2fe36e1c54
BLAKE2b-256 e340670c4eb0f9f5092ccb6db3ee16feffb510fb58ae8266c50e12b549b10fd5

See more details on using hashes here.

Provenance

File details

Details for the file sourmash-4.6.0-py2.py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sourmash-4.6.0-py2.py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 edb87a4df251fd240ba2dcaa25168ce0fc652f59ba21a3a0057f3103511e0585
MD5 1dfc313b29731a292de94a5dcd8f24d5
BLAKE2b-256 a66d576e6edb0265baec1be1ad6e776269143193f9b18ed9da9539811c7849ea

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.6.0-py2.py3-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 cb92cf0507650b9968cb4f54c53687fcda0a613c456844328552bd9caf3ac6f1
MD5 f9a5381cd84210575959d4055f23d1bd
BLAKE2b-256 776d23ceb8dadc8b8f8eeea0e216e5e96b0dc4568f8469081b20b20177d5f55c

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