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

Uploaded Source

Built Distributions

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

Uploaded Python 3 musllinux: musl 1.1+ ARM64

sourmash-4.8.2-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.2-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.2-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.2-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.2-py3-none-macosx_11_0_arm64.whl (804.4 kB view details)

Uploaded Python 3 macOS 11.0+ ARM64

sourmash-4.8.2-py3-none-macosx_10_11_x86_64.whl (808.2 kB view details)

Uploaded Python 3 macOS 10.11+ x86-64

File details

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

File metadata

  • Download URL: sourmash-4.8.2.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.2.tar.gz
Algorithm Hash digest
SHA256 e0df78032e53ed88977445933ba3481dd10c7d3bd26d019511a6a4e6d7518475
MD5 5dcc04a074988b3e727235b08c764498
BLAKE2b-256 6907a4b72e899ecd3fa50951a0f7e25cce24b3ff1a3268bc4154086a5d007ac9

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.8.2-py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 cb8dce43b7c73061b988f01c7af60839eb4706845121fa9f690bd8370a24f5f6
MD5 db948d389fb4a6f8fff36ffaae3b4789
BLAKE2b-256 a4cc00eabd390efd38ffba026640a4dbef810db28077e7af47dc8f1a802cb489

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.8.2-py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 89b529e71b2c5d737ec00094ae3f78db4d0ccf40dc2dbddf6181c6bce90659a3
MD5 7a511423eb109fb942a28e145aba5f1b
BLAKE2b-256 3ac1065203b8b3054d0358320b92cf186b35aa313240a3a0457df8cd5271415d

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.8.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e3faf9c3afc6c62c7b98b9e71a30373292d4e30871513064f2785cc28d2ed67e
MD5 948059a9beaa822225245e2ecd99dd8b
BLAKE2b-256 bc4f26d48bfe9760e441fde395d6b2d90c6ed097d3e0e60ce121c0a240ae6e9e

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.8.2-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 7a1edd9cdccd74a321e594063fdb3a04b98219d924394696bb2e4259308eeb96
MD5 d80613022f223ea366863367e8eeddf1
BLAKE2b-256 7a7857935b386ee3bf9d59e1027f0f135b308b70114c192bd702d4bfa0d9fd83

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.8.2-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 5640e61dfa763ee1b42df81f4e583b893d962db4862cfd5251529ed182fff228
MD5 8fbb29bce3a499e1cfb8eb051f6c467a
BLAKE2b-256 bcb12b8e94a64e63b660b6521ecd70d438b6fa39735f8ea8a6d5583e328b812f

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.8.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7ee2afbcc19852313aa113f796cee86c8253966f4d24226b4d93cc6109d0537c
MD5 4bc68200e702be0c02f67a5c7d3d12a8
BLAKE2b-256 b1955702267dfa7bb97a0c898cee32d9f7efed4bebb0f8b34f4899aac47c30fa

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.8.2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0a1f4d073958c03539287a6da769dd24c611a0f7af4771adb9ace33918e6a1c4
MD5 f8679ed86670682a957b88e204b5a3a1
BLAKE2b-256 1e27f0c396eec1f5029e4946b8986e09ad6ced2461d5f689bc196bf21accc35b

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sourmash-4.8.2-py3-none-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 1e33bbde748da8d99fcacce9cefd9a8599f2ee2e6a5ac92ece4f3ba3203d4aee
MD5 b40d5db33ff98d05c47363f30dd3cfeb
BLAKE2b-256 1b4785d5e1af29cfb78527809a3e4d571d174fa5fc0ae2c21d6ad577e38619a2

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