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

Uploaded Source

Built Distributions

biotite-1.1.0-cp313-cp313-win_amd64.whl (38.3 MB view details)

Uploaded CPython 3.13 Windows x86-64

biotite-1.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (54.6 MB view details)

Uploaded CPython 3.13 manylinux: glibc 2.17+ x86-64

biotite-1.1.0-cp313-cp313-macosx_11_0_arm64.whl (38.4 MB view details)

Uploaded CPython 3.13 macOS 11.0+ ARM64

biotite-1.1.0-cp313-cp313-macosx_10_13_x86_64.whl (38.7 MB view details)

Uploaded CPython 3.13 macOS 10.13+ x86-64

biotite-1.1.0-cp312-cp312-win_amd64.whl (38.4 MB view details)

Uploaded CPython 3.12 Windows x86-64

biotite-1.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (54.9 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

biotite-1.1.0-cp312-cp312-macosx_11_0_arm64.whl (38.5 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

biotite-1.1.0-cp312-cp312-macosx_10_9_x86_64.whl (38.7 MB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

biotite-1.1.0-cp311-cp311-win_amd64.whl (38.4 MB view details)

Uploaded CPython 3.11 Windows x86-64

biotite-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (53.1 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

biotite-1.1.0-cp311-cp311-macosx_11_0_arm64.whl (38.5 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

biotite-1.1.0-cp311-cp311-macosx_10_9_x86_64.whl (38.7 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

biotite-1.1.0-cp310-cp310-win_amd64.whl (38.4 MB view details)

Uploaded CPython 3.10 Windows x86-64

biotite-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (52.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

biotite-1.1.0-cp310-cp310-macosx_11_0_arm64.whl (38.5 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

biotite-1.1.0-cp310-cp310-macosx_10_9_x86_64.whl (38.7 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: biotite-1.1.0.tar.gz
  • Upload date:
  • Size: 35.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for biotite-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4bad8798e763a6a8a0f8823d26a6027154f3ac26f5b179cea744efb67c9be5ab
MD5 82cf55c05b25db4f9434a9f4914b7ae6
BLAKE2b-256 ffcbac56205ce587d6752c04dc319dcf64e50de193223a2e8a7687df41560fd5

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: biotite-1.1.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 38.3 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for biotite-1.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d858f0be964234af34814b014fe801d10795e6b565a4d3b538df34e8665e9e46
MD5 9b742af9b1ea1ec5b42d09f48752ae0e
BLAKE2b-256 54eacaec576a2a8160d0cbd597b4e8442ac67c69cb6aa73836a2254fb4ca0d20

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for biotite-1.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 72a026bd71ad60e2ed131c7a0965ed3a966ca2f860ba15f8293d038f3b82f03f
MD5 16f679277891f20d69578e84f7e0f888
BLAKE2b-256 6f8209d6009bfb821f1094b15867eec379493f312ddea3929ee385d27e00b616

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for biotite-1.1.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a2318ad825e69ac4b34e9ba0141169edab34489c792c3eb03370f80b6959848f
MD5 22e10f937868b8896d03558821a8c27b
BLAKE2b-256 0fcc6f28649bf04f056460a21b903f84b30063e164fe777e070066793164581b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for biotite-1.1.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 f30fc9cdb8e58ef6b5096b3f19ac0eeeba2538303ddc56fad2f16f6a23304a15
MD5 35ee4fd2381ded72641c06764539eee2
BLAKE2b-256 9109f9c2698e5d593c7d62131dd08f1b4e54778d9736028ddaf967d3940086c7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: biotite-1.1.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 38.4 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for biotite-1.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 25cf6329eb43b1a0a941f7aab528e5f65e40a1cea93f36162ab4f48fdbc71341
MD5 8302002d433aff47fa86e09ce8437689
BLAKE2b-256 cdbc50d08e4e75d3e49a05027fe585d77bfd47e170c2bbe7ad86eca153bbc24e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for biotite-1.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 902f96bf232439205ecd1634c9f378a59456b966012cc4b77ddcffa1877ae12b
MD5 f9ad1d058ee253bbcdc21d2a219cf9cf
BLAKE2b-256 6f8031521a212303656b8c909154de4c7c996df0c62bb3f6ee5d1f7810bbcb2b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for biotite-1.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab78aec4b491b2da0cf682a4e775cce9908f09d5f2512f028049d71d681b5798
MD5 dc01121b072ad3017a9f86943741218f
BLAKE2b-256 185a33f97135b75ff685f839d3f6d7517c82c36fd39221163d7ef8e1540bcaf2

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.1.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.1.0-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for biotite-1.1.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6a0155685a5831f67fd3d69988d3684eab018f4c6c5c049ef98c5991bff26f23
MD5 c21d1f3c557b8be6d9e3f74b90e0dd8e
BLAKE2b-256 b46a5932e845def4733c19b0473d60f699e03a55aec1b122fceb85ea072edeb1

See more details on using hashes here.

Provenance

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

File details

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

File metadata

  • Download URL: biotite-1.1.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 38.4 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for biotite-1.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 83627fce3da650e70c6f016ec040b82a0c2ff55462a875f5aabd17e3f885abe0
MD5 578e3f2b8835b2e59f62dbd9f24efdd5
BLAKE2b-256 d2907ce837b4e7a26dfa7f2014b8991c08c1441246020449abf32a8e990ba7e1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for biotite-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9c685c1ab3979fbe3970b5634f838d0647bd37521c547018fd662b12dad9a5a1
MD5 ee479557338ef6d8173274b5b823ea23
BLAKE2b-256 65e1c52ec5fa66a316002514ece7766124027c7a8cdd4175d5d563dc3ca7a6a6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for biotite-1.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2677add55ff6e0e697a59131c88bc20439f07dd875a3b81a41763243240bb74b
MD5 a19ca97f0f5d7927912cc87110dba4ef
BLAKE2b-256 0d9fc2273996f2f31321335763e2b8e421886fe62bc4c9cb2aa1fc13a6230646

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for biotite-1.1.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6fe9aa0b1cbcb9914a0ebd8ae36c55159a89152ec62b3d13e60bbd91df9d66c7
MD5 fb2bbc58564e77a8937bb508bfa93e2c
BLAKE2b-256 0999192d131adc97cb2ae48498caaa05fdf37a388b0b0985cf1afd7a51ae80f4

See more details on using hashes here.

Provenance

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

File details

Details for the file biotite-1.1.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: biotite-1.1.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 38.4 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for biotite-1.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e56a29b6c2e1a63de45edbba82ec6a5d3116235b635240df13417d9766867984
MD5 40e48298b6fbd7a956ba8e2676074690
BLAKE2b-256 306cb07ff9cd5c79ef7dc1c5fd5b05f3bb44c2ff6b57fc8fce2890bde7791c01

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.1.0-cp310-cp310-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.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for biotite-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 64788f54b4a052b55fbcd5fe9423c82e88f4e8750d08da96704167d859bd86d2
MD5 c65cc57f8d69139ac867931008bbfe87
BLAKE2b-256 b7ddd8adc1698106b40184066349c2aff60a81bbb5f598c865dcdcd5514ab096

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.1.0-cp310-cp310-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.1.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for biotite-1.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94656ca5252fca3cd4d860b52bd056ef593b8a916a975b13112857e5d307a4c8
MD5 7179d053dae3e1019ce1f6869c358cf7
BLAKE2b-256 b10585d9b7618fa4ce7fec7389c92be82a95cd59c6d9ff425931c07bd529984d

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.1.0-cp310-cp310-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.1.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for biotite-1.1.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b8e3db62a0ff445e4157bb3a75ae15576c6f39b6cb86d5bb3b09c29caa68b9de
MD5 2b8ca1f72ffb35b585200e3f4c445dec
BLAKE2b-256 0f6c7171ccebb96c7624edc64b0a997f8d6fed5a525762b04c33782e50d1fb63

See more details on using hashes here.

Provenance

The following attestation bundles were made for biotite-1.1.0-cp310-cp310-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 AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page