cogent3 is a mature python library for analysis of genomic sequence data. We endeavour to provide a first-class experience within Jupyter notebooks, but the algorithms also support parallel execution on compute systems with 1000's of processors. A plugin system enables custom extensions to expand the library capabilities. See the cogent3 docs for more detail.
Who is it for?
Anyone who wants to analyse sequence divergence using robust statistical models
cogent3 is unique in providing numerous non-stationary Markov models for modelling sequence evolution, including codon models. cogent3 also includes an extensive collection of time-reversible models (again including novel codon models). We have done more than just invent these new methods, we have established the most robust algorithms for their implementation and their suitability for real data. Additionally, there are novel signal processing methods focussed on statistical estimation of integer period signals.
🎬 Demo non-reversible substitution model
Anyone who wants to undertake exploratory genomic data analysis
Beyond our novel methods, cogent3 provides an extensive suite of capabilities for manipulating and analysing sequence data. You can manipulate sequences by their annotations, e.g.
🎬 Demo sequences with annotations
Plus, you can read standard tabular and biological data formats, perform multiple sequence alignment using any cogent3 substitution models, phylogenetic reconstruction and tree manipulation, manipulation of tabular data, visualisation of phylogenies and much more.
Beginner friendly approach to genomic data analysis
Our cogent3.app module provides a very different approach to using the library capabilities. Expertise in structural programming concepts is not essential!
🎬 Demo friendly coding
Installation
For most users we recommend
$ pip install "cogent3[extra]"
which installs support for data visualisation (which requires Plotly) and extensions for jupyter notebooks.
Note: In order to write Plotly figures to static image files you will need to install Chrome.
Minimal installation
If you're running on a high-performance computing system we recommend
$ pip install cogent3
which skips the data visualisation and notebook support.
Install with developer tools
Everything we use for cogent3 development. Run this from a clone of the repository.
$ pip install -e . --group dev
Note: Installs all dependencies that can be installed using
pip.
Installing the development version
$ pip install git+https://github.com/cogent3/cogent3.git@develop#egg=cogent3
Warning: The interface can change without warning on the development branch.
Installing using conda / mamba
Activate your conda environment, then
(myenv) $ conda install bioconda::cogent3
Project Information
cogent3 is released under the BSD-3 license, documentation is at cogent3.org, while cogent3 code is on GitHub. If you would like to contribute (and we hope you do!), we have created a companion c3dev GitHub repo which provides details on how to contribute and some useful tools for doing so.
Project History
cogent3 is a descendant of PyCogent. While there is much in common with PyCogent, the amount of change has been substantial, motivating the name change to cogent3. This name has been chosen because cogent was always the import name (dating back to PyEvolve in 2004) and it's Python 3 only.
Given this history, we are grateful to the multitude of individuals who have made contributions over the years. Many of these contributors were also co-authors on the original PyEvolve and PyCogent publications. Individual contributions can be seen by using "view git blame" on individual lines of code on GitHub, through git log in the terminal, and more recently the changelog.
Funding
Cogent3 has received funding support from the Australian National University and an Essential Open Source Software for Science Grant from the Chan Zuckerberg Initiative.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cogent3-2026.8.26.tar.gz.
File metadata
- Download URL: cogent3-2026.8.26.tar.gz
- Upload date:
- Size: 17.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
644f1986fee954e5f82f0ba2f826fc5de421f1bc3b373c31bca5e14024c0c36b
|
|
| MD5 |
014494bfd4a59c74479d6f1d5a6fcc90
|
|
| BLAKE2b-256 |
318d6ccdb472515508b56e2b699053536e5e9d5d4b44b09fc23c1cfe6b7da489
|
Provenance
The following attestation bundles were made for cogent3-2026.8.26.tar.gz:
Publisher:
release.yml on cogent3/cogent3
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cogent3-2026.8.26.tar.gz -
Subject digest:
644f1986fee954e5f82f0ba2f826fc5de421f1bc3b373c31bca5e14024c0c36b - Sigstore transparency entry: 2599913739
- Sigstore integration time:
-
Permalink:
cogent3/cogent3@fb97813e633d9f4dd1c159f67d05ec8eba6c112c -
Branch / Tag:
refs/tags/2026.8.26 - Owner: https://github.com/cogent3
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fb97813e633d9f4dd1c159f67d05ec8eba6c112c -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file cogent3-2026.8.26-py3-none-any.whl.
File metadata
- Download URL: cogent3-2026.8.26-py3-none-any.whl
- Upload date:
- Size: 719.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
080c574948fa677d221195e4f08401b076828e267f7a488c4b007d697190a87b
|
|
| MD5 |
e6cd69e208c6e7c36b3a943ad36a0108
|
|
| BLAKE2b-256 |
6efa3fdda7b42fded79cb0d951ecd8317c0dbdedcb3eddecbdb7ac501bb31486
|
Provenance
The following attestation bundles were made for cogent3-2026.8.26-py3-none-any.whl:
Publisher:
release.yml on cogent3/cogent3
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cogent3-2026.8.26-py3-none-any.whl -
Subject digest:
080c574948fa677d221195e4f08401b076828e267f7a488c4b007d697190a87b - Sigstore transparency entry: 2599913938
- Sigstore integration time:
-
Permalink:
cogent3/cogent3@fb97813e633d9f4dd1c159f67d05ec8eba6c112c -
Branch / Tag:
refs/tags/2026.8.26 - Owner: https://github.com/cogent3
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fb97813e633d9f4dd1c159f67d05ec8eba6c112c -
Trigger Event:
workflow_dispatch
-
Statement type: