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

This version

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

Uploaded Source

Built Distributions

sourmash-4.5.0-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.5.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.5.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.5.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.5.0-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.5.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.5.0-py2.py3-none-macosx_11_0_arm64.whl (754.2 kB view details)

Uploaded Python 2 Python 3 macOS 11.0+ ARM64

sourmash-4.5.0-py2.py3-none-macosx_10_11_x86_64.whl (784.4 kB view details)

Uploaded Python 2 Python 3 macOS 10.11+ x86-64

File details

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

File metadata

  • Download URL: sourmash-4.5.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.5.0.tar.gz
Algorithm Hash digest
SHA256 3d16562a3422d0ac920e63273a6bc1be30f490c4e2f3b23289ce284ef11da5c0
MD5 a76b44387ed398ee685fb44a12bd28c3
BLAKE2b-256 0b40637d24dbd40f317949ed2a7afb66bf25b4a87703a26b759bdd65f7c03644

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.5.0-py2.py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 6977650af93c5f214aec99f9ac34b1c8fa7d9f87f61e475e002f6193657938f9
MD5 8b2a6ec9fe35478b889d82badcca0dc2
BLAKE2b-256 8d96ab5043ec8e95f0f36f67bf210b254d6fcf9569596a39029c3e2d706c95e9

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.5.0-py2.py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 4309a5b8d8e596b7b23b2133a0b09b30c3a085844eafb5e695851f572adbcefd
MD5 a20a4f7e6a41e50652e3728e7ce3dc60
BLAKE2b-256 1f0a9a6ec9bafb08cad43002117e2315b83846e534f6ddc1f47489b3f0365964

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.5.0-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 48a72910f78f50888d2fd20466fcca23bf02fd069c4c5d9501f6d45269328e16
MD5 a20da8db1cdb8795ac74f19bbc96813d
BLAKE2b-256 5f0a5007ef3ea149c43f2479e13ed4114a38bdb84c3bb124d92fb37779aa9164

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.5.0-py2.py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 9a9bb0d91cb9f4ac8303a5929e1f0a69386e4f084c45bb19e0fcd7e02a1b60de
MD5 ce708058bdd33456ee945b62e371cdf4
BLAKE2b-256 d8e8e6302d862c98572a44633ce1665089f51e71eadaf90d239391e172e23d6a

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.5.0-py2.py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 7c21fd5f6e6076c42be3664f9705e3d5d659c4351de33a1c4159b2c7171453b7
MD5 c6abc65faeee6f560cadd01591e85309
BLAKE2b-256 69e4c393f072c9bfd68b3e641d103d30d3bc3e6ff2ce004be0fb21e415548e9d

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.5.0-py2.py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 77d22c40dacefea8d1779cfc764b2ffddc599870622aadbea2780d3b1a847471
MD5 a0c404da685f26f485d32105b8d15e09
BLAKE2b-256 75ad6f82109b25f8238e6d51eff51678a90ab8e7b7b11cca4b3b358c87ad6a9a

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.5.0-py2.py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f4750b1eb3139d7de2794d33dc6fe91cf62cd2c9a69cd9ebb0db0bbba289b432
MD5 668c40c1679328e7946c758ec3289e8f
BLAKE2b-256 62efa989f73eb0ad0091d5f4a3442896432df49e4fabddb17d7aa7b0f127b6b0

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.5.0-py2.py3-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 1de76e1fae056e60848121bd35934b6fafee9a475f92be8141a66458db1ec644
MD5 bbb2ef16be9bacc50405d6e883657123
BLAKE2b-256 fac00d700ee1e51c65636b956751235002cfb793d1287b4dc858b33cb6f25d79

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