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.4.0.tar.gz (37.0 MB view details)

Uploaded Source

Built Distributions

biotite-1.4.0-cp313-cp313-win_amd64.whl (39.8 MB view details)

Uploaded CPython 3.13Windows x86-64

biotite-1.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (56.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

biotite-1.4.0-cp313-cp313-macosx_11_0_arm64.whl (39.9 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

biotite-1.4.0-cp313-cp313-macosx_10_13_x86_64.whl (40.1 MB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

biotite-1.4.0-cp312-cp312-win_amd64.whl (39.8 MB view details)

Uploaded CPython 3.12Windows x86-64

biotite-1.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (56.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

biotite-1.4.0-cp312-cp312-macosx_11_0_arm64.whl (39.9 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

biotite-1.4.0-cp312-cp312-macosx_10_13_x86_64.whl (40.1 MB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

biotite-1.4.0-cp311-cp311-win_amd64.whl (39.9 MB view details)

Uploaded CPython 3.11Windows x86-64

biotite-1.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (54.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

biotite-1.4.0-cp311-cp311-macosx_11_0_arm64.whl (40.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

biotite-1.4.0-cp311-cp311-macosx_10_9_x86_64.whl (40.2 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for biotite-1.4.0.tar.gz
Algorithm Hash digest
SHA256 0428427fff47e046a36ecdda1cbb38fc61e652e8df4339bf0a0b7a248a051a8b
MD5 015d5ab7751957b3fe14fbe37b0279de
BLAKE2b-256 ff643526f99fe09add35decea977bd3049672fc0be689d7e0557b0564a55600e

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.4.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.4.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: biotite-1.4.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 39.8 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.4.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c9c214f56a4868f840dcbbac9ad75f507b9a87c978c68c321dda745cffecba4c
MD5 66efa844b316f51ab523db3deec00f4b
BLAKE2b-256 e9b6f81ab2e7b0ef3bb3dccd147cff8458e16ec36bf7b08901772075e872ce66

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.4.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.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for biotite-1.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 96644d9bcf8b14f3ce7758c855f3773ddd5d95c06cba178847911d871b81b7d2
MD5 9f97b233d253ba3ad1c48995a077eac4
BLAKE2b-256 ca2eaea1d77a3197d8f7caac0ffb19a6abdb3138ba69d90c8f74ef5a996d13a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.4.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.4.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for biotite-1.4.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e681619cc9712cee436950a66965791fd40548d0369ddc8dba2c52a4f1d26a95
MD5 7c6027c6793c639d9352fca7f6f81357
BLAKE2b-256 0d5d087d2bd4db67bebdc6d7500be671cf8dd7471d6b887456ecd5c47561986f

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.4.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.4.0-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for biotite-1.4.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 a2b85d704c7f24bd03a2023d122776443588c97cfcc2875eed9acb4e29ce36a5
MD5 f471dd20d4a0e6eabf3056d8becb4bcb
BLAKE2b-256 a1387b6f69b3b5e6e3dbc0aabdd76c6f071a9e763d606f7b9a489cb95b92a000

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.4.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.4.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: biotite-1.4.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 39.8 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.4.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3dcb2c88f5dcfce6fee94800be1a42aca82c468baea13f04701ebefd711d9438
MD5 712828b63eff11102c83821c7e7f371a
BLAKE2b-256 663ec1f1ea1c4c407b24c1dd9a92b02c6babaa1800152693ae662c471daf6f95

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.4.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.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for biotite-1.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d17dbcabf8dfce25fff50f2c31e03392f8bd66dce064379e5f4c03d28ad66fc6
MD5 d12b6be4dc905feb1b50b3f3465b1bbb
BLAKE2b-256 77e4eb18efca3bf159164144238ebfde8c064cfb122194183507b5dfcd690969

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.4.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.4.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for biotite-1.4.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 19b4cfbdbe1ad94319dfea61d3dcdb07d476ba5bf55fb507021d6a5a5d4762d8
MD5 1d979100b9f7f1a8d5ad3800fe732692
BLAKE2b-256 21e064716fb2ce9d7749bb41cc932c667b0f6d478e09367b36d273b1f77b06f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.4.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.4.0-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for biotite-1.4.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 145f229f4262ab352eb5869f2ea56a5823911267abe7edca50ec6e5c90837097
MD5 2167dd6859e695b483d82e37eeb24943
BLAKE2b-256 d2a567c8808fe0935cfdf0f8bd993735595ed5110a6dbee98f84581b81066258

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.4.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.4.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: biotite-1.4.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 39.9 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.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cae4560fefd5583976d6434f647b73fe302864a1a7891e35cad4477309f58cce
MD5 db96dd4b5f7db9aeb84dd1b10a0130cb
BLAKE2b-256 c55d34df5d5acb35f8d4b6bb8df4f73f50ec2a9aa2e419cdb5ab3e5c24012cd7

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.4.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.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for biotite-1.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0813b424796dcc11bd2093a5e976c034c7190f3b2bedc503fb556119375977b1
MD5 6ec377fe00a8046042ae53a7df3b33aa
BLAKE2b-256 07915ac386b325dc638eec21a68ef76a7ed6bb3a1fde0dbf8c7783a9545b7f21

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.4.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.4.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for biotite-1.4.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a97562fd0341591f6eba58c001cec86cc6de2a45aa1e8d4349b4ff7d7b2cbe3a
MD5 b132b7cebc2852ec90dfff5d274ba5cd
BLAKE2b-256 f1a88395bbe28f3286df2386ce0830bb168c9f7b0c4f6c6b3f994fd117485819

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.4.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.4.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for biotite-1.4.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d937447eec6247b439d887a79e0dd94e5156a037fa5b399520ac8bee8b078103
MD5 dd605774e77ab559460affacbb34e2be
BLAKE2b-256 ba9bb1015d8a6c4fe2c13dd586f7b692264a902cbe53b61cb53a44802e94c851

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.4.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