diff options
| author | Julien Castelneau <julien.castelneau@inria.fr> | 2026-08-02 17:23:46 +0200 |
|---|---|---|
| committer | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-08-02 23:15:02 +0200 |
| commit | ba076cb64695ed3f6dac80c7f29d69aaced4575c (patch) | |
| tree | ceda03f8595992097a48bb5960a3ec850c23f398 | |
| parent | 35b5498eb14028e2ce4424f91ea76246e80286fc (diff) | |
electrophysiology: Add mne-cpp.
* guix-science/packages/electrophysiology.scm (mne-cpp): New variable.
Co-Authored-By: Ghislain Vaillant <ghislain.vaillant@inria.fr>
| -rw-r--r-- | guix-science/packages/electrophysiology.scm | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/guix-science/packages/electrophysiology.scm b/guix-science/packages/electrophysiology.scm index 0f65e37..e90cb0d 100644 --- a/guix-science/packages/electrophysiology.scm +++ b/guix-science/packages/electrophysiology.scm | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | #:use-module (gnu packages boost) | 7 | #:use-module (gnu packages boost) |
| 8 | #:use-module (gnu packages check) | 8 | #:use-module (gnu packages check) |
| 9 | #:use-module (gnu packages cmake) | 9 | #:use-module (gnu packages cmake) |
| 10 | #:use-module (gnu packages compression) | ||
| 10 | #:use-module (gnu packages databases) | 11 | #:use-module (gnu packages databases) |
| 11 | #:use-module (gnu packages graph) | 12 | #:use-module (gnu packages graph) |
| 12 | #:use-module (gnu packages image-processing) | 13 | #:use-module (gnu packages image-processing) |
| @@ -27,6 +28,7 @@ | |||
| 27 | #:use-module (gnu packages time) | 28 | #:use-module (gnu packages time) |
| 28 | #:use-module (gnu packages xml) | 29 | #:use-module (gnu packages xml) |
| 29 | #:use-module (gnu packages xorg) | 30 | #:use-module (gnu packages xorg) |
| 31 | #:use-module (guix-science packages algebra) | ||
| 30 | #:use-module (guix-science packages machine-learning) | 32 | #:use-module (guix-science packages machine-learning) |
| 31 | #:use-module (guix-science packages neuroscience) | 33 | #:use-module (guix-science packages neuroscience) |
| 32 | #:use-module (guix-science packages python-xyz) | 34 | #:use-module (guix-science packages python-xyz) |
| @@ -274,6 +276,61 @@ powerful analysis methods of MNE-Python to researchers without requiring | |||
| 274 | programming skills.") | 276 | programming skills.") |
| 275 | (license license:bsd-3))) | 277 | (license license:bsd-3))) |
| 276 | 278 | ||
| 279 | (define-public mne-cpp | ||
| 280 | (package | ||
| 281 | (name "mne-cpp") | ||
| 282 | (version "2.3.0") | ||
| 283 | (source | ||
| 284 | (origin | ||
| 285 | (method git-fetch) | ||
| 286 | (uri (git-reference | ||
| 287 | (url "https://github.com/mne-tools/mne-cpp") | ||
| 288 | (commit (string-append "v" version)) | ||
| 289 | (recursive? #t))) | ||
| 290 | (file-name (git-file-name name version)) | ||
| 291 | (sha256 | ||
| 292 | (base32 "0nz4lkzhcn6y6xixqv5a9px8bl2zzqcgynag5gl4hmb40ws1vhwi")))) | ||
| 293 | (build-system cmake-build-system) | ||
| 294 | (arguments | ||
| 295 | (list | ||
| 296 | #:tests? #f ;FIXME | ||
| 297 | #:configure-flags | ||
| 298 | #~(list "-DBUILD_EXAMPLES:BOOL=OFF" "-DBUILD_TESTS:BOOL=ON") | ||
| 299 | #:phases | ||
| 300 | #~(modify-phases %standard-phases | ||
| 301 | (add-after 'unpack 'use-system-skigen | ||
| 302 | (lambda _ | ||
| 303 | (substitute* (list "src/libraries/dsp/CMakeLists.txt" | ||
| 304 | "src/libraries/sts/CMakeLists.txt") | ||
| 305 | (("set\\(SOURCES") | ||
| 306 | (string-join (list "find_package(Skigen REQUIRED CONFIG)" | ||
| 307 | "set(SOURCES") "\n"))))) | ||
| 308 | (add-after 'install 'install-missing-libraries | ||
| 309 | (lambda _ | ||
| 310 | (let ((lib (string-append #$output "/lib")) | ||
| 311 | (out (string-append (getcwd) | ||
| 312 | "/../source/out/RelWithDebInfo/lib"))) | ||
| 313 | (for-each (lambda (file) | ||
| 314 | (install-file file lib)) | ||
| 315 | (find-files out | ||
| 316 | (lambda (file stat) | ||
| 317 | (elf-file? file)))))))))) | ||
| 318 | (inputs (list onnxruntime | ||
| 319 | qtbase | ||
| 320 | qtmultimedia | ||
| 321 | qtserialport | ||
| 322 | qtshadertools | ||
| 323 | qtsvg | ||
| 324 | zlib)) | ||
| 325 | (native-inputs (list eigen-5 skigen)) | ||
| 326 | (home-page "https://mne-cpp.github.io/") | ||
| 327 | (synopsis "C++ framework for real-time functional brain imaging") | ||
| 328 | (description | ||
| 329 | "@code{MNE-CPP} is an open-source, cross-platform C++ framework for | ||
| 330 | real-time and offline processing of MEG, EEG, and related neurophysiological | ||
| 331 | data.") | ||
| 332 | (license license:bsd-3))) | ||
| 333 | |||
| 277 | (define-public mnelab | 334 | (define-public mnelab |
| 278 | (package | 335 | (package |
| 279 | (name "mnelab") | 336 | (name "mnelab") |
