Skip to main content

platechain

release

Parsing microplate data is an extremely common task in the life sciences. This package provides a simple, universal interface for parsing all different types of microplate data into a tidy format.

Note: this package is still early in development and may not work with all machines and data formats. If you are having trouble with a specific usecase, please reach out

Platechain

Motivation

One of the core problems of dealing with plate based data is that every manufacturer and machine has a different output format. Rather than build hundreds of separate parsers, we leverage the latest advancements in LLMs to build a single parser that can handle many different formats.

Raw Spark data Parsed dataframe

Platechain: From raw data output (left) to a parsed, structured format (right).

Getting started

pip install platechain

Usage

import pandas as pd
from platechain import parse_plates

# Load your data
df = pd.read_csv('examples/byonoy_absolute_example.csv')

# Parse the plates
plate_dfs = parse_plates(df)
# Output: [[96 rows x 4 columns], [96 rows x 4 columns]]

See the notebooks directory for more examples.

Implementation

The core logic is implemented in chain.py. This file contains a single function, parse_plates, which takes a dataframe and returns a list of dataframes, one for each plate.

It also exposes a LangChain chain using LCEL which can be modified to support your specific usecase.

Limitations

  • Currently only supports 24, 96, and 384 well plates. 1536 well plates are coming soon!
  • Only handles plate data that is visually laid out in a grid. If your plate data is already in a table (e.g. a timeseries), this package will not parse it correctly.

Contributing

We welcome contributions! If you'd like to contribute, please check out our contribution guidelines.

License

This project is licensed under the terms of the Apache 2.0 license.

Acknowledgements

This is a Sphinx Bio project! If you're interested in a hosted solution for your lab, please reach out.

Thanks to Harrison and the Langchain team for their help as well!

Metadata

Release files for platechain 0.0.5

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

Source distribution (sdist)

Source distribution for platechain 0.0.5
File Size Uploaded Provenance Actions
platechain-0.0.5.tar.gz 8.0 kB Without provenance Details for platechain-0.0.5.tar.gz

Built distribution (wheel)

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

Total release size: 16.1 kB

Release files / platechain-0.0.5.tar.gz

Download URL platechain-0.0.5.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1703a7a34129be77335c3f7882027811c589efab52d19074c14d6a6ee54c2fbc
BLAKE2b-256 checksum
How to use checksums
45d65ba2bca2c8652ca71f93e0d8db08a8d1aed94d8aa1c76fb9aa94fc23bef7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / platechain-0.0.5-py3-none-any.whl

Download URL platechain-0.0.5-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b6479e791d5733125e46033b847d4fc638daa0c8997862d1646605b52701815
BLAKE2b-256 checksum
How to use checksums
007a28ffbc512bf12002a381ce323afce73514c0c77763d8d1f6fd38c84f058e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Security for platechain 0.0.5

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.

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