PyMNE

Julia interface to MNE-Python via PythonCall

https://github.com/beacon-biosignals/pymne.jl

Science Score: 59.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 2 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    1 of 5 committers (20.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.6%) to scientific vocabulary

Keywords

eeg julia python
Last synced: 6 months ago · JSON representation

Repository

Julia interface to MNE-Python via PythonCall

Basic Info
  • Host: GitHub
  • Owner: beacon-biosignals
  • License: mit
  • Language: Julia
  • Default Branch: main
  • Homepage:
  • Size: 53.7 KB
Statistics
  • Stars: 28
  • Watchers: 24
  • Forks: 7
  • Open Issues: 2
  • Releases: 7
Topics
eeg julia python
Created about 5 years ago · Last pushed 9 months ago
Metadata Files
Readme License Zenodo

README.md

PyMNE

Julia interface to MNE-Python via PythonCall

Build Status CodeCov DOI

Installation

This package uses PythonCall to make MNE-Python available from within Julia. Unsurprisingly, MNE-Python and its dependencies need to be installed in order for this to work and PyMNE will attempt to install when the package is built: this should happen more or less automatically via CondaPkg. You can configure various options via CondaPkg.

Usage

In the same philosophy as PythonCall, this allows for the transparent use of MNE-Python from within Julia. The major things the package does are wrap the installation of MNE in the package installation and load all the MNE functionality into the module namespace. After that, it's just a Python package accessible via using PyMNE in Julia. The usual conversion rules and behaviors from PythonCall apply. The tests test a few conversion gotchas, especially compared to prior versions of this package, which were based on PyCall.

Hint:

You need to explicitly convert vectors of strings to a PyList. For instance julia data = raw.get_data(picks=["Oz","Cz"]) does not work, whereas julia data = raw.get_data(picks=pylist(["Oz","Cz"])) works. The underlying logic is, that the automatic conversion of ["A","B"]is to a juliacall.VectorValue which behaves similar to a pyList - but is apparently not recognized properly by MNE (a vector of int, surprisingly, works though).

Exposing MNE-Python in Julia

For example, in Python you can access the MNE docs like this:

```python import mne

mne.open_docs() ```

With PyMNE, you can do this from within Julia.

```julia using PyMNE

PyMNE.open_docs() ```

The PythonCall infrastructure also means that Python docstrings are available in Julia:

```julia help?> PyMNE.opendocs Python function opendocs.

Launch a new web browser tab with the MNE documentation.

Parameters


kind : str | None Can be "api" (default), "tutorials", or "examples". The default can be changed by setting the configuration value MNEDOCSKIND. version : str | None Can be "stable" (default) or "dev". The default can be changed by setting the configuration value MNEDOCSVERSION. ```

Owner

  • Name: Beacon Biosignals
  • Login: beacon-biosignals
  • Kind: organization

GitHub Events

Total
  • Create event: 11
  • Commit comment event: 1
  • Release event: 2
  • Issues event: 4
  • Watch event: 4
  • Delete event: 9
  • Issue comment event: 5
  • Push event: 13
  • Pull request review comment event: 3
  • Pull request review event: 10
  • Pull request event: 22
Last Year
  • Create event: 11
  • Commit comment event: 1
  • Release event: 2
  • Issues event: 4
  • Watch event: 4
  • Delete event: 9
  • Issue comment event: 5
  • Push event: 13
  • Pull request review comment event: 3
  • Pull request review event: 10
  • Pull request event: 22

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 11
  • Total Committers: 5
  • Avg Commits per committer: 2.2
  • Development Distribution Score (DDS): 0.455
Top Committers
Name Email Commits
Phillip Alday p****y@u****m 6
Alex Arslan a****n@c****t 2
Phillip Alday p****y@b****o 1
jschepers j****s@v****e 1
Kim Laberinto g****t@k****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 11
  • Total pull requests: 33
  • Average time to close issues: 13 days
  • Average time to close pull requests: 5 days
  • Total issue authors: 8
  • Total pull request authors: 6
  • Average comments per issue: 2.18
  • Average comments per pull request: 0.24
  • Merged pull requests: 27
  • Bot issues: 0
  • Bot pull requests: 17
Past Year
  • Issues: 3
  • Pull requests: 18
  • Average time to close issues: 4 days
  • Average time to close pull requests: 6 days
  • Issue authors: 3
  • Pull request authors: 2
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.22
  • Merged pull requests: 13
  • Bot issues: 0
  • Bot pull requests: 14
Top Authors
Issue Authors
  • palday (2)
  • behinger (2)
  • femtomc (2)
  • vladdez (1)
  • JuliaTagBot (1)
  • likanzhan (1)
  • kolia (1)
  • geigermartin (1)
Pull Request Authors
  • dependabot[bot] (23)
  • palday (12)
  • ararslan (2)
  • kimlaberinto (1)
  • glennmoy (1)
  • jschepers (1)
  • femtomc (1)
Top Labels
Issue Labels
Pull Request Labels
dependencies (23) github_actions (6)

Packages

  • Total packages: 1
  • Total downloads:
    • julia 5 total
  • Total dependent packages: 2
  • Total dependent repositories: 0
  • Total versions: 7
juliahub.com: PyMNE

Julia interface to MNE-Python via PythonCall

  • Versions: 7
  • Dependent Packages: 2
  • Dependent Repositories: 0
  • Downloads: 5 Total
Rankings
Dependent repos count: 9.9%
Average: 20.8%
Dependent packages count: 23.0%
Forks count: 24.5%
Stargazers count: 25.8%
Last synced: 6 months ago

Dependencies

.github/workflows/TagBot.yml actions
  • JuliaRegistries/TagBot v1 composite
.github/workflows/YASG.yml actions
  • actions/checkout v1 composite
  • julia-actions/setup-julia latest composite
  • reviewdog/action-suggester v1 composite
.github/workflows/ci.yml actions
  • actions/cache v1 composite
  • actions/checkout v2 composite
  • codecov/codecov-action v2 composite
  • julia-actions/julia-buildpkg v1 composite
  • julia-actions/julia-processcoverage v1 composite
  • julia-actions/julia-runtest v1 composite
  • julia-actions/setup-julia v1 composite
.github/workflows/CompatHelper.yml actions