Coder Social home page Coder Social logo

slieped / spin-test Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spin-test/spin-test

0.0 2.0 0.0 16.57 MB

This toolbox includes MATLAB scripts to perform a "spin test" of anatomical correspondence between cortical surface maps, as presented in "On testing for spatial correspondence between maps of human brain structure and function," Alexander-Bloch et al., NeuroImage, 2018. See Wiki for a selection of other papers that use this code.

License: MIT License

MATLAB 99.91% Objective-C 0.03% M 0.06%

spin-test's Introduction

This toolbox includes scripts to perform a "spin test" of anatomical correspondence between 
cortical surface maps in either FreeSurfer or CIVET. 
These methods are described in "On testing for spatial correspondence between maps of 
human brain structure and function," Alexander-Bloch et al., NeuroImage, 2018.

Contents:
data/ directory contains files needed to run scripts
script/ directory includes all m files 

Requirements:
1) AxelRot.m (included in scripts directory) from file exchange, 
https://www.mathworks.com/matlabcentral/fileexchange/30864-3d-rotation-about-shifted-axis
2) FreeSurfer Matlab toolbox for FreeSurfer IO and it is included in FreeSurfer installation 
3) Toolbox SurfStat (included in scripts directory) for CIVET IO,  
http://www.bic.mni.mcgill.ca/ServicesSoftware/StatisticalAnalysesUsingSurfstatMatlab

Tutorials:
---------
1 Run DemonSpinFS.m
Demonstrate how spin rotation works with a faked dataset in FreeSurfer fsaverage5.
2a Run SpinPermuFS.m
Generate the null distribution of the map in FreeSurfer by randomly spinning user-defined # times
See example included in this code.
2b Run SpinPermuCIVET.m
Generate the null distribution of the map in CIVET by randomly spinning user-defined # times
See example included in this code.
3 Run pvalvsNull.m
Calculate the p-value of correlation between two surface maps based on
the null distribution of spins of map 1, output from 2a or 2b.
See example included in this code.

This toolbox was developed and tested under Matlab R2015a by Aaron Alexander-Bloch & Siyuan Liu.

2018-04-22

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.