Giter Site home page Giter Site logo

meg-fmri-group2's Introduction

MEG-fMRI-group2

MEG (and possibly later fMRI) analysis scripts for study group at Adv. Cognitive Neuroscience, Aarhus University.

For each group:

  • Expects two numpy .npy files
    • trials: with shape (trials, sensors, time points).
    • labels: with shape (trials)
  • This file should be put in data/group_x/.
  • Then you run precompute_time_point_data.py (change variables first).
  • Now you can run either single_time_point_analysis.py, for testing the code on a single time point, or all_time_points_analysis.py, for repeated cross-validation of each time point. This can take quite a while.
  • You can define custom model functions in models.py.
  • Results are put in results/time_point_models/single/group_x/.
  • You can use plot_time_point_results.R to plot your results. The images will be saved as a .tif file, which you can use directly or convert to png.

While there is code for running leave-one-group-out cross-validation, it is quite slow and doesn't seem to get good results. It's possible that some kind of windowed analysis (e.g. blocks of 10 time points) could work better.

For help: Please ask questions in an issue here on GitHub so everyone can see the answer :)

For reference only, here are the plots from our results:

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.