Skip to main content

Peak detection, trace analysis, and dilution-series tooling for 1D signals.

Project description

Meta

Python

Documentation Status

Testing

Unittest Status

Unittest coverage

Google Colab

PyPI

PyPI version

PyPI downloads

Anaconda

Anaconda version

Anaconda downloads

Latest release date

DeepPeak

DeepPeak is a Python package for detecting and localizing peaks in 1D signals using deep learning. Designed for researchers and engineers, it simplifies the process of training and deploying neural networks for peak detection.

Key Features

  • Deep Learning-based Peak Detection: Leverages Keras and TensorFlow for state-of-the-art performance.

  • Gaussian Peak Handling: Built-in support for detecting Gaussian-shaped peaks.

  • Custom Signal Support: Easily adaptable to various types of 1D signals.

  • Easy-to-Use API: Train and predict with minimal setup.

Analysis Quickstart

For dilution-series analysis, prefer the namespaced DilutionSeries API and run the standard and CNN detectors explicitly:

from DeepPeak.analysis import DilutionSeries, HeightPeakTrigger, SigmaPeakTrigger

series = DilutionSeries(
    folder="path/to/traces",
    wavenet=wavenet,
    initial_concentration=1.0,
    nrows=100_000,
)

standard = series.run_standard(
    std_trigger=SigmaPeakTrigger(sigma=5.0, hysteresis=4.0),
)

cnn = series.run_cnn(
    cnn_trigger=HeightPeakTrigger(height=0.05, hysteresis=0.03),
    cnn_amplitude_sigma_samples=27,
)

series.plot.standard_detection(index=0)
series.plot.wavenet_detection(index=0)

series.poisson.plot.expected_histogram(
    index=0,
    base_index=0,
    detector="standard",
    x_axis="time",
)

series.amplitude.plot.histogram(index=0, detector="standard")
series.width.plot.histogram(index=0, detector="standard", x_axis="time")

If you want the old all-in-one execution, series.run() still exists, but it now requires both the standard and CNN detector configurations to be present.

The older PeakCountSeries name remains available as a backward-compatible alias, but new notebook code should prefer DilutionSeries.

Contact

For questions or contributions, contact martin.poinsinet.de.sivry@gmail.com.

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

deeppeak-0.0.8.tar.gz (2.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deeppeak-0.0.8-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file deeppeak-0.0.8.tar.gz.

File metadata

  • Download URL: deeppeak-0.0.8.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for deeppeak-0.0.8.tar.gz
Algorithm Hash digest
SHA256 7e29ffb18051cb7e79b79b72696639fb4768d1332422c3fd646449116ed4aa48
MD5 f31dbfe771cdb8ee8f0be729b1d8affa
BLAKE2b-256 76bcce41a19295a9d52822d8e46d005898d05830f0b60bcdde6aa4821bc571e9

See more details on using hashes here.

File details

Details for the file deeppeak-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: deeppeak-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for deeppeak-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 8ef46b67066ba98821320e90327024bc3ddaef5eb003883d35cce097f1b9ed79
MD5 81461eeb3cd05b409cd10ad43fe2c3f8
BLAKE2b-256 518a2df5921b4c96393f17b4e52aef251e8d45bb97fdf82e830080933a7c3054

See more details on using hashes here.

Supported by

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