neurone_loader

neurone_loader: A Python module for loading EEG data recorded with Bittium NeurOne - Published in JOSS (2019)

https://github.com/heilerich/neurone_loader

Science Score: 93.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in JOSS metadata
  • Academic publication links
    Links to: joss.theoj.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Scientific Fields

Neuroscience Life Sciences - 84% confidence
Last synced: 4 months ago · JSON representation

Repository

Python module for loading EEG data recorded with Bittium NeurOne (formerly MegaEMG)

Basic Info
  • Host: GitHub
  • Owner: heilerich
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 212 KB
Statistics
  • Stars: 2
  • Watchers: 2
  • Forks: 2
  • Open Issues: 0
  • Releases: 10
Created about 7 years ago · Last pushed about 4 years ago
Metadata Files
Readme Changelog License

README.rst

NeuroneLoader
=============

.. image:: https://github.com/heilerich/neurone_loader/actions/workflows/test.yaml/badge.svg?branch=master
   :target: https://github.com/heilerich/neurone_loader/actions/workflows/test.yaml
   :alt: Build Status

.. image:: https://coveralls.io/repos/github/heilerich/neurone_loader/badge.svg?branch=master
   :target: https://coveralls.io/github/heilerich/neurone_loader?branch=master
   :alt: Coverage Status

.. image:: https://readthedocs.org/projects/neurone-loader/badge/?version=latest
   :target: https://neurone-loader.readthedocs.io/en/latest/?badge=latest
   :alt: Documentation Status

.. image:: https://img.shields.io/github/license/heilerich/neurone_loader.svg
   :target: https://github.com/heilerich/neurone_loader/blob/master/LICENSE
   :alt: License

.. image:: https://img.shields.io/pypi/v/neurone_loader.svg
   :target: https://pypi.org/project/neurone-loader/
   :alt: PyPi Package

.. image:: https://img.shields.io/pypi/pyversions/neurone_loader.svg
   :target: https://pypi.org/project/neurone-loader/
   :alt: Supported Python Versions

.. image:: http://joss.theoj.org/papers/c71df4f24b732eabc11b3195a9a8c94d/status.svg
   :target: http://joss.theoj.org/papers/c71df4f24b732eabc11b3195a9a8c94d
   :alt: JOSS status

NeuroneLoader is a python module for loading neurophysiological data recorded with Bittium NeurOne (formerly MegaEMG). It 
therefore allows using the data in pure python processing workflows using the python scientifc software stack (e.g. `numpy
`_) without the need of prior conversion using other (proprietary) software (e.g. MATLAB).
It can also export it to container objects used by the popular `python-mne `_
framework.

Props to Andreas Henelius at Finnish Institute of Occupational Health for figuring out how
to read the NeurOne binary format in pure python as part of his
export2hdf_ project.

* `Installation`_
* `Quick start`_
* Documentation_

.. _Documentation: https://neurone-loader.readthedocs.io/en/latest/
.. _export2hdf: https://github.com/bwrc/export2hdf5

Installation
------------

.. code:: bash

   pip install neurone_loader

If you want to export to `python-mne `_ you must also install MNE and
all it's dependencies.

.. code:: bash

   pip install mne

.. _quick-start:

Quick start
-----------

.. code:: python

   >>> from neurone_loader import Recording
   >>> rec = Recording(path_to_recording_folder)
   >>> rec.event_codes
   array([  0,   1,  12,  13,  99, 128], dtype=int32)

Please note that because raw EEG recordings can be quite large this package is very memory aware. Most data will be
loaded from disk lazily, i.e. the moment you're actually accessing it, and redundant data will be removed from memory
as soon as it has been copied - unless you specify otherwise. Be advised that working with big recordings might still
require a lot of memory.

I recommend looking at the docstrings before executing anything and maybe having a look at Concepts section in
the Documentation_ before you start working with this package.

Contributing
------------

If you encounter any problem feel free to open a issue_ on GitHub. If you found a bug and want to
supply a fix or if you want to contribute a new feature open a `pull request`_. Just make sure that
your code is not breaking any tests and you also supply tests for your code.

.. _issue: https://github.com/heilerich/neurone_loader/issues
.. _pull request: https://github.com/heilerich/neurone_loader/pulls

Testing
~~~~~~~

To run the tests you must first get the test data and then you can run the test with the following commands.
Please run them in the repository directory, not in the test subdirectory.

To get the test data (~2.8GB) you need to install wget_. Then you can 
download the data by running

.. code:: bash

   bash test/get_test_data.sh

Then you can run the tests with

.. code:: bash

   python -m unittest discover -s test -t .

.. _wget: https://www.gnu.org/software/wget/

Owner

  • Name: Felix Heilmeyer
  • Login: heilerich
  • Kind: user
  • Company: Freiburg University Medical Center

JOSS Publication

neurone_loader: A Python module for loading EEG data recorded with Bittium NeurOne
Published
October 01, 2019
Volume 4, Issue 42, Page 1626
Authors
Felix A. Heilmeyer ORCID
Translational Neurotechnology Lab, Department of Neurosurgery, University of Freiburg–Medical Center, Freiburg im Breisgau, Germany
Tonio Ball
Translational Neurotechnology Lab, Department of Neurosurgery, University of Freiburg–Medical Center, Freiburg im Breisgau, Germany
Editor
Roman Valls Guimera ORCID
Tags
neuroscience neurophysiology healthcare EEG file formats

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: 5 months ago

All Time
  • Total Commits: 112
  • Total Committers: 1
  • Avg Commits per committer: 112.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Felix Heilmeyer c****e@f****u 112
Committer Domains (Top 20 + Academic)
fehe.eu: 1

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 1
  • Total pull requests: 8
  • Average time to close issues: 16 minutes
  • Average time to close pull requests: 14 days
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 2.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 8
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • rougier (1)
Pull Request Authors
  • heilerich (8)
Top Labels
Issue Labels
Pull Request Labels
bug (1) enhancement (1)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 28 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 11
  • Total maintainers: 1
pypi.org: neurone-loader

Utilities for loading data recorded with NeurOne

  • Versions: 11
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 28 Last month
Rankings
Dependent packages count: 10.1%
Forks count: 19.2%
Dependent repos count: 21.6%
Average: 25.0%
Stargazers count: 31.9%
Downloads: 42.4%
Maintainers (1)
Last synced: 4 months ago

Dependencies

docs/requirements.txt pypi
  • construct *
  • ipython *
  • nbsphinx *
  • numpy *
  • pandas *
  • sphinx *
  • sphinx-autobuild *
  • sphinx_rtd_theme *
requirements.txt pypi
  • construct >=2.9.45
  • numpy >=1.16.0
  • pandas >=0.23.4
test/test_requirements.txt pypi
  • braindecode 2dbd40cc7951934ad32892770536e360b6188920 test
  • mne >=0.20.8 test
  • mock * test