Code Monkey home page Code Monkey logo

mavin's Introduction

MAVIN

Mep Analysis and Visualization INstrument

A pyqtgraph application for viewing and interpreting EMG data

System Prerequisites

Windows

  • A Terminal: you can use cmd.exe but I recommend Git for Windows
  • Python 2.7.x
    • Install python into the default option C:\Python27 if you can. Then, edit your PATH environment variable to include C:\Python27 (instructions here).
  • Pip for python package management
    • Pip is included in the standard python installation on windows. Simply add the C:\Python27\Scripts directory to your PATH variable (separate directories using a semicolon), and pip should be accessible from the command line.

Mac OS X

  • Python 2.7.x
  • Pip for python package management
    • First, try this: open a terminal and run the command sudo easy_install pip. If this doesn't work,
    • Download get-pip.py and run the command sudo python /path/to/get-pip.py in your terminal.

=

Python prerequisites

=

Windows

Many of these packages have been archived by Christopher Gohlke in order to be easy to install. For several of these requirements, I'll link to his Unofficial Windows Binaries page. Simply find the package you want, select the correct version based on your architecture (32- or 64-bit) and python version (use "27" or "26" depending on the version of Python you downloaded). For example:

Your Python Version Your system architecture You should download
2.6.x 32-bit numpy‑1.9.2+mkl‑cp26‑none‑win32.whl
64-bit numpy‑1.9.2+mkl‑cp26‑none‑win_amd64.whl
2.7.x 32-bit numpy-1.9.2+mkl-cp27-none-win32.whl
64-bit numpy‑1.9.2+mkl‑cp27‑none‑win_amd64.whl

A wheel is a ZIP-format archive with a specially formatted filename and the .whl extension. More info on python wheels here. Once you download the correct wheel file, use pip in the terminal to install it:

pip install C:\Users\chris\Downloads\numpy‑1.9.2+mkl‑cp27‑none‑win_amd64.whl

=

Mac OS X

  • NumPy for numerical computing
    • Run sudo pip install numpy in your terminal.
  • neo for reading electrophysiology data in Python
    • Run sudo pip install neo in your terminal.
  • Qt 4.8.x Libraries
  • PyQt4
  • PyQtGraph
    • Run sudo pip install pyqtgraph in your terminal.
    • If this doesn't work, follow the instructions on the PyQtGraph homepage

Download the MEPViewer

If you have git available in your command line or terminal, execute:

git clone git://github.com/chrismullins/MEPViewer.git

or simply download and extract the tarball from this page.

Usage

Once you have downloaded the repository, run it in a terminal:

python bin/MEPViewerApp.py

This should open up the main windows. From here you should be able to interact with the software through this window.

Keyboard shortcuts

Ctrl+X: Exit the application

Ctrl+O: Open a data file

Ctrl+A: Annotate the signal

Ctrl+S: Save info to CSV

Ctrl+W: Clear the window to load another data file

The main window, after loading a data file, should look something like this: alt tag

Use the scroll wheel inside the plot to zoom in or out, and on the axes to scale the axes. Clicking and dragging inside the plot allows you to zoom in on any part of the plot: alt tag Use the Ctrl+A shortcut to annotate the triggers along with their max and min responses, or navigate through the top-level menu. alt tag

mavin's People

Contributors

chrismullins avatar

Watchers

 avatar

mavin's Issues

Calculate "Latency" in Basic/PAS MEP Mode

This would be the time from the last TMS trigger to the first (either min or max) of the MEP. Add this as a field in the CSV, and figure out a way to report it graphically.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.