Skip to main content

biocentral

This is the biocentral python package, providing all functionality of the biocentral ecosystem in one package.

Installation

Install from pypi using pip:

pip install biocentral

If you want to deploy your own server, add the server extra:

pip install biocentral[server]

If you want to run local functionality, add the local extra:

pip install biocentral[local]

Note that local and server install require large dependencies, while the default mode is minimal and lightweight.

Quick Start

  1. Create a biocentral object:
from biocentral import Biocentral

biocentral = Biocentral(mode="api")  # or "local"
  1. Visualize some data:
from biocentral import BiocentralChart
from biotrainer_core.input_files import read_FASTA

sequence_data = read_FASTA("your_sequences.fasta")

sequence_length_distribution = BiocentralChart.sequence_length_distribution(sequence_data)
sequence_length_distribution.chart.interactive()
  1. Embed the sequences via a protein language model:
embeddings = biocentral.embed(embedder_name="Rostlab/ProstT5", sequence_data=sequence_data, reduce=True)
print(embeddings)

Find more examples in the examples directory!

License

This package is subject to the MIT License.

Metadata

Release files for biocentral 2.0.0

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

Source distribution (sdist)

Source distribution for biocentral 2.0.0
File Size Uploaded
biocentral-2.0.0.tar.gz 22.4 kB Details

Built distribution (wheel)

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

Total release size: 49.6 kB

Release files / biocentral-2.0.0.tar.gz

Download URL biocentral-2.0.0.tar.gz
Size 22.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fb01068ea3378ece67a5f2a0a89b5a26f60b729a5800b9971781e3ac6bb87bdd
BLAKE2b-256 checksum
How to use checksums
bc9b099de6dfede726360c127a331c6c013e378828ba4d8e274a1f74389c0bd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.11

Release files / biocentral-2.0.0-py3-none-any.whl

Download URL biocentral-2.0.0-py3-none-any.whl
Size 27.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
65cc31bb67a661b02b5e783cdc2afbeb74809312cf3212286780bbd3260243b3
BLAKE2b-256 checksum
How to use checksums
eee8b01a73aa7f67c43e010c03bc1dc661d1034b946f5f8683cde3d98d829757
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.11

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

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