Metadata-Version: 2.4
Name: cicada-gui
Version: 0.5.0
Summary: CICADA GUI — PyQt5 application for calcium imaging data analysis
Project-URL: Documentation, https://cicada-analysis.readthedocs.io/
Project-URL: Repository, https://gitlab.com/cossartlab/cicada_gui
Project-URL: Issues, https://gitlab.com/cossartlab/cicada_gui/-/issues
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cicada-analysis<0.6,>=0.5
Requires-Dist: PyQt5<6,>=5.15.5
Requires-Dist: qtpy<3,>=2.3
Requires-Dist: matplotlib<4,>=3.8.4
Requires-Dist: sortedcontainers<3,>=2.4
Requires-Dist: PyYAML<7,>=6.0
Requires-Dist: platformdirs<5,>=3.6
Requires-Dist: numpy<3,>=2.0
Dynamic: license-file

# CICADA GUI

[![Documentation](https://readthedocs.org/projects/cicada-analysis/badge/?version=latest)](https://cicada-analysis.readthedocs.io/en/latest/gui/)

<!-- --8<-- [start:intro] -->
`cicada-gui` is the desktop application of CICADA, a pipeline to analyse neurophysiology recordings stored in NWB files (the standard format of Neurodata Without Borders; see the [bioRxiv preprint](https://www.biorxiv.org/content/10.64898/2026.07.03.736318v1)). It is for researchers who prefer to explore their data in a window rather than write code: load sessions, see which analyses suit them, set the parameters, run, and look at the figures.

Sessions and parameters saved in the GUI run unchanged headless ([headless workflow](https://cicada-analysis.readthedocs.io/en/latest/analysis/headless_workflow/)).
<!-- --8<-- [end:intro] -->

Documentation: [cicada-analysis.readthedocs.io](https://cicada-analysis.readthedocs.io/en/latest/gui/).

## Install

Python 3.11 or later. This also installs `cicada-analysis` and `cicada-nwb`. On Windows, read the note on [long paths](https://cicada-analysis.readthedocs.io/en/latest/overview/get_started/).

<!-- --8<-- [start:install-user] -->
From PyPI:
```bash
conda create -n cicada_env python=3.11
conda activate cicada_env
pip install cicada-gui
```

Or from GitLab, a given release (tag):
```bash
conda create -n cicada_env python=3.11
conda activate cicada_env
pip install "git+https://gitlab.com/cossartlab/cicada_gui.git@0.5.0"
```
<!-- --8<-- [end:install-user] -->

## Launch

<!-- --8<-- [start:launch] -->
```bash
conda activate cicada_env
cicada_gui
```
`python -m cicada_gui` does the same.
<!-- --8<-- [end:launch] -->

## A first figure

<!-- --8<-- [start:quickstart] -->
With the demo files installed with CICADA:

1. *File > Select group > Demo files* loads the nine demo sessions.
2. Keep only one session ticked: `P7D_180201_180208_180208_a000`.
3. Click the arrow to the right of the sessions list: the analyses that can run on it appear in the tree.
4. Double-click *Display activity*.
5. In the window that opens, choose an existing folder for the results (*Directory to save the results*, at the bottom).
6. Click *RUN ANALYSIS*; the figure appears in the *Results* tab.

Step by step, with what you see at each step: [quick start](https://cicada-analysis.readthedocs.io/en/latest/gui/quickstart/).
<!-- --8<-- [end:quickstart] -->

## Documentation

[GUI guide](https://cicada-analysis.readthedocs.io/en/latest/gui/gui_guide/): each panel and menu.

<!-- --8<-- [start:equivalence] -->
<!-- --8<-- [end:equivalence] -->

## Upgrade

<!-- --8<-- [start:upgrade-user] -->
From PyPI, the latest release:
```bash
conda activate cicada_env
pip install -U cicada-gui
```

Or from GitLab, a given release: replace the tag with its version (check available releases on [GitLab](https://gitlab.com/cossartlab/cicada_gui/-/releases)):
```bash
conda activate cicada_env
pip install "git+https://gitlab.com/cossartlab/cicada_gui.git@<new_version>"
```
<!-- --8<-- [end:upgrade-user] -->

## Contributing

<details>
<summary>Install and upgrade from a clone</summary>

<!-- --8<-- [start:install-dev] -->
Install the clones from the bottom up (`cicada-nwb`, `cicada-analysis`, `cicada-gui`): each one then uses the clones installed before it; the packages you did not clone come from PyPI.

**Contributing to `cicada-gui` only** (`cicada-analysis` and `cicada-nwb` installed from PyPI):

```bash
git clone https://gitlab.com/cossartlab/cicada_gui.git /path/to/cicada_gui
conda create -n cicada_env python=3.11
conda activate cicada_env
pip install -e /path/to/cicada_gui
```

**Contributing to `cicada-gui` and `cicada-analysis`** (`cicada-nwb` installed from PyPI):

```bash
git clone https://gitlab.com/cossartlab/cicada_analysis.git /path/to/cicada_analysis
git clone https://gitlab.com/cossartlab/cicada_gui.git /path/to/cicada_gui
conda create -n cicada_env python=3.11
conda activate cicada_env
pip install -e "/path/to/cicada_analysis[dev]"
pip install -e /path/to/cicada_gui
```

**Contributing to all three repos**:

```bash
git clone https://gitlab.com/cossartlab/cicada_nwb.git /path/to/cicada_nwb
git clone https://gitlab.com/cossartlab/cicada_analysis.git /path/to/cicada_analysis
git clone https://gitlab.com/cossartlab/cicada_gui.git /path/to/cicada_gui
conda create -n cicada_env python=3.11
conda activate cicada_env
pip install -e "/path/to/cicada_nwb[dev]"
pip install -e "/path/to/cicada_analysis[dev]"
pip install -e /path/to/cicada_gui
```
<!-- --8<-- [end:install-dev] -->

<!-- --8<-- [start:upgrade-dev] -->
**If you only cloned `cicada-gui`**: pull `cicada_gui`, then update `cicada-nwb` and `cicada-analysis` from PyPI.

```bash
cd /path/to/cicada_gui && git pull
conda activate cicada_env
pip install -U cicada-analysis cicada-nwb
```

**If you cloned `cicada-gui` and `cicada-analysis`**: pull both repos, then update `cicada-nwb` from PyPI.

```bash
cd /path/to/cicada_analysis && git pull
cd /path/to/cicada_gui && git pull
conda activate cicada_env
pip install -U cicada-nwb
```

**If you cloned all three repos**: pull each repo.

```bash
cd /path/to/cicada_nwb      && git pull
cd /path/to/cicada_analysis  && git pull
cd /path/to/cicada_gui       && git pull
```
<!-- --8<-- [end:upgrade-dev] -->

</details>

<details>
<summary>What's inside the package</summary>

<!-- --8<-- [start:inside] -->
```
cicada_gui/
├── main_window.py   # Main window: menus, sessions panel, analysis tree
├── sessions/        # Loading sessions (local folder, DANDI dialog), groups (sessions YAML)
├── analysis/        # Analysis tree, parameter window built from each plugin's parameters,
│                    # run thread, results viewer (files and figures)
├── metadata/        # Session metadata display
└── config/          # User settings (results folder, last folders, DANDI mode)
```
<!-- --8<-- [end:inside] -->

</details>
