A Python package for rendering protein structures of PDB format in 3D using Ursina
Project description
Ursina Proteins
A Python package for rendering protein structures of PDB format in 3D using Ursina.
Installation
To install the library locally, clone the repo down and install dependencies with Poetry.
# Clone the repo
git clone https://github.com/HarrisonTCodes/ursina-proteins.git
cd ursina_proteins
# Install with poetry
poetry install
Usage
You can use the library in an existing Ursina project by importing the Protein class and creating an instance from a PDB file. You can render any proteins in the PDB file format, and can find many available for download at the RCSB Protein Data Bank.
from ursina_proteins.protein import Protein
Protein("/path/to/file.pdb")
You can also test the library out by running demo.py. This script renders a simple scene with an example protein (insulin).
poetry run python src/demo.py
Contributions
Contributions are welcome. Please use conventional commits and enable pre-commit hooks.
# Enable pre-commit hooks
poetry run pre-commit install
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ursina_proteins-1.0.1.tar.gz.
File metadata
- Download URL: ursina_proteins-1.0.1.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.12.3 Linux/6.8.0-58-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ea24a26e05c475787f02b1f752b9e8b7c8147abf4b2dd4b53ba19b6e1ed330a
|
|
| MD5 |
d54a681e56c2a603b2a3e8f38445a81a
|
|
| BLAKE2b-256 |
d9dd5236147b1bca4d80f257db02b97dddd2006ddc90e5d6115f3b9c3f1f8c66
|
File details
Details for the file ursina_proteins-1.0.1-py3-none-any.whl.
File metadata
- Download URL: ursina_proteins-1.0.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.12.3 Linux/6.8.0-58-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d092b5472319f3867e34fade0f0cab71527e0c48c3574a38e2fa572fce4af55
|
|
| MD5 |
e366f1a688acae5f65349a3d26bb9bd6
|
|
| BLAKE2b-256 |
fd828f829d38fa558734676598fd0dc44e2a2329ac5bb5cf532f23c27952b92c
|