This repository provides a set of tools using the Open-Ephys data acquisition system and GUI for electromyography (EMG) data.
Code was written and tested using Windows 11, Python 3.10.
- Create a virtual environment using Anaconda or Python's virtualenv
- Using Anaconda:
conda create -n ephys conda activate ephys
- Using Python's virtualenv:
python3 -m venv .ephys source .ephys/bin/activate # Linux call .ephys/Scripts/activate # Windows
- Using Anaconda:
- Clone the repository and navigate to the project directory
git clone https://github.com/Neuro-Mechatronics-Interfaces/Python_Open-Ephys.git cd Python_Open-Ephys
- Install dependencies
pip install -r requirements.txt
- Setup Open-Ephys GUI
- Install from the Open-Ephys website and select your system
- Install the ZQM Plugin for streaming data
The OpenEphysClient class can be easily imported into your current project. The class provides a simple interface to connect to the Open-Ephys GUI and stream data.
from open_ephys import OpenEphysClient
client = OpenEphysClient()
samples = client.get_samples(channel=8)
Check the directory for other demo example scripts