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 python=3.7
$ 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

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

Uploaded Source

Built Distributions

sourmash-4.4.3-py2.py3-none-musllinux_1_1_x86_64.whl (1.6 MB view details)

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

sourmash-4.4.3-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.4.3-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.4.3-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.4.3-py2.py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (1.7 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.17+ ppc64le

sourmash-4.4.3-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.4.3-py2.py3-none-macosx_11_0_arm64.whl (744.2 kB view details)

Uploaded Python 2 Python 3 macOS 11.0+ ARM64

sourmash-4.4.3-py2.py3-none-macosx_10_11_x86_64.whl (773.4 kB view details)

Uploaded Python 2 Python 3 macOS 10.11+ x86-64

File details

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

File metadata

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

File hashes

Hashes for sourmash-4.4.3.tar.gz
Algorithm Hash digest
SHA256 b8a4aa2c06a3f5e3eb5d63159ed66b558a35ea563ea2a8f346504b4d733addee
MD5 0007335a457e7e99b376f3734bf462d2
BLAKE2b-256 7efae7a37a5b6bcd504d467f2c52af955a016bbbced3e301c6d74d05e54e9c55

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.4.3-py2.py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 d1f3da1ebddcc6998c93b3e0d8b0c930c79bf3e116dff537c2d1d807737f51bb
MD5 38b6b37203537906c50d433cce566daf
BLAKE2b-256 6d294e967d9d2e220c847f25acf53ffd329711cfc7dc2aea48c65bc7582efd39

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.4.3-py2.py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 15077da77f582bb5123dc14f8faa2d0270db45901ea0d56fc421044dcc2ffdd4
MD5 c1ca4e3b3651f3441fa493cd46a8f100
BLAKE2b-256 99988d7e574231259b22965874e5db8537cfd99b4466323f4d5e506f166788fa

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.4.3-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4c9d98b2292b26382db8468c5ec443c60e9f0339de27f1dd6090d1fa2bf52a5c
MD5 e487db2c0e518a01fde5791f75aabbf3
BLAKE2b-256 e6e728ad52d767e7ece6bff644a21342a4b31597dcc62c25e382ad91a1e9ee27

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.4.3-py2.py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 6492ef1e77540d0442cc4f3599955af4836b8b84f1f51fc5aafa300fd7867426
MD5 454746269a1495d9d8543d1000bb26bb
BLAKE2b-256 4faf8a55a74a55f62df67aacef82dc27eed0951541299d2c1ddc4d1d165bd54a

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.4.3-py2.py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 064e87e186f86d4c959c1c4ff5c6ed6971ab56b23e3cb8326d14f625361984f7
MD5 872bddf8c6423c70dfc6038837bcb534
BLAKE2b-256 f2b4e4d11e2f395026daf706e6e5c685701e9958b018fa5fb0c910e0ac54420c

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.4.3-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 899d8b6a926a6f12b604b42671da5e068727d7951a8ecf78fdd685157202d945
MD5 4cd6d60c3639ec18d52ada0712068752
BLAKE2b-256 bfb2204653d15b9dd4c0219bfe23569e41f0994b9a28c356b10715c94c9aa3e7

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.4.3-py2.py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6fd90cec98f33cac155a5aadba7b4ea73d4f3ce841a7974355cd49000502e6dd
MD5 349c28dcb568ad2193bd5022a0970fd0
BLAKE2b-256 49a467901c2f227cd2fd425b6ffbc78c2491bb3766b4aecfbda2c1db5e7c9e63

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.4.3-py2.py3-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 dcaf3072637e821133246745fb7805986863c50a538973f1550fb58e3bc65379
MD5 cffcb73d4603efbd56c9ade5647e7593
BLAKE2b-256 22e6714c04ecc37fe222146be19cdb1df6b116ce4af817440ef0240c4a187ee6

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