Skip to main content

ElecPhys


built with Python3

Documentation Status Ci testing


ElecPhys: A Python package for electrophysiology data analysis. It provides tools for data loading, analysis, conversion, preprocessing, and visualization.


Table of contents


Overview

ElecPhys is a Python package for electrophysiology data analysis. It provides tools for data loading, analysis, conversion, preprocessing, and visualization.. ElecPhys can convert .RHD fiels to .mat and .npz, and it can analyze the data in time and fourier domains. Please take a look at here for the complete list of available tools.


Installation

Source code

  • Clone the repository or download the source code.
  • cd into the repository directory.
  • Run python3 setup.py install

PyPi

Run pip3 install elecphys or pip install elecphys

Usage

It's possible to use ElecPhys as a command line tool or as a Python module.

Command Line

To use ElecPhys from command line, you need to use the following pattern:

➜ elecphys COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]

Where each COMMNAD can be one of the supported commands such as convert_rhd_to_mat, plot_stft, and ... . To learn more about the commnads, you can use the following command:

➜ elecphys --help
Usage: main.py [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...

  ElecPhys is a Python package for electrophysiology data analysis. It
  provides tools for data loading, conversion, preprocessing, and
  visualization.

Options:
  -v, --verbose  Verbose mode
  -d, --debug    Debug mode
  --help         Show this message and exit.

Commands:
  convert_mat_to_npz            Converts MAT files to NPZ files using MAT...
  convert_rhd_to_mat            Converts RHD files to mat files using RHD...
  dft_numeric_output_from_npz   Computes DFT and saves results as NPZ files
  freq_bands_power_over_time    Computes signal's power in given...
  frequncy_domain_filter        Filtering in frequency domain using...
  normalize_npz                 Normalizes NPZ files
  pca_from_npz                  Computes PCA from NPZ files
  plot_avg_stft                 Plots average STFT from NPZ files
  plot_dft                      Plots DFT from NPZ file
  plot_filter_freq_response     Plots filter frequency response
  plot_signal                   Plots signals from NPZ file
  plot_stft                     Plots STFT from NPZ file
  re_reference_npz              re-references NPZ files and save them as...
  stft_numeric_output_from_npz  Computes STFT and saves results as NPZ files
  zscore_normalize_npz          Z-score normalizes NPZ files

Python module

You need to import ElecPhys and use it's modules inside your python code. For example:

import elecphys

# Path to folder containing RHD files
folder_path = "data/rhd_files"
# Path to the output .mat file
output_mat_file = "output.mat"
# Down sample factor
ds_factor = 5
# call rhd to mat conversoin module
elecphys.conversion.convert_rhd_to_mat(folder_path, output_mat_file, ds_factor)

Documentation

Please check this link for full documentation

Metadata

Release files for ElecPhys 0.0.57

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ElecPhys 0.0.57
File Size Uploaded
elecphys-0.0.57.tar.gz 28.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ElecPhys 0.0.57
File Interpreter ABI Platform
ElecPhys-0.0.57-py3-none-any.whl Python 3 none any Details

Total release size: 59.9 kB

Release files / elecphys-0.0.57.tar.gz

Download URL elecphys-0.0.57.tar.gz
Size 28.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ef2a42c1c46db638d4eee339d387fba4eb8bc07ee74b7bc24e57b2a2b446528c
BLAKE2b-256 checksum
How to use checksums
671d38a709db35f51fd65b1a7c1fa0ef8bac4233b127960500cce89a209c3d2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.19

Release files / ElecPhys-0.0.57-py3-none-any.whl

Download URL ElecPhys-0.0.57-py3-none-any.whl
Size 31.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0e44921dc0e2377617122016b4cef89e795422af62bdf8bfb6992433933b2e2
BLAKE2b-256 checksum
How to use checksums
82dda9037902eb07d4d2431ed9f532f2815c044eb535bae25b66c02e4a8f4f77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.19

Release history Release notifications | RSS feed

This release

0.0.57 This release

2 release files

0.0.56

2 release files

0.0.55

2 release files

0.0.54

2 release files

0.0.53

2 release files

0.0.51

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page