Code Monkey home page Code Monkey logo

neural-flows's Introduction

Neural Flows: estimation of velocities, detection and classification singularities in 3D+t brain data

If you use this toolbox, please cite:

DOI

Roberts JA, Gollo LL, Abeysuriya R, Roberts G, Mitchell PB, Woolrich MW, Breakspear M. Metastable brain waves. (2019) Available from here.

Sanz-Leon P, Gollo LL, and Roberts JA (2020) (in prep).

Brief Description

This is neural-flows, a library to estimate wave velocities and singularities in 3D+t in neuroimaging data.
The figure below gives you an idea of a typical workflow you can run with this toolbox:
Each link of the path is a component of the core-module namely:

  • data interpolation,
  • flow estimation,
  • singularity detection and classification, and
  • streamline tracing.

The toolbox has a number of ancillary modules, including examples with exemplary scripts to execute a full or partial workflow; external, which contains code implemented by others, the most prominent being C-NEM invoked by so-called meshless methods, and the Hungarian method used track singularities; and finally, utils which gathers small standalone functions that support the main modules.

alt text

Getting started

Dependencies:

MATLAB

  • tested on R2018b & R2020a
  • in principle should work on any OS that MATLAB supports; tested on Windows 10, Debian 10, Ubuntu 20.04, Ubuntu 16.l4, OpenSuse 15.1

CNEM, https://m2p.cnrs.fr/sphinxdocs/cnem/index.html

- used version (v03, 2014-05-04) available here: https://ff-m2p.cnrs.fr/frs/?group_id=14
- aka cnemlib: https://au.mathworks.com/matlabcentral/linkexchange/links/3875

input data

- `data`: a tpts-by-n 2D array with the data for unstructured datasets (i.e., soruce reconstructed MEG data) 
- `locs`: a n-by-3 2D array with the locations of nodes/rois/sources, expressed in mm or m.
- `ht`  : sampling period expressed in ms or s.

Installation:

If you download the zip folder, first unzip and then ...

  • Windows 10: see the instructions here.
  • Linux: on the terminal change directory to neura-flows folder, then start matlab. That's it. The toolbox paths should be appended automatically.

If you clone the repo, same rules as above apply.

What can the toolbox do?

A bunch of things, mostly the ones described in the diagram above.

To get started follow the next steps (timestamp: Fri 31 Jul 2020 21:21:17 AEST):

  1. (Optional) Inside directory neural-flows, make a new directory call scratch (by default we will store results there, you can change it later ...)
  2. (Optional) Open the file rotating_wave_uah_in.json under examples/ 1a.(Optional) if you are on Windows change line 6 of that file
      "dir_tmp": "/tmp",    

to

   "dir_tmp": "C:\Users\guest\AppData\Local\Temp",    

or any other directory where some temporary files will be stored during execution.

1b. (Optional) If you are on Mac, the default value /tmp should work, otherwise change it to an appropriate temp folder.

1c. (Optional) If you re on Linux, you're good to go.

  1. Run the function under examples/ at
rotating_wave('uah')

It should take about 5 minutes to run everything and pop up figures with flow mode decomposition and singularity tracking!

Flow mode decomposition

alt text

Singularity statistics

alt text alt text

Where is the user manual?

Coming soon, sorry <(~.~)> ...

neural-flows's People

Contributors

pausz avatar stuart-knock avatar

Watchers

James Cloos 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.