Skip to main content

bioiain

Ask DeepWiki

By Iain Visa (iainvisa@gmail.com)

Bioiain logo

Toolbox for structural analysis of proteins.

Many features are still not commented/documented or even mentioned. Feel free to explore and/or use any functions.

Can be downloaded from the PiPy repository but note the used version as any function might change during development.

pip install bioiain

pip install bioiain[ml] for machine learning dependencies (pytorch).

pip isntall bioiain[aleph] to use ALEPH dependant functions.

If you were to use this and find any issue I'll be happy to fix it :D

INFO

Module wiki can be found at wiki.bioiain.com .

Relevant python code can be found in the src folder within their respective folders. The test folder is for active development, and it's contents are constantly deleted/modified, and are not included in the package.

Protein Framework

Originally based on Biopython's hierarchy, but no longer dependant on it. Classes for structures, chains, residues, and atoms are included for manipulation and analysis of protein models.

Unlike Biopython, residues and atoms do not share the base entity framework as they behave in significantly different ways. Also respective classes for nucleotides, ligands and water are included and under development.

Bioiain is designed to be expandable, and custom classes are encouraged to match your purpose. Two custom classes (FragmentedStructure and Fragment) are included within the aleph module to deal with protein fragments.

Includes general-purpose tools and pipelines for importing, processing, saving, and exporting structures in mmCIF format (but PDB exports are slightly supported)

[!NOTE] WIP: Allow PDB parsing, dealing with structures with several models, cast data from respective Biopython objects.

Symmetries

This framework is designed to work with all the information available in crystallographic structures, therefore symmetry is considered by default when available.

Machine Learning

Still at a very early stage, Bioiain includes a PyTorch-based ML framework to simplify the development and training of ML models using on structural data.

It is intended for the development of new model architectures, embeddings, protein languages, classification, and other ML based approaches to structural biology.

This includes a BaseModel class with all the utilities commonly used during train/test/eval/inference of models. This allows setting up a model with custom layers and/or sub-models without dealing with losses, batching, logging, saving, loading, or exporting.

This framework works best with the provided EmbeddingDataset class, which doubles as a dataset and dataloader. And can be easily set up wilenusing (or not) the provided Protein Framework.

The framework relies on the provided Embedding class and subclasses. Which allow the generation and integration of custom-made embeddings, at protein or residue level.

This includes (local) integrated logging using Tensorboard.

[!NOTE] WIP: Still on the first iteration, will be reworked at some point.

ALEPH

Characteristic vectors are a powerful abstraction of protein structure, and can be calculated with ALEPH, through direct integration within the FragmentedStructure and Fragment classes included in the Protein Framework.

Tools

Utility functions to use and parse some external tools are included. For now this includes:

Utilities

Additionally, a large set of utilities is included, from logging, to common mathematical operations.

The utilities.files.StructureDataset facilitates working with large numbers of protein structures, and can fetch your structures of interest straight from the PDB.

Visualization

For structural visualisation, a custom PyMol scripting framework is included, replacing heavy sessions with generative commands.

Some common matplotlib utilities are also included. Including 3D visualisation of structures.

Databases

Utility functions download, parse, and query some online databases are included. For now this includes:

  • Plinder (protein ligand interactions dataset)

Metadata

Release files for bioiain 0.4.13

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

Source distribution (sdist)

Source distribution for bioiain 0.4.13
File Size Uploaded Provenance Actions
bioiain-0.4.13.tar.gz 376.9 kB Without provenance Details for bioiain-0.4.13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bioiain 0.4.13
File Interpreter ABI Platform Actions
bioiain-0.4.13-py3-none-any.whl Python 3 none any Details for bioiain-0.4.13-py3-none-any.whl

Total release size: 770.3 kB

Release files / bioiain-0.4.13.tar.gz

Download URL bioiain-0.4.13.tar.gz
Size 376.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8e74f527803cd1ad1ff1bbf211fc5c8300acb1a1a9788e508d4508ae21c5a072
BLAKE2b-256 checksum
How to use checksums
ad7507f9c07f78cf4965d0945fe0543f39d54b3023f2a2d17266109fc3a5e17b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / bioiain-0.4.13-py3-none-any.whl

Download URL bioiain-0.4.13-py3-none-any.whl
Size 393.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f71c3bdd437ebd1d9af562c3a9f2e8e93f63b111c3bc5fc3fbfd6b86d32d39e0
BLAKE2b-256 checksum
How to use checksums
35211f4b494e94099fb638788a3f931def22cd9c0252205832b68daa21e677d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Security for bioiain 0.4.13

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.

Release history Release notifications | RSS feed

This release

0.4.13 This release

2 release files No provenance

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