Skip to main content

py-cdhit

PyPI version Downloads Codacy Badge

A Python package for CD-HIT, clustering protein or nucleotide sequences.

This package provides a Python interface for CD-HIT (Cluster Database at High Identity with Tolerance), which has programs for clustering biological sequences with a very fast speed. Specifically, this package contains functions that run commands and read the output files, thus reducing the overhead of switching between languages and writing parsing code when using Python in the data analysis workflows.

Read the documentation here.

Usage

A simple example on Linux is provided below. See the notebook for more details.

from pycdhit import cd_hit, read_clstr

res = cd_hit(
    i="./docs/examples/apd.fasta",
    o="./docs/examples/out",
    c=0.7,
    d=0,
    sc=1,
)

df_clstr = read_clstr("./docs/examples/out.clstr")

Please visit CD-HIT's documentations for its installation and the options of commands.

Installation

First Install CD-HIT. Mamba is recommended. For example, to create an environment and install:

mamba create -n myenv python=3.10
mamba activate myenv
mamba install -c bioconda cd-hit cd-hit-auxtools

Then install this package from PyPI:

pip install py-cdhit

Development

Install from source after git clone:

cd py-cdhit
pip install -e '.[dev]'
pip install -r docs/requirements.txt
python -m pytest --cov-report term-missing --cov=pycdhit tests/

Metadata

Release files for py-cdhit 1.1.5

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

Source distribution (sdist)

Source distribution for py-cdhit 1.1.5
File Size Uploaded Provenance Actions
py_cdhit-1.1.5.tar.gz 15.4 kB Without provenance Details for py_cdhit-1.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py-cdhit 1.1.5
File Interpreter ABI Platform Actions
py_cdhit-1.1.5-py3-none-any.whl Python 3 none any Details for py_cdhit-1.1.5-py3-none-any.whl

Total release size: 28.5 kB

Release files / py_cdhit-1.1.5.tar.gz

Download URL py_cdhit-1.1.5.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
46884fb999c079966e6e1988517637f3d018939bc982aa5269a13521ffc632eb
BLAKE2b-256 checksum
How to use checksums
a7b0f2181de9a66faf7cd0749b8b093f497f6e5c6099794099f52262c41adf16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.11

Release files / py_cdhit-1.1.5-py3-none-any.whl

Download URL py_cdhit-1.1.5-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
43ba40c9354600fafc27af5a1e1f2cbb59c41f477b7f2a9e71fcd3aea88cb443
BLAKE2b-256 checksum
How to use checksums
d1a0bbfeaf9c73e0b657344b4912c57441a64d97806e1d99f7a899260c14d4e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.11

Security for py-cdhit 1.1.5

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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