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

Uploaded Source

Built Distributions

sourmash-4.6.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-py2.py3-none-macosx_10_11_x86_64.whl (783.7 kB view details)

Uploaded Python 2 Python 3 macOS 10.11+ x86-64

File details

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

File metadata

  • Download URL: sourmash-4.6.1.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.1.tar.gz
Algorithm Hash digest
SHA256 c8e6712632a4ff4322946a89c4b81e50f7ac06f878e043aba8fd9e1fa013819c
MD5 1803e8b11beedf7f039444e3a7aab5f1
BLAKE2b-256 6dc77a422cbd99f64bb7f9819e08c1852db14aa0ad0206554c089633950fb2e5

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.6.1-py2.py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 47f7abbbdc0180ac0aa8a5dee670a7ef365c7fc9a034f2d3bd19deccded77a1d
MD5 f8f58316958f1be6e436c26a494aa50b
BLAKE2b-256 7dfa3e9a5fcf8683d0b58f8903e729f4e7f65d5aafee0f50db77169e886f123f

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.6.1-py2.py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 7f3d859eea0d03a26a2ed1cfaf2f3003004f0df78feaa50be2b899c1ea7f9ca7
MD5 271931a60c7ad3069eaed7965e55a8df
BLAKE2b-256 a01d04a4d1f235afa3a0d34781f49d537683966d0f0d0a3c5c28a5b2b5b9dcc9

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.6.1-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aae99c7f404d9e9014341b1605387dae56e41945b59c6aabc6f93d83a5d97e5b
MD5 fbdc0a15d3a8f4b8b2be6bad7a309172
BLAKE2b-256 6d20224da297f45dbe6e7ec6fc424043131b4bc1d754a31124c714f8f136a5fa

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.6.1-py2.py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 15b78c05fcbf402a7f0a3bbad567c0c599a5b46a96ef54f76d467107ec5c1779
MD5 feddc452091f2bd2ae983cd633e67817
BLAKE2b-256 32d68f343b1dd758ed6e4ceff4dd4f0cdded6dd820286955e817d321ec628a55

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.6.1-py2.py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 8498f043d972927d57a6beef3840cce6420d89c137282623a75f2d5b1122f9d2
MD5 bd24e1d8d67795784740a48a9fc4c78a
BLAKE2b-256 134edb1367c67ed9898dc716680d1ccdfcfd5781d43fac1f7a71c430d3531c1f

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.6.1-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5911942c9376d694e631e51fa4e65d2f47742be0a69260d4ea0483e96f99b684
MD5 f8e89188d02c92e74492683226b90c74
BLAKE2b-256 e48c79efc0ba56898e94be9ac71d610c0eb8471dc4c62b7fb0b2727caf549f6d

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.6.1-py2.py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f610c33aad1cb31f2ab76ba74bf287e67b5fb0fe0d1a23c7da58ccff1c49159
MD5 b9129473abc3e512a1cdb14834deea13
BLAKE2b-256 c3605b9e682b54a2cfc70aabf57c6656499bdda63c53024d386db6afb6a46f5f

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.6.1-py2.py3-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 fe18d70fc0d19d861ed2d3dc00d1ad2ca61534fd97cf638ec28dc08f211c5d9d
MD5 6735ea56ac6e0c70c013a99f799bb6ab
BLAKE2b-256 ba0fc9e17f799f1cf4ca98290789be2a06107a8f362e4306ceda2d0390db478d

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