Skip to main content

py50_full.png

py50: Generate Dose-Response Curves

py50 Python Versions Streamlit DOI Documentation Status

Summary

The aim of py50 is to make the generation of dose-response curves and annotated plots with statistics. The project was created primarily for my personal use and for my coworkers/classmates. I found many of my classmates/coworkers were using a program that I find to be unfriendly in generating dose-response curves or with calculating statistics and plots. During my search, I found other helpful repositories that can generate dose-response curves, calculate statistics, or make annotated plots. However, I found that these packages did not meet my requirements:

  1. Use Pandas for the Data so that it can be easily plugged into a Jupyter Notebook or Python scripts
  2. Adaptable to user needs
  3. Easy to use (hopefully!)

The dose-response curves in py50 are built using the four parameter logistic regression model:

$Y = \text{Min} + \frac{\text{Max} - \text{Min}}{1 + \left(\frac{X}{\text{IC50}}\right)^{\text{Hill coefficient}}}$

where min is the minimum response value, max is the maximum response value, Y is the response values of the curves, and X is the concentration.

The statistics and annotated plots are wrapped from Pingouin and Statannotations. This may have been done inelegantly and will be updated based on my use or recommendations by others. As things stand, this project meets my needs and the needs of my classmates/coworkers. Hopefully it can meet the needs of others.

Installation

pip install py50

pacakge can be upgraded specifically using pip with the following:

pip install py50 -U

Tutorial

Documentation can be found here.

A Jupyter Notebook demoing the code can be found here.

A blog post demoing the code can be found at Practice in Code

Web Application Streamlit App

For those who are not versed in python coding, py50 has been converted into a web application using Streamlit!

The web application can be found here: py50-app

The repository for the Streamlit app version can be found here: py50-streamlit

NOTE: Updates to the web application take more time. Updates will be made when possible or upon request.

MCP

py50 ships a local MCP server (py50-mcp) exposing 7 tools (read_csv, calculate_ic50, single_curve, multi_curve, grid_curve, run_stats, and stats_plot) for .csv, .tsv, and .xlsx assay files.

Run directly with uvx:

uvx --from 'py50[mcp]' py50-mcp

Standard MCP client configuration (mcpServers):

{
  "mcpServers": {
    "py50": {
      "command": "uvx",
      "args": ["--from", "py50[mcp]", "py50-mcp"]
    }
  }
}

Citation

If you are interested in citing the repository, the BibTeX reference is as follows:

@software{lin_2024_14523624,
  author       = {Lin, Tony Eight},
  title        = {py50: Generate Dose-Response Curves},
  month        = dec,
  year         = 2024,
  publisher    = {Zenodo},
  doi          = {10.5281/zenodo.10183912},
  url          = {https://doi.org/10.5281/zenodo.10183912},
}

All versions can be linked to the Zenodo repository here: DOI

Thanks for your interest!

Metadata

Release files for py50 1.3.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 py50 1.3.0
File Size Uploaded Provenance Actions
py50-1.3.0.tar.gz 46.8 kB Without provenance Details for py50-1.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 97.1 kB

Release files / py50-1.3.0.tar.gz

Download URL py50-1.3.0.tar.gz
Size 46.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e9a858d7ac330e4bf567c5abcae106ada3eb1f63c4e23988d587acf37e782f2e
BLAKE2b-256 checksum
How to use checksums
b83168b51c26bca1a373eb7273945e5dd28ea0b7125aea70d2edd37106e9a104
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / py50-1.3.0-py3-none-any.whl

Download URL py50-1.3.0-py3-none-any.whl
Size 50.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3638dd62960eb6b91a75e0eb97405c0b756786f7d50db9e22b885175d8abfb29
BLAKE2b-256 checksum
How to use checksums
4e4167f6c53fc6e7a130b96e932e44a8b589c76690228df0c52b68cb788a2af9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for py50 1.3.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

1.3.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