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.1.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.1.0
File Size Uploaded Provenance Actions
biocentral-2.1.0.tar.gz 25.1 kB Without provenance Details for biocentral-2.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 55.8 kB

Release files / biocentral-2.1.0.tar.gz

Download URL biocentral-2.1.0.tar.gz
Size 25.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6287ea3eabd7c5858414fa43d6a1625d12b44bbaf9a001d1166173a685ad0c7e
BLAKE2b-256 checksum
How to use checksums
6a034131ca834dcdd7c0df95105265168ffeec9664ab5fff29ea46a63840ca95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

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

Download URL biocentral-2.1.0-py3-none-any.whl
Size 30.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b72f66d78fa73e529ac89ce4b09535d946ae2b4e18aee02b200932fca578d551
BLAKE2b-256 checksum
How to use checksums
1885c75104d145a578b50373e4140b30808cf89e574e4a1d5b0698cda3b60066
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for biocentral 2.1.0

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

2.1.0 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