Code Monkey home page Code Monkey logo

rex's Introduction

REX Region of interest EXtraction toolbox

Extracts values from the selected NIFTI data files at the specified Regions of Interest (ROIs)

Developed by Alfonso Nieto-Castanon

This software has now been integrated with and is being further developed as part of CONN


                                                        Installation

This software requires SPM (SPM - http://www.fil.ion.ucl.ac.uk/spm/)

After downloading this software simply prepend the rex directory to your MATLAB path to complete the installation.


                                                               Usage

rex;

Launches interactive GUI

MEANS=rex(SOURCES, ROIS);

where SOURCES is a list of M source volume files (image files to extract from)

and ROIS is list of N roi files (image or .tal files)

returns the mean values of each of the source volume files at the voxels

identified by each ROI in the matrix MEANS (with size M x N).

rex(SOURCES, ROIS, 'paramname1',paramvalue1,'paramname2',paramvalue2,...);

permits the specification of additional parameters:

    'summary_measure' :     choice of summary measure (across voxels) [{'mean'},'eigenvariate','weighted mean','weighted eigenvariate','median','sum','weighted sum','count','max',min']
    
    'level' :               summarize across [{'rois'},'clusters','peaks','voxels']
    
    'scaling' :             type of scaling (for timeseries extraction) [{'none'},'global','roi']
    
    'conjunction_mask':     filename of conjunction mask volume(s)
    
    'conjunction_threshold' absolute-threshold defining voxels within conjunction_mask [0] (e.g. conjunction_threshold=0 or conjunction_threshold={'raw', 0} keeps all voxels with mask values above zero within each ROI; conjunction_threshold={'voxels', 10} keeps only the 10 voxels with the highest values in the conjunction mask within each ROI; conjunction_threshold={'percent', .10} keeps only voxels with top 10% values in the conjunction mask within each ROI  
    
    'output_type' :         choice of saving output ['none','save','savefiles',{'saverex'}]
    
    'gui' :                 starts the gui [{0},1] 
    
    'disregard_zeros'       when datatype has no NaN representation treat 0 as NaN [0,{1}]
    
    'roi_threshold'         absolute-threshold defining voxels within cluster [0]
    
    'select_clusters'       asks user to select one or more clusters if multiple clusters exists within each ROI [{0},1]
    
    'selected_clusters'     (for 'select_clusters'=0) indexes of clusters to select (by default this value is empty and all of the clusters will be selected) 
    
    'dims' :                (for 'eigenvariate' summary measure only): number of eigenvariates to extract from the data
    
    'covariates' :          (for 'eigenvariate' summary measure only): covariates to be regressed-out before computing svd
    
    'pca' :                 (for 'eigenvariate' summary measure only): PCA decomposition 1 = first extract component represents mean signal, next components represent principal component decomposition of covariance matrix); 0 = components represent SVD decomposition of the second moment (X'*X) matrix [0,{1}] 
    
    'mindist' :             (for 'peak' level only): minimum distance (mm) between peaks 
    
    'maxpeak' :             (for 'peak' level only): maximum number of peaks per cluster
    
    'fsanatomical' :        (for ROIs defined on freesurfer cortical surfaces): subject-specific freesurfer-generated mri/T1.nii structural file 
    
    'output_files':         (for output_type 'save' or 'savefiles' only): cell array of files to create {'data.txt','data.mat','roi.tal','roi.img','roi#.img'}

other command-line usages:

rex open : opens existing rex.mat file

rex's People

Contributors

alfnie avatar

Watchers

 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.