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

Uploaded Source

Built Distributions

sourmash-4.8.1-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.1-py3-none-musllinux_1_1_aarch64.whl (1.7 MB view details)

Uploaded Python 3 musllinux: musl 1.1+ ARM64

sourmash-4.8.1-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.1-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.1-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.1-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.1-py3-none-macosx_11_0_arm64.whl (804.8 kB view details)

Uploaded Python 3 macOS 11.0+ ARM64

sourmash-4.8.1-py3-none-macosx_10_11_x86_64.whl (808.8 kB view details)

Uploaded Python 3 macOS 10.11+ x86-64

File details

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

File metadata

  • Download URL: sourmash-4.8.1.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.1.tar.gz
Algorithm Hash digest
SHA256 2bdda3a740ced7e930caddeaf103a3517a99539ec714faf1a08b26bd2cada242
MD5 90a0c31d26ae2c3968a140bdb1ad008c
BLAKE2b-256 0d71ef0f519f8d02ae3987d5e23775e0e637c2d600f59f1f38df3c21b2ba6a51

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.8.1-py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 8917e04869d32bca793bb9916fc4c64831a5f27d585036fb919ed27f439ba793
MD5 6005b2ecf344996e02d29177ab554e34
BLAKE2b-256 4c95f5d82732fc61c691829b8042762d8924d7bc71d542cd4ae590cceb5ab152

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.8.1-py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 36da8666f612886562f160e1c93501c3d3702034a8d7f010c4ba7786b95a041b
MD5 f576d5a60f313f6acd7218194d73cfe2
BLAKE2b-256 08946249ba027bf3f5a25c8aa393b605fe671f8c5f69c8111454a94fdf5a2639

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.8.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3d95aa22f0d5ff50b4d8a769231fb26f4908cda84717952da1aea2bb0bec8948
MD5 c5388b1c1ca0d26709ddd1d1e3981a24
BLAKE2b-256 546498733fb43e9e46c5c4d73af05533ab076473f2cbb5aaaf060560763ef39c

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.8.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 8f347316bb58b9d37c933a74a687b8686cb1bc74f18c4bbce413d54eb0f03618
MD5 6e1d723e90812c5af26ab98c473196dc
BLAKE2b-256 0d51a68ea1387355a9c87ead3469a1cb09baef798ec6febbc97a6f87f6b3ac1b

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.8.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 4d02ca29dea6c358ee9d3865cab51679a37419f5919c641f670e3da308885891
MD5 dd5f51f0d17a8c400ae977554dbf98ee
BLAKE2b-256 97f0ef49c200447c130b365664abafa22a80a0f10a5e3cd00006eaa48e84f406

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.8.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 34545b7811aba02a1128554171c27e69e73085028c89d8b76bb91f7da56047f4
MD5 adcdde29a0655d88f10e51e15dd7e9f6
BLAKE2b-256 bd3acfda3b97d3da1a9a6f80bd287007dca080b678db49ea4a5d68f830d45e1d

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.8.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab84de7f89bea7959cadbd6f5993a591f48497f68a150d50d77dfd5c42adb06c
MD5 94f049de0dfe36edf65f40e880d29c6e
BLAKE2b-256 ff4a32311f24d40b69a1901d797b52f5c02db55c96855d2666ebb7339626b63b

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.8.1-py3-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 5c7f3d70a78d736a12039fab95d48fb725df1d599c3ca054937be55647d21875
MD5 45509f135f92f84eb621e830481e026c
BLAKE2b-256 e7b510993a0864c441657f8c6e6ab37831061a01afd7f8620e9fa5f6c5a3518d

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