Bioutils Collection
Bioinformatics utilities for sequence analysis, alignment, annotation, FASTA processing, and molecular biology workflows.
Installation
pip install bioutils-collection
Requires Python 3.10+ and NumPy, SciPy, scikit-learn, and Numba. Runtime dependencies
are declared in pyproject.toml. To install a local checkout:
pip install -r requirements.txt
Quick start
from bioutils_collection import (
gc_content,
needleman_wunsch,
parse_fasta,
reverse_complement,
translate_dna_to_protein,
)
assert reverse_complement("ATCGATCG") == "CGATCGAT"
assert gc_content("ATCGATCG") == 50.0 # Percentage, from 0 to 100
# Alignment returns the score first, followed by the aligned sequences.
score, aligned1, aligned2 = needleman_wunsch("GATTACA", "GCATGCU")
assert translate_dna_to_protein("ATGGCCTAA") == "MA*"
# parse_fasta accepts FASTA text.
for header, sequence in parse_fasta(">example\nATGGCCTAA\n"):
print(f"{header}: {len(sequence)} bp")
Modules
alignment_functions: global/local alignment, distances, identity, score ratios.sequence_operations: complements, ORFs, CpG islands, k-mers, minimizers, syncmers.translation_functions: transcription, genetic codes, batch/streaming translation.gc_functions: GC percentages, GC skew, and windowed GC analysis.sequence_statistics: codon usage, entropy, conservation, protein properties.data_validation: DNA and protein validation.fasta_misc: FASTA parsing, writing, filtering, splitting, and format conversion.annotation_functions: BED/GFF/GTF/VCF parsing, conversion, and statistics.motif_functions: motif search, consensus generation, and pattern matching.repeat_functions: tandem repeats and palindrome detection.restriction_functions: restriction enzyme site identification.clustering_functions: motif clustering.
Functions are available from their modules; common utilities are also exported
from bioutils_collection. Docstrings describe inputs, outputs, and validation.
Sequence analysis example
from bioutils_collection import find_orfs, gc_content_windows
from bioutils_collection.sequence_operations.find_cpg_islands import find_cpg_islands
from bioutils_collection.sequence_statistics.amino_acid_composition import (
amino_acid_composition,
)
from bioutils_collection.sequence_statistics.calculate_isoelectric_point import (
calculate_isoelectric_point,
)
dna_sequence = "ATG" + "GCC" * 100 + "TAA"
orfs = [orf for orf in find_orfs(dna_sequence) if len(orf[2]) >= 300]
gc_profile = gc_content_windows(dna_sequence, window_size=100, step_size=25)
cpg_islands = find_cpg_islands(dna_sequence)
protein_seq = "MAAAAA"
pi = calculate_isoelectric_point(protein_seq)
composition = amino_acid_composition(protein_seq)
GC windows return (start, end, percentage) tuples with zero-based, exclusive
end positions. Incomplete trailing windows are skipped.
Development and testing
git clone https://github.com/MForofontov/bioutils-collection.git
cd bioutils-collection
python -m venv .venv
# Activate .venv using the command for your shell, then:
python -m pip install -e ".[dev]"
python -m pytest
python -m pytest -m alignment
python -m pytest --cov=bioutils_collection --cov-report=html
python -m mypy bioutils_collection
python -m ruff check .
python -m ruff format --check .
See the major check plan for the staged correctness, packaging, file safety, and performance audit.
Contributing
Fork the repository, create a branch, add regression tests for fixes, and run relevant checks before submitting a pull request. Include type hints and regression tests, and update documentation when behavior changes.
Contact and related projects
- Author: Mykyta Forofontov
- Report bugs or request features
- PyPI package
- Biopython and scikit-bio
- pyutils-collection
License
MIT © 2026 Mykyta Forofontov. See LICENSE.
Metadata
Release files for bioutils-collection 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bioutils_collection-0.3.1.tar.gz | 59.8 kB | With provenance | Details for bioutils_collection-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bioutils_collection-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for bioutils_collection-0.3.1-py3-none-any.whl |
Total release size: 170.3 kB
Release files / bioutils_collection-0.3.1.tar.gz
| Download URL | bioutils_collection-0.3.1.tar.gz |
|---|---|
| Size | 59.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c613eebb59ac2670f19937e95ee503576c07e092ed690cc65b0e98450edc748
|
|
BLAKE2b-256 checksum How to use checksums |
30d174fa829e192138a3298f487a12591bfe4281b643d8136d82f73905a18a26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 30, 2026.
Transparency logRelease files / bioutils_collection-0.3.1-py3-none-any.whl
| Download URL | bioutils_collection-0.3.1-py3-none-any.whl |
|---|---|
| Size | 110.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4619cd9d4336eddc3d1c9b3be331992bf116591dc0dda0d807bf2e99399a05f3
|
|
BLAKE2b-256 checksum How to use checksums |
6619a6a3756022328c1434cad70a56f58a33a923cf2202b58aaf2172f31df80f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 30, 2026.
Transparency logSecurity for bioutils-collection 0.3.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for bioutils_collection-0.3.1.tar.gz
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 30, 2026.
Transparency logA 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.