Skip to main content

The Hyperscanning Python Pipeline.

Project description

HyPyP 🐍〰️🐍

The Hyperscanning Python Pipeline

PyPI version shields.io CI license Mattermost

⚠️ This software is in beta and thus should be considered with caution. While we have done our best to test all the functionalities, there is no guarantee that the pipeline is entirely bug-free.

📖 See our paper for more explanation and our plan for upcoming functionalities (aka Roadmap).

🤝 If you want to help you can submit bugs and suggestions of enhancements in our Github Issues section.

🤓 For the motivated contributors, you can even help directly in the development of HyPyP. You will need to install Poetry (see section below).

Contributors

Original authors: Florence BRUN, Anaël AYROLLES, Phoebe CHEN, Amir DJALOVSKI, Yann BEAUXIS, Suzanne DIKKER, Guillaume DUMAS
New contributors: Ryssa MOFFAT, Marine Gautier MARTINS, Rémy RAMADOUR, Patrice FORTIN, Ghazaleh RANJBARAN, Quentin MOREAU, Caitriona DOUGLAS, Franck PORTEOUS, Jonas MAGO, Juan C. AVENDANO, Julie BONNAIRE

Installation

pip install HyPyP

Documentation

HyPyP documentation of all the API functions is available online at hypyp.readthedocs.io

For getting started with HyPyP, we have designed a little walkthrough: getting_started.ipynb

Core API

🛠 io.py — Loaders (Florence, Anaël, Ghazaleh, Franck, Jonas, Guillaume)

🧰 utils.py — Basic tools (Amir, Florence, Guillaume)

⚙️ prep.py — Preprocessing (ICA & AutoReject) (Anaël, Florence, Guillaume)

🔠 analyses.py — Power spectral density and wide choice of connectivity measures (Phoebe, Suzanne, Florence, Ghazaleh, Juan, Guillaume)

📈 stats.py — Statistics (permutations & cluster statistics) (Florence, Guillaume)

🧠 viz.py — Inter-brain visualization (Anaël, Amir, Florence, Guillaume)

🎓 Tutorials - Examples & documentation (Anaël, Florence, Yann, Ghazaleh, Caitriona, Guillaume)

fNIRS hyperscanning

🔦 fnirs/*.py — Functional Near Infrared Spectroscopy hyperscanning features (Patrice)

🌊 wavelet/*.py — Continuous Wavelet Transform and Wavelet Transform Coherence (Patrice)

📊 shiny/*.py — Shiny dashboards, install using poetry install --extras shiny (Patrice)

Poetry Installation (Only for Developers and Adventurous Users)

To develop HyPyP, we recommend using Poetry 2.x. Follow these steps:

1. Install Poetry:

   pip install poetry

2. Clone the Repository:

git clone git@github.com:ppsp-team/HyPyP.git
cd HyPyP

3. Install Dependencies:

poetry install

Note: By default, dev dependencies (including JupyterLab) are not included in the main dependencies. To install development dependencies, you can run:

poetry install --with dev

4. Launch Jupyter Lab to Run Notebooks:

Instead of entering a shell, launch Jupyter Lab directly within the Poetry environment:

poetry run jupyter lab

Additional Setup for Poetry

  • Install Poetry Plugins:

To have full functionality with Poetry, add the following plugins:

poetry self add poetry-plugin-shell
poetry self add poetry-plugin-export
  • VS Code Integration:

To make the Poetry virtual environment available in VS Code, you might need to set Poetry to create in-project virtual environments. You can do this either by running:

poetry config virtualenvs.in-project true

or by adding the following line to your .bashrc or .zshrc:

poetry config virtualenvs.in-project true

Child Head Visualization

As of version 0.5.0b5, hypyp now supports visualization of parent-child or adult-child hyperscanning data. This allows for properly scaled and positioned head models when analyzing data from participants of different ages.

To use this functionality, simply set the children=True parameter in visualization functions and specify which participant is the child using the child_head parameter.

Example:

# Visualize parent-child data (epo1 = parent, epo2 = child)
viz_3D_inter(epo1, epo2, C, threshold=0.95, steps=10, children=True, child_head=True)

License

This project is licensed under the BSD 3-Clause License. See the license for details.

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

hypyp-0.5.0b18.tar.gz (116.2 kB view details)

Uploaded Source

Built Distribution

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

hypyp-0.5.0b18-py3-none-any.whl (132.3 kB view details)

Uploaded Python 3

File details

Details for the file hypyp-0.5.0b18.tar.gz.

File metadata

  • Download URL: hypyp-0.5.0b18.tar.gz
  • Upload date:
  • Size: 116.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.2 Darwin/25.2.0

File hashes

Hashes for hypyp-0.5.0b18.tar.gz
Algorithm Hash digest
SHA256 ff1da04d18683e985fa455622507d9cceca6c76c60e4d99f7f091ddd6cb7e953
MD5 1dfff7293d6f255f27e4eaa39f5e9562
BLAKE2b-256 0beb37308ad98106ed1e9574237768ad5a018a20bf431308e8f710abc5946bec

See more details on using hashes here.

File details

Details for the file hypyp-0.5.0b18-py3-none-any.whl.

File metadata

  • Download URL: hypyp-0.5.0b18-py3-none-any.whl
  • Upload date:
  • Size: 132.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.2 Darwin/25.2.0

File hashes

Hashes for hypyp-0.5.0b18-py3-none-any.whl
Algorithm Hash digest
SHA256 36772ee13dbe82c834fdd3a10dc0439415592d47296c1973325f4aad8a3c80e2
MD5 b24c6484902a2436d3897eb1d6d3e49e
BLAKE2b-256 2a481ffe7081d8b5769733008f6e61bb09bff0c1a77db82afd2c3bbbb68107e3

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