Weegit - electrophysiology marking application
Project description
Weegit
Introduction
Weegit is a cross-platform application for electrophysiology marking. Works with Windows/Mac/Linux.
It uses specific filesystem architecture that is maintained by the application.
$EXPERIMENT_weegit
├── header.json
├── lfp
│ ├── $CH_IDX.lfp
├── sessions
│ ├── $SESSION_NAME.json
Weegit GUI
Run weegit through terminal to start GUI.
$ weegit
Developers
Weegit has a convenient interface to work with its data.
Convert your experiment data to weegit format
from pathlib import Path
from weegit.converter.weegit_io import WeegitIO
PATH_TO_EXP_PARENT_DIR = Path("/path/to/parent/dir/")
EXP_NAME = "20252222"
EXP_DIR = PATH_TO_EXP_PARENT_DIR / EXP_NAME
OUT_WEEGIT_FOLDER = PATH_TO_EXP_PARENT_DIR / (EXP_NAME + "_weegit")
for progress in WeegitIO.convert_from_source_to_weegit(EXP_DIR):
print(f"\rProgress: {progress}%", end='', flush=True)
print(list(OUT_WEEGIT_FOLDER.glob("*")))
Note: This requires separate $EXPERIMENT folder. Current supported formats are: old Weegit, rhs (XDAQ)
Work with the weegit data
from weegit.core.weegit_session import WeegitSessionManager, UserSession
# Init session
session = WeegitSessionManager()
session.init_from_folder(OUT_WEEGIT_FOLDER)
# Work with data
print(session.experiment_data.header)
sweep_idx, start_point, end_point = 0, 0, 10_000
for ch_idx in range(session.experiment_data.header.number_of_channels):
channel_data = session.experiment_data.data_memmaps[ch_idx][sweep_idx, start_point:end_point]
print(f"Channel {session.experiment_data.header.channel_info.name[ch_idx]} max voltage val: ",
max(session.experiment_data.from_int16_to_voltage_val(channel_data, ch_idx)))
# Work with GUI session
session_filename = UserSession.session_name_to_filename("your_session")
session.switch_sessions(session_filename)
print(session.current_user_session.gui_setup)
License
The code and data files in this distribution are licensed under the terms of the GNU General Public License version 3 as published by the Free Software Foundation. See https://www.gnu.org/licenses/ for a copy of this license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file weegit-0.0.2.tar.gz.
File metadata
- Download URL: weegit-0.0.2.tar.gz
- Upload date:
- Size: 60.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61b5eedacb33d5dfd5d1e82b5b4f990e1c03116dcf3c83bea2b09ec78982d127
|
|
| MD5 |
e63a31f1e3f0cbb8e21bac51f1ad81d3
|
|
| BLAKE2b-256 |
44f9ea5d6aae22c647c32e11043bfa79ce5897d8f0b889a0dc72df98e1ac37a5
|
File details
Details for the file weegit-0.0.2-py3-none-any.whl.
File metadata
- Download URL: weegit-0.0.2-py3-none-any.whl
- Upload date:
- Size: 70.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edf153d98af267da00fae1294e9db960627238d2ead1f71bf14054be9529f54b
|
|
| MD5 |
a059b59dd0b8297bca7e94358ec0aaae
|
|
| BLAKE2b-256 |
a265b644ffee956f9683deb8431929f63bba568cfa8a9e09f13c34c42fdfe93f
|