GithubHelp home page GithubHelp logo

eegkit / mne-realtime Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mne-tools/mne-realtime

0.0 0.0 0.0 7.22 MB

Realtime data analysis with MNE-Python

Home Page: https://mne.tools/mne-realtime/

License: BSD 3-Clause "New" or "Revised" License

Shell 0.15% Python 97.26% Makefile 2.59%

mne-realtime's Introduction

MNE-realtime

This is a package for realtime analysis of MEG/EEG data with MNE. The documentation can be found here:

Dependencies

Installation

We recommend the Anaconda Python distribution. We require that you use Python 3. You may choose to install mne-realtime via pip.

Besides numpy and scipy (which are included in the standard Anaconda installation), you will need to install the most recent version of MNE using the pip tool:

$ pip install -U mne

Then install mne-realtime:

$ pip install https://api.github.com/repos/mne-tools/mne-realtime/zipball/main

These pip commands also work if you want to upgrade if a newer version of mne-realtime is available. If you do not have administrator privileges on the computer, use the --user flag with pip.

Quickstart

info = mne.io.read_info(op.join(data_path, 'MEG', 'sample',
                        'sample_audvis_raw.fif'))
with FieldTripClient(host='localhost', port=1972,
                     tmax=30, wait_max=5, info=info) as rt_client:
    rt_epochs = RtEpochs(rt_client, event_id, tmin, tmax, ...)
    rt_epochs.start()
    for ev in rt_epochs.iter_evoked():
        epoch_data = ev.data

    # or alternatively, get last n_samples
    rt_epoch = rt_client.get_data_as_epoch(n_samples=500)
    continuous_data = rt_epoch.get_data()

The FieldTripClient supports multiple vendors through the FieldTrip buffer. It can be replaced with other clients such as LSLClient. See API for a list of clients.

Bug reports

Use the github issue tracker to report bugs.

mne-realtime's People

Contributors

larsoner avatar massich avatar jasmainak avatar timonmerk avatar charlesbmi avatar teonbrooks avatar drammock avatar oori avatar rob-luke avatar sappelhoff avatar

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.