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

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

Uploaded Source

Built Distributions

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

Uploaded Python 3 musllinux: musl 1.1+ x86-64

sourmash-4.8.3-py3-none-musllinux_1_1_aarch64.whl (1.7 MB view details)

Uploaded Python 3 musllinux: musl 1.1+ ARM64

sourmash-4.8.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

sourmash-4.8.3-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl (1.9 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ s390x

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

Uploaded Python 3 manylinux: glibc 2.17+ ppc64le

sourmash-4.8.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.7 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

sourmash-4.8.3-py3-none-macosx_11_0_arm64.whl (811.8 kB view details)

Uploaded Python 3 macOS 11.0+ ARM64

sourmash-4.8.3-py3-none-macosx_10_11_x86_64.whl (809.2 kB view details)

Uploaded Python 3 macOS 10.11+ x86-64

File details

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

File metadata

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

File hashes

Hashes for sourmash-4.8.3.tar.gz
Algorithm Hash digest
SHA256 2c83292fd70b69fcad445c8f6a6fc504d8bbe7b8f5bfaa35146fcad899270d06
MD5 334c7184f054318e926a571cce98a885
BLAKE2b-256 82dcbfc4ce1bd64d58495b6ccd5b10cbad79b568e327b347539d465ba0bcc43a

See more details on using hashes here.

Provenance

File details

Details for the file sourmash-4.8.3-py3-none-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for sourmash-4.8.3-py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 3a69a90fb28b8ed5b3e00948365f460de4c1d37cc2ae99c22be18539e6d8d1a9
MD5 f486a0d8807b5de09e0a81d0ec5f7206
BLAKE2b-256 86b08a42b60cc148c37bbc4c1e369cbb488c03fc8cae2cbdf5b4dd99d69c7983

See more details on using hashes here.

Provenance

File details

Details for the file sourmash-4.8.3-py3-none-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for sourmash-4.8.3-py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 82795df8b329087e6f80558c7c5c7f40f740938280faed4cb7f6bb010ed141b6
MD5 8e7f4fb51b9c4803a9588d2508e3c35d
BLAKE2b-256 daa5f397db626fa9cadf9a90c5778683b9e34a5d7f09312f71829b3f216bdef4

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.8.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6d86764cd381ae4b5d33f97b080b121fba48221214c4c5a0ae631663457db0dd
MD5 1a9ccf9858dd0c88705ad54a75ab6adf
BLAKE2b-256 d59198a519a3c22727ee5b0bb367d6f106ec8d99340ada387062b454870c19a8

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.8.3-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 6f691d37b3ef93bf0c6ccd21c09d4506ead38cbfe72d3a5aae534f4e3bcf4f56
MD5 93fdecadba3771f8776289c173f9caef
BLAKE2b-256 1eb4625f566e6184a50bd76bdcea9c1be1e025fdd5c0766f99cdbc110f2026bc

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.8.3-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 f98e86c2c58c4bf9d4dffeb20e5c07046bb99670e87bfb7a259c28064642f468
MD5 03159aa9ef66459fd3e95d8e56a2a48b
BLAKE2b-256 dc2046be93f71789635f96218d92165204bbdcc5c51d36d0f10ad604a17224f6

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.8.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 675572dd110c408d4546b0b5f94f962a6d49fd8a0b6f0de745ec110f4a78595a
MD5 12e86b7cf81bae3f7efe89e44ca36f34
BLAKE2b-256 56b967d924675481f8e2f61386a9b0d2e26c3ceabb1995a10a56a607bac80e65

See more details on using hashes here.

Provenance

File details

Details for the file sourmash-4.8.3-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sourmash-4.8.3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e0423bcb875edb1da107a4bf33d2aaa39094667c3cb379b2967635603174388
MD5 46b77b2f35e0a8e2515972a5fcee678b
BLAKE2b-256 9a70f857188fa5c02b96916c859043a5d218280f709f23d256d1018f05a04422

See more details on using hashes here.

Provenance

File details

Details for the file sourmash-4.8.3-py3-none-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for sourmash-4.8.3-py3-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 82f9a2ed51128e0138d00d80188d244f8239a4d8dc902b49d9684ae5bd6402f3
MD5 e4663ad41a7129f24936c91013e6a96a
BLAKE2b-256 65adaa8df214f79c457298195b8bce0bad67df8e261eafc100ebace3df45bea7

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