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

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 = FourPLLogistic().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.10.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

bio_curve_fit-0.1.10-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bio_curve_fit-0.1.10.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.0 Linux/6.2.0-1018-azure

File hashes

Hashes for bio_curve_fit-0.1.10.tar.gz
Algorithm Hash digest
SHA256 22db16646e7e8de52ba6143756a7cee5013a81d106930dd7d75891dbca9f24b2
MD5 cea52dc1cc88b42ca2a1c02c54451b1f
BLAKE2b-256 6cf4ac082466e590813c52082aa6a60a575a9bfaff3128851b2de73dd34e98bf

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for bio_curve_fit-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 f2664761dbe48f5d7adcb2ae54296bbfe1299abdbe001a47061bceda6bc9bdb6
MD5 617ed5dd1b3cba2c2ad376c0d02151d1
BLAKE2b-256 99c8370d9eb937d75676ccaf0a14347b77c8c1a9d8ede51fb61af5794371e043

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