Skip to main content

PyPI - Python Version CI Coverage Status Codacy Badge CodeQL Ruff DOI

diverse-seq provides alignment-free algorithms to facilitate phylogenetic workflows

diverse-seq implements computationally efficient alignment-free algorithms that enable efficient prototyping for phylogenetic workflows. It can accelerate parameter selection searches for sequence alignment and phylogeny estimation by identifying a subset of sequences that are representative of the diversity in a collection. We show that selecting representative sequences with an entropy measure of k-mer frequencies correspond well to sampling via conventional genetic distances. The computational performance is linear with respect to the number of sequences and can be run in parallel. Applied to a collection of 10.5k whole microbial genomes on a laptop took ~12 minutes to prepare the data and ~2 minutes to select 100 representatives. diverse-seq can further boost the performance of phylogenetic estimation by providing a seed phylogeny that can be further refined by a more sophisticated algorithm. For ~1k whole microbial genomes on a laptop, it takes ~1.8 minutes to estimate a bifurcating tree from mash distances.

You can read more about the methods implemented in diverse-seq in the paper here.

The user documentation is here.

📣 Announcements 📣

Reimplemented core routines in Rust!

The prep step takes approximately the same amount of time. Sampling divergent sequences is ~2x faster 🏎️🎉.

Warning -- backwards incompatible changes

The Rust rewrite was accompanied by a switch to using the Zarr storage format instead of HDF5. The output file from dvs prep now has the suffix .dvseqsz instead of .dvseq. Old-format files are not compatible with this version.

Installation

We recommend installing diverse-seq from PyPI as follows

pip install "diverse-seq[extra]"

for the full jupyter experience.

For command line only usage, install as follows

pip install diverse-seq

NOTE If you experience any errors during installation, we recommend using uv pip. This command provides much better error messages than the standard pip command. If you cannot resolve the installation problem, please open an issue on the GitHub repository.

Using uv

Speaking of uv, it provides a simplified approach to install dvs as a command-line only tool as

uv tool install diverse-seq

Usage in this case is then

uvx --from diverse-seq dvs

Dependencies

For a full listing of dependencies, see the pyproject.toml file.

The command line interface

dvs is the command line interface for diverse-seq.

The `dvs` subcommands
Usage: dvs [OPTIONS] COMMAND [ARGS]...

  dvs -- alignment free detection of the most diverse sequences using JSD

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  demo-data  Export a demo sequence file
  prep       Writes processed sequences to <Zarr Storage>.dvseqsz.
  max        Identify the seqs that maximise average delta JSD
  nmost      Identify n seqs that maximise average delta JSD
  ctree      Quickly compute a cluster tree based on kmers for a collection...

The Python API

We make comparable capabilities available as cogent3 apps. The main difference is the app instances directly operate on, and return, cogent3 sequence collections. See the docs for demonstrations of how to use the apps.

Project Information

diverse-seq is released under the BSD-3 license. If you want to contribute to the diverse-seq project (and we hope you do! 😇) the code of conduct and other useful developer information is available on the wiki.

Metadata

Release files for diverse-seq 2026.9.24

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for diverse-seq 2026.9.24
File Size Uploaded
diverse_seq-2026.9.24.tar.gz 476.7 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for diverse-seq 2026.9.24
File
diverse_seq-2026.9.24-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
diverse_seq-2026.9.24-cp314-cp314-manylinux_2_34_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.34+ x86-64 Details
diverse_seq-2026.9.24-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details
diverse_seq-2026.9.24-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
diverse_seq-2026.9.24-cp313-cp313-manylinux_2_34_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ x86-64 Details
diverse_seq-2026.9.24-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
diverse_seq-2026.9.24-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
diverse_seq-2026.9.24-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details
diverse_seq-2026.9.24-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
diverse_seq-2026.9.24-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
diverse_seq-2026.9.24-cp311-cp311-manylinux_2_34_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.34+ x86-64 Details
diverse_seq-2026.9.24-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details

Total release size: 35.4 MB

Release files / diverse_seq-2026.9.24.tar.gz

Download URL diverse_seq-2026.9.24.tar.gz
Size 476.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7ba0d7b88ebc0ff03168afecdefa4132f216ba19a9388c302a7805b1aed1b615
BLAKE2b-256 checksum
How to use checksums
48324dbf29e5504581eaa3ecac2a00d9421deda81b8a4fd4bd178ff6a2725016
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release files / diverse_seq-2026.9.24-cp314-cp314-win_amd64.whl

Download URL diverse_seq-2026.9.24-cp314-cp314-win_amd64.whl
Size 2.6 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
1eebeb301b769e0863e332240dcd449f24481b0d6d44c5a74bf8835e1e3ad623
BLAKE2b-256 checksum
How to use checksums
9a956c3f8ac9e134213b706e09cce20ab30cb6178f3e6ff1adca73255334a4ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release files / diverse_seq-2026.9.24-cp314-cp314-manylinux_2_34_x86_64.whl

Download URL diverse_seq-2026.9.24-cp314-cp314-manylinux_2_34_x86_64.whl
Size 3.3 MB
Tags CPython 3.14 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
3da37350e6bacec366409e89637e7a58624fdb8f13411f8f52fc3d41e9cac9a4
BLAKE2b-256 checksum
How to use checksums
60dae553af52b889c5e4a82e14357de2c92eed205484f3a753023724fc0d33b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release files / diverse_seq-2026.9.24-cp314-cp314-macosx_11_0_arm64.whl

Download URL diverse_seq-2026.9.24-cp314-cp314-macosx_11_0_arm64.whl
Size 2.8 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
aa6836b23fd7b3e607dc85b26d05648f841525ebe2739e3297ecf0783587ed4d
BLAKE2b-256 checksum
How to use checksums
76f4243a59fe7251645ff953e6d70d17719e63aff8af913e9d39bcc0cad7c558
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release files / diverse_seq-2026.9.24-cp313-cp313-win_amd64.whl

Download URL diverse_seq-2026.9.24-cp313-cp313-win_amd64.whl
Size 2.6 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
f8808fd62e827ce62f927961cac9f6ced06c5fe9ece383e950ddde75fc246fef
BLAKE2b-256 checksum
How to use checksums
8c6be61865eaa16a2336e147b468cd4ef91641513dc7f7c5d6cee04cc7892069
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release files / diverse_seq-2026.9.24-cp313-cp313-manylinux_2_34_x86_64.whl

Download URL diverse_seq-2026.9.24-cp313-cp313-manylinux_2_34_x86_64.whl
Size 3.3 MB
Tags CPython 3.13 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
98fcbfb574f05a5005cdaebfcb0966eae82bf011b6dcb2e3fc517334a319dc66
BLAKE2b-256 checksum
How to use checksums
d9b3ea5db145ecb459eed72f2ea9b51d60c6d13e1c0c6dabff1b863a9b41701b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release files / diverse_seq-2026.9.24-cp313-cp313-macosx_11_0_arm64.whl

Download URL diverse_seq-2026.9.24-cp313-cp313-macosx_11_0_arm64.whl
Size 2.8 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
734e1caadd87ccfac31c1870d949ba231361a5708a592f7044db094a5e09168d
BLAKE2b-256 checksum
How to use checksums
a1af07db4d2f52c855626ed0a6e770432701d401caf09c2249d6c2a3502e860f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release files / diverse_seq-2026.9.24-cp312-cp312-win_amd64.whl

Download URL diverse_seq-2026.9.24-cp312-cp312-win_amd64.whl
Size 2.6 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
6a02fe2c9b76235fc0037db8cbd0c3b3ec2d9cf57d4a380741db1b190c0933c7
BLAKE2b-256 checksum
How to use checksums
5537d3fd296776af1d05dbfa8a7be0691159fd8a31b1bd020bbacd136f2c3f8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release files / diverse_seq-2026.9.24-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL diverse_seq-2026.9.24-cp312-cp312-manylinux_2_34_x86_64.whl
Size 3.3 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
6b7d1ad75694b98c4603b098a90e62006df3132a969dd6da8a43ec73b6e69e54
BLAKE2b-256 checksum
How to use checksums
ae262bb9c74268ef0939239a5e45e3abd80b3fad456f97109a843fe5d6334648
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release files / diverse_seq-2026.9.24-cp312-cp312-macosx_11_0_arm64.whl

Download URL diverse_seq-2026.9.24-cp312-cp312-macosx_11_0_arm64.whl
Size 2.8 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3cb08b29875af029d9a8ba8bf4223aee9f93698241faaaa370382152ae91501f
BLAKE2b-256 checksum
How to use checksums
5bcf63e173f8c8293114efc0ced574f90de0ad9dddd6dde9e0edb24468d733ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release files / diverse_seq-2026.9.24-cp311-cp311-win_amd64.whl

Download URL diverse_seq-2026.9.24-cp311-cp311-win_amd64.whl
Size 2.6 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
b51802741f065fb4a3272036ce379b617521246844d5a26670ca2f85b74c92dc
BLAKE2b-256 checksum
How to use checksums
d366cb688158cb1076768162442de9f8c3b6b98a982bcef0cbd0d518b258c1f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release files / diverse_seq-2026.9.24-cp311-cp311-manylinux_2_34_x86_64.whl

Download URL diverse_seq-2026.9.24-cp311-cp311-manylinux_2_34_x86_64.whl
Size 3.3 MB
Tags CPython 3.11 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
eb754788dc76c9971f3115ac52801fdc4eb7e0b417f788ea8255f8188f1a7a7e
BLAKE2b-256 checksum
How to use checksums
92b687fe2d3ee390483ebb38becd27b46556980e000fd0a90d4f285e7e4ac122
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release files / diverse_seq-2026.9.24-cp311-cp311-macosx_11_0_arm64.whl

Download URL diverse_seq-2026.9.24-cp311-cp311-macosx_11_0_arm64.whl
Size 2.8 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2a3b61a9e20f02e3dd531945f1cbda5c2c2d6a612620110a1ca8c03b73d472a5
BLAKE2b-256 checksum
How to use checksums
209780ee8c8be57c85c154891b23a048ff59c7456f45e8fa5b830e76cf43162e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page