Skip to main content

A comprehensive library for computational molecular biology

Project description

Biotite at PyPI Python version Test status The Biotite Project

Biotite project

Biotite is your Swiss army knife for bioinformatics. Whether you want to identify homologous sequence regions in a protein family or you would like to find disulfide bonds in a protein structure: Biotite has the right tool for you. This package bundles popular tasks in computational molecular biology into a uniform Python library. It can handle a major part of the typical workflow for sequence and biomolecular structure data:

  • Searching and fetching data from biological databases

  • Reading and writing popular sequence/structure file formats

  • Analyzing and editing sequence/structure data

  • Visualizing sequence/structure data

  • Interfacing external applications for further analysis

Biotite internally stores most of the data as NumPy ndarray objects, enabling

  • fast C-accelerated analysis,

  • intuitive usability through NumPy-like indexing syntax,

  • extensibility through direct access of the internal NumPy arrays.

As a result the user can skip writing code for basic functionality (like file parsers) and can focus on what their code makes unique - from small analysis scripts to entire bioinformatics software packages.

If you use Biotite in a scientific publication, please cite:

Kunzmann, P. & Hamacher, K. BMC Bioinformatics (2018) 19:346.

Installation

Biotite requires the following packages:

  • numpy

  • requests

  • msgpack

  • networkx

Some functions require some extra packages:

  • matplotlib - Required for plotting purposes.

Biotite can be installed via Conda

$ conda install -c conda-forge biotite

… or pip

$ pip install biotite

Usage

Here is a small example that downloads two protein sequences from the NCBI Entrez database and aligns them:

import biotite.sequence.align as align
import biotite.sequence.io.fasta as fasta
import biotite.database.entrez as entrez

# Download FASTA file for the sequences of avidin and streptavidin
file_name = entrez.fetch_single_file(
    uids=["CAC34569", "ACL82594"], file_name="sequences.fasta",
    db_name="protein", ret_type="fasta"
)

# Parse the downloaded FASTA file
# and create 'ProteinSequence' objects from it
fasta_file = fasta.FastaFile.read(file_name)
avidin_seq, streptavidin_seq = fasta.get_sequences(fasta_file).values()

# Align sequences using the BLOSUM62 matrix with affine gap penalty
matrix = align.SubstitutionMatrix.std_protein_matrix()
alignments = align.align_optimal(
    avidin_seq, streptavidin_seq, matrix,
    gap_penalty=(-10, -1), terminal_penalty=False
)
print(alignments[0])
MVHATSPLLLLLLLSLALVAPGLSAR------KCSLTGKWDNDLGSNMTIGAVNSKGEFTGTYTTAV-TA
-------------------DPSKESKAQAAVAEAGITGTWYNQLGSTFIVTA-NPDGSLTGTYESAVGNA

TSNEIKESPLHGTQNTINKRTQPTFGFTVNWKFS----ESTTVFTGQCFIDRNGKEV-LKTMWLLRSSVN
ESRYVLTGRYDSTPATDGSGT--ALGWTVAWKNNYRNAHSATTWSGQYV---GGAEARINTQWLLTSGTT

DIGDDWKATRVGINIFTRLRTQKE---------------------
-AANAWKSTLVGHDTFTKVKPSAASIDAAKKAGVNNGNPLDAVQQ

More documentation, including a tutorial, an example gallery and the API reference is available at https://www.biotite-python.org/.

Contribution

Interested in improving Biotite? Have a look at the contribution guidelines. Feel free to join our community chat on Discord.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

biotite-1.3.0.tar.gz (36.6 MB view details)

Uploaded Source

Built Distributions

biotite-1.3.0-cp313-cp313-win_amd64.whl (39.6 MB view details)

Uploaded CPython 3.13Windows x86-64

biotite-1.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (55.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

biotite-1.3.0-cp313-cp313-macosx_11_0_arm64.whl (39.7 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

biotite-1.3.0-cp313-cp313-macosx_10_13_x86_64.whl (39.9 MB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

biotite-1.3.0-cp312-cp312-win_amd64.whl (39.6 MB view details)

Uploaded CPython 3.12Windows x86-64

biotite-1.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (56.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

biotite-1.3.0-cp312-cp312-macosx_11_0_arm64.whl (39.7 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

biotite-1.3.0-cp312-cp312-macosx_10_13_x86_64.whl (40.0 MB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

biotite-1.3.0-cp311-cp311-win_amd64.whl (39.7 MB view details)

Uploaded CPython 3.11Windows x86-64

biotite-1.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (54.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

biotite-1.3.0-cp311-cp311-macosx_11_0_arm64.whl (39.8 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

biotite-1.3.0-cp311-cp311-macosx_10_9_x86_64.whl (40.0 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

File details

Details for the file biotite-1.3.0.tar.gz.

File metadata

  • Download URL: biotite-1.3.0.tar.gz
  • Upload date:
  • Size: 36.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for biotite-1.3.0.tar.gz
Algorithm Hash digest
SHA256 c3af30cb2ee87af972cca40465ab5084b62b501e4b31c08b82c4dc267e6dbb73
MD5 c476289580e146703039284355abf75e
BLAKE2b-256 e3a4a3f3725c313d0d2e5d75515bfa98ea4e0575cc5da8a8773db64130f056e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.3.0.tar.gz:

Publisher: test_and_deploy.yml on biotite-dev/biotite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file biotite-1.3.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: biotite-1.3.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 39.6 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for biotite-1.3.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f29704dbadd8c056f86a860537380a33b3386dca095ffbf5151f6cd745ad3164
MD5 141a75412361c3d8d7e0ab9cc787775d
BLAKE2b-256 c1995207e531a4315d7e638a4c8660f9edfc87b4c045b82171b7850b34b5afc6

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.3.0-cp313-cp313-win_amd64.whl:

Publisher: test_and_deploy.yml on biotite-dev/biotite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file biotite-1.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for biotite-1.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 07a9833fa0fdba27a6298f731920d4f229433330f48d2ccdd6eb95e2720c2308
MD5 ab69c0aecb1db36b647a46ce7ce2f615
BLAKE2b-256 85fb704e449a03ac56f0b8d15a1d759ddb3b4f01205b91ec4ea20c3431e76fdb

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: test_and_deploy.yml on biotite-dev/biotite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file biotite-1.3.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for biotite-1.3.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c0aae702193e7c8d8109b6e8c9f0dd4e100bd6bc0ab40cbcd04575bf4e8dd6a3
MD5 63392f559bdd08febd0bac69c60fbe3f
BLAKE2b-256 7551d1420997db3e29384cfe5f5cfc8f27bc02a7b1fb41d4d3896f914cc92b31

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.3.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: test_and_deploy.yml on biotite-dev/biotite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file biotite-1.3.0-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for biotite-1.3.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 ce5f8752b1e9235d9acdbb2f485ba8df3ef097ce76cede918b6645389e2ee519
MD5 77d330e8a54f3d1ae03de1d957ed2aed
BLAKE2b-256 eae5697902229a591bd0a0a5d299e0802b490a4b69e8914fef26df4589581a3b

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.3.0-cp313-cp313-macosx_10_13_x86_64.whl:

Publisher: test_and_deploy.yml on biotite-dev/biotite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file biotite-1.3.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: biotite-1.3.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 39.6 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for biotite-1.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 590bd2319fcd8288a718710b10ac0237294299ada3707b8fe5855784f514f6a4
MD5 e47eee6d1d7da18cce52e0fc3e1d5188
BLAKE2b-256 d072c58aea5a765ed52802dc9a0f92ab041e5251cafae10c2803a184e0aef3d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.3.0-cp312-cp312-win_amd64.whl:

Publisher: test_and_deploy.yml on biotite-dev/biotite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file biotite-1.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for biotite-1.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dbb4845f21f8d8d41702b03071f8c98abd70b709098640f0aaa55237706667d8
MD5 1fc55018e26d48c46b30437367d7b9ff
BLAKE2b-256 872fab0d32d63ab0facf2839705da2508a45200a2d3ef3c7b594a45127162fc7

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: test_and_deploy.yml on biotite-dev/biotite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file biotite-1.3.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for biotite-1.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d55c4cd79477d6b8fcccd3a2262b2d99ed139c87ebcadfd746a1e0e823958fc7
MD5 a6a922241bcc76735c40cb6f8906136d
BLAKE2b-256 b88a94a42a72e6a15be33d4d8bc38bff7f1b8275e620f4870dc4eb4c6b5fe226

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.3.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: test_and_deploy.yml on biotite-dev/biotite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file biotite-1.3.0-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for biotite-1.3.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 cdac539f7353dc040d197ea226d663ab53a739aaca8b61c98eaa4e018a37240e
MD5 5a1dee4dd316673ad0f63e20207f4d42
BLAKE2b-256 0f9d9d3a5747f2e9f9fcf147366e79d6471129c2e46afe4a6cf4674412ec193d

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.3.0-cp312-cp312-macosx_10_13_x86_64.whl:

Publisher: test_and_deploy.yml on biotite-dev/biotite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file biotite-1.3.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: biotite-1.3.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 39.7 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for biotite-1.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c00b99b1787fe0b4d48e7fb41a0b2006a0e5a5bbc630520ed9a6d9f2435d659b
MD5 f4027ecff1766a7ca74e6f6f3df5df88
BLAKE2b-256 237b97854f0a86fd86fc374e67ca68e8a8cf6d6c116b0b7f5bcc8b6dabdea1a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.3.0-cp311-cp311-win_amd64.whl:

Publisher: test_and_deploy.yml on biotite-dev/biotite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file biotite-1.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for biotite-1.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c8a1849691e988dca2e657aaf91dc40f1b0fabb3931c81bf3fa43db4edc0fc8a
MD5 08dabb05c685787878a0b80f7e53deb7
BLAKE2b-256 78ac8ac080ddf41f07dad616e8611d6cbb06d882b89de38eeb1aa39ec3e1b006

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: test_and_deploy.yml on biotite-dev/biotite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file biotite-1.3.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for biotite-1.3.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 77902b47c095191297b0e047e712aca2de272672aac86da15a793d8563597e8c
MD5 8a1a6caee52a9a2fd0b630e74c20aad8
BLAKE2b-256 8d99d31612c61efee3243cb4117d98026cff03dc31f879986d32d916d6e8e350

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.3.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: test_and_deploy.yml on biotite-dev/biotite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file biotite-1.3.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for biotite-1.3.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5d9eb04f65979d91bb83ebfcc5ceb056536eef4d2fb10a853a6a1e89c0d6af60
MD5 c9f3e76d90239d83d0cf31b5f4665f4c
BLAKE2b-256 abaf3e7ecac3d0f287c7727d32f30c6acdaa0fccb9942a974ba70caac2cd2bdf

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.3.0-cp311-cp311-macosx_10_9_x86_64.whl:

Publisher: test_and_deploy.yml on biotite-dev/biotite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page