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.11.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

bio_curve_fit-0.1.11-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bio_curve_fit-0.1.11.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.2 Linux/6.2.0-1019-azure

File hashes

Hashes for bio_curve_fit-0.1.11.tar.gz
Algorithm Hash digest
SHA256 2838143988efbc23c31ebdc5bc67eb6af0dc945e566670e3fbf39520b175ca4e
MD5 28d6795ea45b825be8632ff55630c612
BLAKE2b-256 fdeaa21f8c14e759b8e63650f9ded0f17762607999a3156a44c7b17f671d1136

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bio_curve_fit-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.2 Linux/6.2.0-1019-azure

File hashes

Hashes for bio_curve_fit-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 252b7d18f8b7cc13cb42a4d065b9271aa0a5b287bf689c35e94e5ba5a4dfa56d
MD5 359a11a36fc604eab075951052ff21cb
BLAKE2b-256 149b2acf8e697810a1e22874396a64b823e22d551947887332d22bea469bf660

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