Coder Social home page Coder Social logo

quinn2018_taskhmm's Introduction

HMM Analysis on Wakeman & Henson Dataset

Prerequisites

To run these analyses you will require:

- A UNIX-type computer system
- FSL version 5.0.9 (https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/FslInstallation)
- MatLab 2014b or greater
- SPM12 MatLab Toolbox (http://www.fil.ion.ucl.ac.uk/spm/software/download/)
- OSL2 MatLab Toolbox (https://ohba-analysis.github.io/osl-docs/)
- HMM-MAR MatLab toolbox (https://github.com/OHBA-analysis/HMM-MAR)

OSL2 and HMM-MAR are provided as part of this download. SPM12 should be installed into the osl2 directory.

Getting Started

Note: All folder paths referred to here are relative to the location of this download, ie all paths assume that your current directory is the top-level of this download.

Once the download is complete take a look into the toolboxes folder of this download. You will find a copy of HMM-MAR (github repo: https://github.com/OHBA-analysis/HMM-MAR) and OSL (docs: https://ohba-analysis.github.io/osl-docs/). These are the core MatLab toolboxes that will run the analyses.

Next, take a look into the scripts/ folder within the HMM download. This contains the main analysis script and a utils subfolder containing a small helper module with some useful functions used within the analysis.

Get the data:

  1. Download revision 0.1.1 of the Wakeman and Henson dataset (http://doi.org/10.1038/sdata.2015.1). These files can be downloaded anywhere on your system which is convenient and that can be accessed through your MatLab file browser.

Install SPM12 and OSL (note these steps can be carried out whilst the data is downloading):

  1. Download SPM12 and install into the toolboxes/osl folder, SPM is available here: http://www.fil.ion.ucl.ac.uk/spm/software/spm12/

  2. Install OSL. Additional information about the dependencies and install path for OSL can be found in toolboxes/osl/README.md and toolboxes/osl/osl-core/README.md

Configure the analysis:

  1. Open scripts/+utils/get_studyinfo.m. This script defines the locations of the downloaded data, analysis scripts and the location to store results and is used throughout the analysis to load and save data. Edit the file paths to match the chosen locations on your system.

  2. open scripts/hmm_0_initialise.m . This script adds all the relevant paths to your MatLab session and loads the information defined within get_studyinfo.m . Edit the download_path at the top to the location of this download.

Check installation

  1. Open MatLab 2014b (or greater) and run hmm_0_initialise.m toolboxes to the path and load the information from get_studyinfo.m .

  2. Run utils.check_raw_data in your MatLab session. This should confirm that 'All raw data is found in studydir'. If not, check that the studydir path in scripts/+utils/get_studyinfo.m matches the location of your downloaded data.

  3. Run osl_check_installation in your MatLab session. This will print a range of information about your OSL and MatLab environment and highlight any missing dependencies.

Main Analysis

The HMM analysis is completed in a MatLab session in which the hmm_0_initialise.m script has been excecuted.

The HMM analysis proceeds by following the hmm_* scripts within the scripts/ subfolder of this download. They should be run in order, though each script will define and load everything it needs. So you can exit matlab and start a new session in between running two of the scripts as long as hmm_0_initialise.m is excecuted in each new session.

The hmm_* scripts contain additional information and explanations which help to describe the preprocessing and analysis as it is run.

quinn2018_taskhmm's People

Contributors

ajquinn 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.