Skip to main content

A library for simulating all biology related things, analyzing them and visualizing them.

Project description

Biobridge

Biobridge Logo

Biobridge is a Python library for simulating biological processes and systems also analyzing them, visualising them, and interacting with them.

Installation

Firstly you need to install pyrosetta

Then install biobridge

pip install biobridge

Usage

To use Biobridge in your project, import it for example:

from biobridge import *
# Create two proteins
protein1 = Protein("Protein A", "ACDEFGHIKLMNPQRSTVWY")
protein2 = Protein("Protein B", "YVWTSRQPNMLKIHGFEDCA")

# Define bindings for the proteins
protein1.add_binding("Site 1", "High")
protein2.add_binding("Site 3", "Medium")

# Create a cell with specific properties
cell1 = Cell(
    name="Cell X",
    cell_type="Epithelial Cell",
)

organelle = Mitochondrion(0.5, 100)

# Add organelles to the cell
cell1.add_organelle(organelle, quantity=10)
cell1.add_organelle(Organelle("Nucleus", 1), quantity=1)
cell1.add_organelle(Organelle("Ribosome", 100), quantity=100)
cell1.add_chromosome(Chromosome(DNA("ATCG" * 1000), "Chromosome 1"))

# Print cell details
print("Cell X Description:")
print(cell1)

The notable functions are:

from biobridge import *

Cell()
DNA()
RNA()
Protein()
Chromosome()
Environment()
Tissue()
System()
ImageAnalyzer()
Orchestrator()
Virus()
Infection()
SQLDNAEncoder()
SurgicalSimulator()

To build do

hatch build

To see more examples how to use biobridge see the test files, biobridge works well with jupyter notebooks.

You can setup a config for biobridge to do this download the create_config.py file.

If you want to use something else than vscode you can use my editor built for this library.

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

biobridge-0.2.0.tar.gz (5.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

biobridge-0.2.0-py3-none-any.whl (314.7 kB view details)

Uploaded Python 3

File details

Details for the file biobridge-0.2.0.tar.gz.

File metadata

  • Download URL: biobridge-0.2.0.tar.gz
  • Upload date:
  • Size: 5.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for biobridge-0.2.0.tar.gz
Algorithm Hash digest
SHA256 894080e93f6721c37ff84bb9208d4b113b60915ae0ecdde4d972e5c7acf0b41b
MD5 f2710c51a55a2533ae8468e71a0535eb
BLAKE2b-256 70d48f08f68364b8197ce8c78f849d3501cca86c9554d1f2655f421506d94deb

See more details on using hashes here.

File details

Details for the file biobridge-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: biobridge-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 314.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for biobridge-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea36f65d8e93fd139f7f49b497279267dfc6886d85539d39ffd772a30616cf11
MD5 0c3f5b91731dba83811efda7e946d170
BLAKE2b-256 cd2baa56260f866f454020c63a1b8464c26ba3a4a6fe5c7e94915344a3fdafdd

See more details on using hashes here.

Supported by

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