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.10.16

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.10.16
File Size Uploaded
diverse_seq-2026.10.16.tar.gz 476.8 kB Details

Built distributions (wheels)

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

Total release size: 44.1 MB

Release files / diverse_seq-2026.10.16.tar.gz

Download URL diverse_seq-2026.10.16.tar.gz
Size 476.8 kB
Tags Source
SHA-256 checksum
How to use checksums
453fa3597007da3789dbafaeae4183ab82f8d0f038a3e4254c8d86a0429fc8d6
BLAKE2b-256 checksum
How to use checksums
13452ab9a9cd94aef15b09fafadc0a94ab12a017fc8a47e145f5d273f5744ba3
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 Oct 16, 2026.

Transparency log

Release files / diverse_seq-2026.10.16-cp315-cp315-win_amd64.whl

Download URL diverse_seq-2026.10.16-cp315-cp315-win_amd64.whl
Size 2.6 MB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
17ae6f5dd270486ec6858340e68e65da3ad7a112e767148bb3be350d90b813d6
BLAKE2b-256 checksum
How to use checksums
06e59acd928fed64645e7e24534e37aa2453d6158e43bd1d4a1274f5d5f51259
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 Oct 16, 2026.

Transparency log

Release files / diverse_seq-2026.10.16-cp315-cp315-manylinux_2_34_x86_64.whl

Download URL diverse_seq-2026.10.16-cp315-cp315-manylinux_2_34_x86_64.whl
Size 3.3 MB
Tags CPython 3.15 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
8c294a1ad4ea90b120395276e637cdd98dca89f081c2f6daff847c24bdea75d2
BLAKE2b-256 checksum
How to use checksums
6b8963ac1b149b2fee2a2c72133f8d9a7e41d560fa27d139399d902b2cb3e6a5
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 Oct 16, 2026.

Transparency log

Release files / diverse_seq-2026.10.16-cp315-cp315-macosx_11_0_arm64.whl

Download URL diverse_seq-2026.10.16-cp315-cp315-macosx_11_0_arm64.whl
Size 2.8 MB
Tags CPython 3.15 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c62d394ebaa7feb3f7231742d50197a297799457035f90a34173beba58cdde1a
BLAKE2b-256 checksum
How to use checksums
11c75cb399879e2a86c0473cd9b944aad9a73c5b404a9d054e6f9296a7ea5534
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 Oct 16, 2026.

Transparency log

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

Download URL diverse_seq-2026.10.16-cp314-cp314-win_amd64.whl
Size 2.6 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
1317de5cdc7f23354d1016119dffdada88b2277da821197abc4cdd0e2f223941
BLAKE2b-256 checksum
How to use checksums
27e363a0370eace545d7012d8f8210bf6333a9684a25fbb67ebfb0d435314c9d
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 Oct 16, 2026.

Transparency log

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

Download URL diverse_seq-2026.10.16-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
77179de32cc253439c39707147fd450900b0952e9d7511bd8448af23e906abfa
BLAKE2b-256 checksum
How to use checksums
a06fce2e5370d596edbe464accd27a2de60ca2b60e29309b2df53c70edcaed9d
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 Oct 16, 2026.

Transparency log

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

Download URL diverse_seq-2026.10.16-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
668faffb4ed49a81099528d90ab0e1e2cb99f4693e3121d1b332d1569ac78080
BLAKE2b-256 checksum
How to use checksums
4e3f8bd96fd5248983da1f6bec80ece1148efa4a848412cb5271c5c6151eb760
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 Oct 16, 2026.

Transparency log

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

Download URL diverse_seq-2026.10.16-cp313-cp313-win_amd64.whl
Size 2.6 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
6e8dc9794446ff0e2f34defb79d897033d492ac40728f3cda8eda2e4677305a8
BLAKE2b-256 checksum
How to use checksums
aafe94cc76f5989bd8a21bb2003ec20980c1976726ab8b2e7d77e8f514889ecc
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 Oct 16, 2026.

Transparency log

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

Download URL diverse_seq-2026.10.16-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
df9e30f79949c4693dbdb57a8799f64ebdc84029fc987ea09d7e245819da0ed3
BLAKE2b-256 checksum
How to use checksums
4c81240f55c68068f4f32bb20b9b76679021cb46779bdf5958aa319b4dbabdd2
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 Oct 16, 2026.

Transparency log

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

Download URL diverse_seq-2026.10.16-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
4e998cff0ee2d567f556166a4d4a8829bdd833ec05d4f6a82e470a2de18f5dcd
BLAKE2b-256 checksum
How to use checksums
c651766af014dd0edb4e95b6681992bad0c23312a456c5c7de9809e67ceb9001
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 Oct 16, 2026.

Transparency log

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

Download URL diverse_seq-2026.10.16-cp312-cp312-win_amd64.whl
Size 2.6 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
a944460f066772a7852817d90c393907496a30a80c00a597755b4a21d432cb21
BLAKE2b-256 checksum
How to use checksums
60706b3928b59c19b3795b48367edb90ecc6ddbcf7c0ecb60f39c98ef17e7e4f
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 Oct 16, 2026.

Transparency log

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

Download URL diverse_seq-2026.10.16-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
db62644dea5ced72f63fe79102fcccfec0fae7882850a2c7ba0eac2bda9e8fc4
BLAKE2b-256 checksum
How to use checksums
46bbf37a81a3f64392898363c70f7d21527ec48c393fd0edf06ce7271efb5cac
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 Oct 16, 2026.

Transparency log

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

Download URL diverse_seq-2026.10.16-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
fd23fbe6a4a86171bae862d471054b65e9e61edc4d22141c6d7770ee9ac97789
BLAKE2b-256 checksum
How to use checksums
fadd13ea5a639d00c5b7c4688193677e19378f5a8c3b82c49f68d85460800e48
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 Oct 16, 2026.

Transparency log

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

Download URL diverse_seq-2026.10.16-cp311-cp311-win_amd64.whl
Size 2.6 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
d300bdf16cf602dbc58c9aa540aa73610ef15a02dd0e03544d6b225ee8a452c5
BLAKE2b-256 checksum
How to use checksums
8cf2bcecb1eb2688c65108f6fbf4cf740c2ddda9ba3aed77e5f53df6de606498
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 Oct 16, 2026.

Transparency log

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

Download URL diverse_seq-2026.10.16-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
fbb06329927e1bec2a90583c6cedc5a890194300df1d05234bdd5185052b6af2
BLAKE2b-256 checksum
How to use checksums
07cd7c19dfa3aec2e03be20a9ffd85c1a98c2fd8db4a04c82916cb7de3dd4b11
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 Oct 16, 2026.

Transparency log

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

Download URL diverse_seq-2026.10.16-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
caafee2750b9c0660cdbfb77886f38bc82b006e0e10e27cabcc171c423b763c1
BLAKE2b-256 checksum
How to use checksums
83299374d8a85e45da1ecda40ae2fe1615926a84a6db3452138f9caa9c1d2f8e
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 Oct 16, 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