Skip to main content

A modular nanopore data analysis package.

Project description

ionique

Pylint Pytest Documentation License: MIT

A modular nanopore signal analysis framework for ionic current data. Load recordings, filter noise, detect translocation events, segment sub-states, and extract features — all through a composable Python API or an interactive GUI.

Built for experimentalists who need custom analysis workflows without writing everything from scratch.

Quick start

from ionique.io import EDHReader
from ionique.datatypes import TraceFile
from ionique.parsers import AutoSquareParser
from ionique.utils import Filter, Trimmer, extract_features

# Load and preprocess
metadata, current, voltage = EDHReader("experiment.edh", voltage_compress=True)
trace = TraceFile(current, voltage=voltage, metadata=metadata)
Filter(cutoff_frequency=5000, filter_type="lowpass",
       sampling_frequency=trace.sampling_freq)(trace.current)
Trimmer(samples_to_remove=500)(trace)

# Detect events and extract features
detector = AutoSquareParser(threshold_baseline=0.7, expected_conductance=1.9)
trace.parse(detector, newrank="event", at_child_rank="vstepgap")
df = extract_features(trace, "event", ["mean", "std", "duration"])

Features

  • File I/O — read EDH, OPT, and ABF nanopore recordings
  • Signal preprocessing — lowpass/highpass/bandpass filtering, clock interference removal, voltage-step edge trimming
  • Event detection — AutoSquareParser for rectangular blockades, SpikeParser for brief spikes, lambda_event_parser for simple thresholds
  • Sub-state segmentation — SpeedyStatSplit (Cython-accelerated) resolves multi-level current structure within events
  • Feature extraction — export event statistics to pandas DataFrames
  • Visualization — quick-plot traces with qp_trace(), interactive dashboards with Panel/Bokeh
  • GUI workflows — Panel widgets for loading files, configuring parsers, and inspecting events in Jupyter

Installation

Python 3.10–3.13. Requires a C compiler for the Cython extension. To get the latest release:

pip install ionique

For latest unreleased version directly from GitHub:

pip install git+https://github.com/wanunulab/ionique.git

For development:

git clone https://github.com/wanunulab/ionique.git
cd ionique
pip install -e .

For GUI/dashboard features (Panel, Bokeh):

pip install ionique[panel]

Or in a development install:

pip install -e ".[panel]"

Documentation

Full user guide, tutorials, and API reference at ionique.readthedocs.io.

License

MIT License — see LICENSE for details.

© 2026 The Wanunu Lab.

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

ionique-0.4.0.tar.gz (282.6 kB view details)

Uploaded Source

File details

Details for the file ionique-0.4.0.tar.gz.

File metadata

  • Download URL: ionique-0.4.0.tar.gz
  • Upload date:
  • Size: 282.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ionique-0.4.0.tar.gz
Algorithm Hash digest
SHA256 221405a5bdbb3240e6858b7c095446026c250b23285f0ae6c120ac0233b94fa7
MD5 ce5dfd8d42cb99ce6667e6f42d833cca
BLAKE2b-256 afe0bae69504eeed67cad8cc6d7afe0631111c02f9c0053201d77b640a69dcc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for ionique-0.4.0.tar.gz:

Publisher: publish.yml on wanunulab/ionique

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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