Skip to main content

Python tool for processing MEA files.

Project description

Please note that this project is still in development.

MEAlytics

MEAlytics is an open-source Python tool for processing Microelectrode Array (MEA) data.
This repository is maintained by the Amsterdam University of Applied Sciences (AUAS).

Demo

https://github.com/user-attachments/assets/c8183761-5aa5-45fa-985a-2332cf8d5415

For more information on functionality and usage, please refer to the documentation

CureQ

This tool was created for the CureQ consortium.
For more information about the CureQ project, visit https://cureq.nl/.


Install the library

MEAlytics can be downloaded from the Python Package Index (PyPI) using PIP:

pip install MEAlytics 

More elaborate installation instructions, inlcuding a 'plug-and-play' installer can be found in the User Guide.


Library usage

MEAlytics' functions can be called from a regular Python script, this might be useful to automate processing large datasets.

from MEAlytics.mea import analyse_wells, get_default_parameters

fileadress='/path/to/your/experiment.h5'
sampling_rate=20000
electrode_amount=12

# Get and edit parameters
parameters = get_default_parameters()
parameters['use multiprocessing'] = True

if __name__ == '__main__':
    analyse_wells(fileadress=fileadress,
                  sampling_rate=sampling_rate,
                  electrode_amnt=electrode_amount,
                  parameters=parameters
                  )

MEA GUI

However, the main way that MEAlytics is meant to be used, is with the Graphical User Interface (GUI).
The GUI can be used to initialize the analysis, but also contains other features such as interactive data visualization and plotting.

Opening the GUI

There are multiple ways to launch the GUI:

Opening from Python script

from MEAlytics.GUI.mea_analysis_tool import MEA_GUI

if __name__=="__main__":
    MEA_GUI()

Launching from command prompt

C:\Users>mealytics

or

C:\Users>python -m MEAlytics

Create shortcuts

This process can be simplified by creating shortcuts that in essence perform the same process. In the command prompt, enter “mealytics –create-shortcut”.

C:\Users>MEAlytics --create-shortcut
Desktop shortcut created at C:\Users\Desktop\MEAlytics.lnk

The output should look like this, and a shortcut should appear on your desktop and start menu.

From the installer

When you have installed MEAlytics using the Windows installer, you can open it the same as you would with any application, using the desktop or start menu.


MEAlytics functionality

This section showcases the basic functionality of MEAlytics, for more information, refer to the documentation.

File Analysis

MEAlytics allows for easy batch processing of files.
Optionally, MEAlytics optionally utilizes multiprocessing to significantly speed up the analysis when resources are available!

Spike detection

After performing the analysis, the user can inspect the results using the GUI!
The user can alter all parameters regarding spike, burst and network burst detection and immediately apply these changes to see how they alter the analysis. This allows you to quickly see the effect of parameter changes, without having to redo the entire analysis.

Spike detection

Additonally, the user can zoom in on the data to view the smaller timeframes.

Single channel burst detection

Burst detection is performed using the logISI method, meaning that the thresholds adapt to the input data!

Burst detection

Network burst detection

Network burst detection is performed by looking for high activity bursting periods on multiple channels.

Network burst detection

Features

MEAlytics calculates over 40 descriptive well and electrode features and saves them in a csv file. These can then be read by other applications such as excel.

Features

Group comparison

The resulting features of multiple experiments can be combined to compare the differences between two groups using the plotting module.

Group comparison

Compare two groups with each other and create visualisations for all features. Output is saved in pdf format.

Boxplots

Visualise the development of features over time by simply adding a prefix to your feature files.

Features over time

Parameters

Lastly, MEAlytics offers a wide range of parameters that can be used to alter the analysis! However, all parameters have default values that are backed by literature.

Parameters

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

mealytics-0.1.1.tar.gz (132.4 kB view details)

Uploaded Source

Built Distribution

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

mealytics-0.1.1-py3-none-any.whl (148.1 kB view details)

Uploaded Python 3

File details

Details for the file mealytics-0.1.1.tar.gz.

File metadata

  • Download URL: mealytics-0.1.1.tar.gz
  • Upload date:
  • Size: 132.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.14

File hashes

Hashes for mealytics-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a491cd2b65be7d78e2ced8f12f8508954e9cfc35734127545252c72f508666ec
MD5 ab0622b907a40277060e02a962418e55
BLAKE2b-256 f588d5f4fd16c72e292f8d2c758a15b63bdaad44b5f233aa486a08f72f871b5a

See more details on using hashes here.

File details

Details for the file mealytics-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mealytics-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 148.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.14

File hashes

Hashes for mealytics-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5beffc84eec7379840f7c365de555ac46adf10fc3fc4508ee17c42e529b0c1fe
MD5 e700b5d170535abcb32c860c9b33b9cd
BLAKE2b-256 c5e75d3a29aad5c9036b72d5b4527a96ce3cf5be2116fb9f37e4c9f61343d540

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