Git Product home page Git Product logo

avt_analysis's Introduction

Audio-visual-tactile 7 tesla

Code for the analysis of the AVT fMRI high-res experiment.

Dependencies

fMRI and psychophysics experiment

  • Presentation (?????)
  • HRTF (MIT and HPC...)
  • piezzo stimulator (??????)
  • palamedes to analyze (?????)

fMRI analysis

You will need matlab and SPM12 to make use of this code.

Matlab, toolbox and other dependencies Used version Purpose
Matlab 2016a
SPM12 v6685 preprocessing, GLM, ...

Other functions from github and the mathwork file exchange are needed. All of them are shipped with this repo in the lib folder or can be pulled from github as submodules.

So to install all the code and its dependencies you simply to run:

git clone --recurse-submodules https://github.com/Remi-Gau/AVT_analysis.git

Set up

When in the root folder simply run initEnv from the matlab prompt to add all relevant folders to the matlab path.

Settings

Files used to stored settings are in the following folders:

src/settings/
lib/laminar_tools/src/settings/

Compiling mex file for PCM analysis

You might need to compile a a mex file to run the PCM if you are on Linux.

cd(fullfile('lib', 'pcm_toolbox'))
mex traceABtrans.c

Recreating figures

For BOLD and MVPA analysis

The script src/figures/PlotBoldProfile.m will plot the main figures for BOLD profile results.

Development

virtualenv -p /usr/bin/python3.8 env
source env/bin/activate

pip install -r requirements.txt
pre-commit install

avt_analysis's People

Contributors

pre-commit-ci[bot] avatar remi-gau avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

hillhillll

avt_analysis's Issues

figure profile plotting min max

  • refactor the way the min and maximum for the B and S parameters is estimated.
  • simplify the plotting functions:: they do too many things

MVPA pipeline: problems left to fix

MVPA pipeline: problems left to fix

  • run subject 06 that has one run with some missing conditions. This messes up the partition of the data for one fold.
  • figure out why there is abnormally high classification accuracy even when running on noise data

Originally posted by @Remi-Gau in #10 (comment)

check when computing profile contrasts

For the contrast between 2 conditions C1 and C2 (in a given ROI), here are the steps:

a) take median value across vertices for C1 and C2 at a given layer L (for each run R and each subject S)
b) compute the difference D between C1 and C2 (for each L, R, S)
b) take mean value of D across runs (for each L, S)
c) take mean value across subject (for each L)

Wouldn't it be better when contrasting conditions to do b) before a): in other words do within vertex contrast before averaging across contrasts?

I think that if we were using mean across vertices this would not make a difference, but because we take the median this could in principle change things (because you are in fact then contrasting the value between different vertices).

I honestly don't think the difference will be huge (we have many vertices and the median is fairly robust estimator) but just to make sure we do things in clean fashion, it would be better, no?

run PCM model family comparison

Compare three families

  • S(A,V,T)
  • I(A,V,T)
  • I & S one family for the auditory re. visual area

Question is whether

  1. we equate priors across families (i.e. then models from a family with many members have a lower prior) or
  2. equate priors over models (i.e. then models have all the same prior likelihood, but different families have different priors)

In spm_compare_family, 1 is the default

Needs fixing

Broken functions

Litteraly will not run:

mvpa/vol/MVPA_vol_grp_avg.m

extract raw data mapped on surface

AVT_analysis/pcm/surf/Extract_wht_data_for_PCM_profile_stim_surf.m

can extract data that have gone through the RSA toolboxMVNN or not (raw) but when extracting the raw data for stimuli and targe, a different number of vertex was extracted for stimuli and targets making it impossible to concatenate the 2 datasets (stimuli and targets).

This will likely require to reextract the data directly from the VTK files.

Run LMM model analysis

  • easy: run with matlab using the code from AV-att
  • better: run with R

  • implement a step wise approach

improve set_dir

make it add only some of the subfolders of the dependency (for example CPP_SPM)

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.