Skip to content

glotzerlab/dupin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

886e172 · Apr 7, 2025
Apr 3, 2025
Feb 19, 2025
Feb 19, 2025
Feb 12, 2025
Jan 6, 2025
Feb 13, 2021
May 4, 2023
Feb 19, 2025
Dec 22, 2023
Jul 23, 2024
May 4, 2023
May 11, 2023
Jan 10, 2025
Jan 9, 2024
Apr 7, 2025
Feb 18, 2025
Feb 19, 2025
Feb 18, 2025
Feb 27, 2023

Repository files navigation

dupin

Cite GitHub-Stars

Welcome to dupin a Python package for detecting rare events in molecular simulations.

Overview

dupin is designed to provide an unopinionated Python API for partitioning temporal point cloud data into regions of stability and transition. Generally such data comes from molecular simulations or experimental imaging techniques. For example, if a researcher imaged gold nanoparticles nucleating into FCC crystal, dupin could help to partition the system into the initial fluid, transition, and crystal regions of the point cloud trajectory. Though, dupin attempts to be general and unopinionated we provide sensible defaults and do not sacrifice ease of use for customizability.

Resources

Related Tools

  • HOOMD-blue: Molecular simulation engine
  • freud: Molecular trajectory analysis
  • ruptures: Change point decection library
  • kneed: Elbow detection library

Example

import dupin as du
import numpy as np
import ruptures as rpt

signal = np.load("signal.npy")
dynp = rpt.Dynp(custom_cost=du.detect.CostLinearFit())
detector = du.detect.SweepDetector(dynp, 8)

chps = detector.fit(signal)

docs/_static/detect.gif

Credits

This package was created with Cookiecutter based on a modified version of audreyr/cookiecutter-pypackage.