Skip to main content

Curve fitting algorithms for bio-assays with scikit-learn api

Project description

bio-curve-fit

A Python package for fitting common dose-response and standard curve models. Designed to follow the scikit-learn api.

Quickstart

Installation

pip install bio-curve-fit

We recommend using python virtual environments to manage your python packages in an isolated environment. Example:

python -m venv venvname
source venvname/bin/activate

Example usage:

from bio_curve_fit.logistic import FourPLLogistic

# Instantiate model
model = FourPLLogistic()

# create some example data
standard_concentrations = [1, 2, 3, 4, 5]
standard_responses = [0.5, 0.55, 0.9, 1.25, 1.55]


# fit the model
model.fit(
	standard_concentrations, 
	standard_responses, 
)

# interpolate the response for new concentrations
model.predict([1.5, 2.5])

# interpolate the concentration for new responses
model.predict_inverse([0.1, 1.0])

Calculate and plot the curve and limits of detection:

plot_standard_curve(standard_concentrations, standard_responses, model, show_plot=True)

standard curve

Examples

See the example notebook for more detailed usage.

Contributing

Contributions are welcome! We built this package to be useful for our own work, but we know there is more to add. Please see CONTRIBUTING.md for more information.

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

bio_curve_fit-0.1.12.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

bio_curve_fit-0.1.12-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file bio_curve_fit-0.1.12.tar.gz.

File metadata

  • Download URL: bio_curve_fit-0.1.12.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.5.0-1018-azure

File hashes

Hashes for bio_curve_fit-0.1.12.tar.gz
Algorithm Hash digest
SHA256 d58d5c551bce078782a241a65034075b2de1192c67f1a312f8ed28fef9519fa9
MD5 c0524d0c33be9e294f0e1fb3f538900f
BLAKE2b-256 aee3cf3f67cd116c712f94d4e921ee75d5763954bf4afb45e49f862831ebf1d0

See more details on using hashes here.

File details

Details for the file bio_curve_fit-0.1.12-py3-none-any.whl.

File metadata

  • Download URL: bio_curve_fit-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.5.0-1018-azure

File hashes

Hashes for bio_curve_fit-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 2b4c4666ef6982016a4e85cd732f5f326b2cead8192186ccfc79aedd34311407
MD5 4fccf1c08bad58f21a888f4e039946e4
BLAKE2b-256 72bcb6dea528d81d4ec24b0b6851929186ccb7eabb26d7f2da10632778267c93

See more details on using hashes here.

Supported by

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