Metadata-Version: 2.3
Name: hypyp
Version: 0.5.0b4
Summary: The Hyperscanning Python Pipeline.
License: BSD-3-Clause
Keywords: hyperscanning,neuroscience,pipeline,statistics,visualization
Author: Anaël AYROLLLES
Author-email: anael.ayrollles@pasteur.fr
Requires-Python: >=3.10,<3.13
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering
Requires-Dist: autoreject (>=0.4.3)
Requires-Dist: certifi (>=2022.12.07)
Requires-Dist: future (>=0.18.3)
Requires-Dist: h5io (>=0.1.7,<0.2.0)
Requires-Dist: importlib-resources (>=6.0.0,<7.0.0)
Requires-Dist: matplotlib (>=3.7.2,<4.0.0)
Requires-Dist: meshio (>=5.3.4,<6.0.0)
Requires-Dist: mistune (>=2.0.4)
Requires-Dist: mne (>=1.3)
Requires-Dist: numpy (>=2.2.3,<3.0.0)
Requires-Dist: pandas (>=2.0.3,<3.0.0)
Requires-Dist: scipy (>=1.11.1,<2.0.0)
Requires-Dist: statsmodels (>=0.14.4,<0.15.0)
Requires-Dist: tqdm (>=4.46.0,<5.0.0)
Project-URL: Documentation, https://hypyp.readthedocs.io
Project-URL: Homepage, https://github.com/ppsp-team/HyPyP
Project-URL: Repository, https://github.com/ppsp-team/HyPyP
Description-Content-Type: text/markdown

# HyPyP 🐍〰️🐍

The **Hy**perscanning **Py**thon **P**ipeline

[![PyPI version shields.io](https://img.shields.io/pypi/v/hypyp.svg)](https://pypi.org/project/HyPyP/) [![CI](https://github.com/ppsp-team/HyPyP/actions/workflows/Build.yml/badge.svg)](https://github.com/ppsp-team/HyPyP/actions/workflows/Build.yml) <a href="https://hypyp.readthedocs.io"><img src="https://readthedocs.org/projects/hypyp/badge/?version=latest"></a> [![license](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause) [![Mattermost](https://img.shields.io/discord/1065810348944408616?color=blue)](https://discord.gg/zYzjeGj7D6)

⚠️ 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](https://academic.oup.com/scan/advance-article/doi/10.1093/scan/nsaa141/5919711) 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](https://github.com/ppsp-team/HyPyP/issues).

🤓 For the motivated contributors, you can even help directly in the development of HyPyP. You will need to install [Poetry](https://python-poetry.org/) (see section below).

## Contributors
Original authors: Florence BRUN, Anaël AYROLLES, Phoebe CHEN, Amir DJALOVSKI, Yann BEAUXIS, Suzanne DIKKER, Guillaume DUMAS  
New contributors: 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](https://hypyp.readthedocs.io/)

For getting started with HyPyP, we have designed a little walkthrough: [getting_started.ipynb](https://github.com/ppsp-team/HyPyP/blob/master/tutorial/getting_started.ipynb)

## Core API

🛠 [io.py](https://github.com/ppsp-team/HyPyP/blob/master/hypyp/io.py) — Loaders (Florence, Anaël, Ghazaleh, Franck, Jonas, Guillaume)

🧰 [utils.py](https://github.com/ppsp-team/HyPyP/blob/master/hypyp/utils.py) — Basic tools (Amir, Florence, Guillaume)

⚙️ [prep.py](https://github.com/ppsp-team/HyPyP/blob/master/hypyp/prep.py) — Preprocessing (ICA & AutoReject) (Anaël, Florence, Guillaume)

🔠 [analyses.py](https://github.com/ppsp-team/HyPyP/blob/master/hypyp/analyses.py) — Power spectral density and wide choice of connectivity measures (Phoebe, Suzanne, Florence, Ghazaleh, Juan, Guillaume)

📈 [stats.py](https://github.com/ppsp-team/HyPyP/blob/master/hypyp/stats.py) — Statistics (permutations & cluster statistics) (Florence, Guillaume)

🧠 [viz.py](https://github.com/ppsp-team/HyPyP/blob/master/hypyp/viz.py) — Inter-brain visualization (Anaël, Amir, Florence, Guillaume)

🎓 [Tutorials](https://github.com/ppsp-team/HyPyP/tree/master/tutorial) - Examples & documentation (Anaël, Florence, Yann, Ghazaleh, Caitriona, Guillaume)

## Poetry Installation (Only for Developers and Adventurous Users)

To develop HyPyP, we recommend using [Poetry 2.x](https://python-poetry.org/). Follow these steps:

### 1. Install Poetry:
```bash
   pip install poetry
```

### 2. Clone the Repository:

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

### 3. Install Dependencies:

```bash
poetry install
```

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

```bash
poetry install --with dev
```

### 4. Launch Jupyter Lab to Run Notebooks:
Instead of entering a shell, launch Jupyter Lab directly within the Poetry environment:

```bash
poetry run jupyter lab
```

## Additional Setup for Poetry

- **Install Poetry Plugins:**

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

```bash
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:

```bash
poetry config virtualenvs.in-project true
```

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

```bash
poetry config virtualenvs.in-project true
```

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