fbirn image processing stream (fips)

42
fBIRN Image Processing Stream (FIPS)

Upload: acacia

Post on 01-Feb-2016

59 views

Category:

Documents


0 download

DESCRIPTION

fBIRN Image Processing Stream (FIPS). Overview. Goals First Level Analysis Steps FLAC Higher/Group Level Analysis Near-term Workflow. Long-Range Goals. Queryable Highly flexible Multi-site Calibration Custom software plug-ins Prepackaged analysis software plug-ins - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: fBIRN Image Processing Stream (FIPS)

fBIRN Image Processing Stream(FIPS)

Page 2: fBIRN Image Processing Stream (FIPS)

Overview

• Goals• First Level Analysis Steps• FLAC• Higher/Group Level Analysis • Near-term Workflow

Page 3: fBIRN Image Processing Stream (FIPS)

Long-Range Goals

• Queryable• Highly flexible• Multi-site Calibration• Custom software plug-ins• Prepackaged analysis software plug-ins• Portalized

Page 4: fBIRN Image Processing Stream (FIPS)

Short-Range Goals• Limited flexibility• FSL-only• Publishable• Start to solve data management problems

Page 5: fBIRN Image Processing Stream (FIPS)

First Level (Run) Analysis• Slice-timing Correction (?)• Motion Correction• Spatial Smoothing• Intensity Normalization (Grand Mean)• Fit General Linear Model (GLM)

• Regression Coefficients• Residual Variance• Contrasts of Regression Coefficients (Var)• t, F, z maps of contrasts• Clusters (GRF)• Spaces: Native, Talairach (FSL-MNI152)

• ROI analysis/export

Page 6: fBIRN Image Processing Stream (FIPS)

First-Level Analysis Results

Page 7: fBIRN Image Processing Stream (FIPS)

FLAC – First-Level Analysis Configuration• All pre-processing options (MC, slice timing, smoothing)• Hemodynamic model (SPM HRF, delay, dispersion,

derivative)• Stimulus identity and timing (“Event Lumping”)• Nuisance regressors• Contrasts (would be better to do this later)• Data set independent!• Define ONCE!

Page 8: fBIRN Image Processing Stream (FIPS)

Higher/Group Level Analysis• Select First Level Analysis (FLAC)• Select Contrast from First Level• Select Subjects (Query)• Group Model and Group Contrasts (GLM)• Talairach Space (FSL-MNI152)• Fit GLM

• Regression Coefficients• Residual Variance• Contrasts of Regression Coefficients• t, z maps of contrasts • Clusters (GRF)

Page 9: fBIRN Image Processing Stream (FIPS)

Short-term Workflow

• “Local” Data Management Model• Uses (Evolving) Hierarchy • All data on SRB• All data mirrored locally• All analyses computed locally

Page 10: fBIRN Image Processing Stream (FIPS)

First Level Analysis Workflow

1. Collect data for a session2. Upload to session to SRB/HID3. Synchronize LocalDB to SRB4. Create stimulus timing files from E-Prime5. Analyze (First Level) locally6. Synchronize SRB to LocalDB (Upload)

}Hierararchy

Group Level Analysis Workflow -- TBD

0. Define and upload FLAC (once for all sessions)

For each session:

Page 11: fBIRN Image Processing Stream (FIPS)

Analyzing Data: fips-flaUSAGE: fips-fla --flac FLACName : name of the FLAC as created with flac-checkin --subj SubjId : BIRN Subject ID (eg, 00900000103) --site SiteID : BIRN Site ID (eg, 006) --visit VisitNo : Visit number (eg, 1) --study StudyId : Study Id or number (eg, 1) --exp ExpId : Name of experiment (eg, sm)  --db database : BIRN database: (eg, Human. Default from RC) --proj ProjectName : BIRN project (eg, fBIRNHumanPhantom. Default from RC) --projid ProjectID : BIRN project ID (eg, 000005 . Default from RC)

 --overwrite : overwrite previously analyzed results --help : a short story about a Spanish boy named ‘Manual’

Processes all runs in experiment

Page 12: fBIRN Image Processing Stream (FIPS)

Phase I Data• Analyzed and on SRB • Motion Correction• Smoothing with FWHM=5mm• Intensity Normalized• BH, SM, and Rest – 15s ON, 15s OFF• SIRP and MMN• http://www.nmr.mgh.harvard.edu/~greve/fbirn/phase1

Page 13: fBIRN Image Processing Stream (FIPS)
Page 14: fBIRN Image Processing Stream (FIPS)

DatabaseAnalysis

Parameters(FLAC)

Session1 Data--Raw Pixel Data--Stimulus Id and Timing--Analyzed Data

Session2 Data--Raw Pixel Data--Stimulus Id and Timing--Analyzed Data

Site Data--Scanning protocol--Slice order--Skip

Page 15: fBIRN Image Processing Stream (FIPS)

DatabaseAnalysis

Parameters(FLAC)

Session1 Data--Raw Pixel Data--Stimulus Id and Timing--Analyzed Data

Session2 Data--Raw Pixel Data--Stimulus Id and Timing--Analyzed Data

Site Data--Scanning protocol--Slice order--Skip

Create Analysis (FLAC)

Page 16: fBIRN Image Processing Stream (FIPS)

Configuring the First-Level Analysis using FSL-FEAT

Page 17: fBIRN Image Processing Stream (FIPS)

Configuring the First-Level Analysis using FSL-FEAT

Page 18: fBIRN Image Processing Stream (FIPS)

Configuring the First-Level Analysis using FSL-FEAT

Page 19: fBIRN Image Processing Stream (FIPS)

Configuring the First-Level Analysis using FSL-FEAT

Page 20: fBIRN Image Processing Stream (FIPS)

FLAC – First-Level Analysis Configuration

• Save to create the configuration file

• Import/upload

• Data set independent!

• Define ONCE!

Page 21: fBIRN Image Processing Stream (FIPS)

Stimulus Identification and Timing

1 73 42 5 6 8

HAPPYSAD

Happy.stf:

10.0 2 1

30.0 2 1

28.7 6 1

43.1 2 1

Sad.stf:

3.0 2 1

13.0 2 1

15.0 2 1

37.1 2 1

Time

t=0 t=3.0 t=10.0

t=13.0

t=15.0 t=30.0 t=28.7 t=37.1 t=43.1

Columns:1. Onset Time2. Duration3. Weight

Example: Happy andSad Faces as defined by the experimenter.

Page 22: fBIRN Image Processing Stream (FIPS)

Stimulus Identification and Timing

1 73 42 5 6 8

HAPPYSAD

Happy.stf:

10.0 2 1

30.0 2 1

28.7 6 1

43.1 2 1

Sad.stf:

3.0 2 1

13.0 2 1

15.0 2 1

37.1 2 1

Subject1 73 42 5 6 8

Experimenter

HAPPYSAD

HappySubj.stf:

10.0 2 1

15.0 2 1

30.0 2 1

43.1 2 1

SadSubj.stf:

3.0 2 1

13.0 2 1

28.7 6 1

37.1 2 1

Experimenter Subject

Page 23: fBIRN Image Processing Stream (FIPS)

1 73 42 5 6 8

1 73 42 5 6 8

1 73 42 5 6 8

HH HS

SH SS

Subject

H S

H

S

Exp

erim

ente

r

SH.stf:

15.0 2 1

HH.stf:

10.0 2 1

28.7 6 1

43.1 2 1

HS.stf:

28.7 6 1

SS.stf:

3.0 2 1

13.0 2 1

37.1 2 1

Page 24: fBIRN Image Processing Stream (FIPS)

Analyze

• Specify FLAC and Session• Session indicates:

• where the data are• site (slice order, skip, …)

• FLAC indicates:• relative names of raw data, timing files, etc

• FLAC customized (full paths resolved, etc)• Design matrix created• GLM Estimation• Inference (contrasts, z, t)• Resample to Talairach space• Local: Upload/Synch with SRB

DatabaseAnalysis

Parameters(FLAC)

Session Data--Raw Pixel Data--Stimulus Id and Timing--Analyzed Data

Session Data--Raw Pixel Data--Stimulus Id and Timing--Analyzed Data

Site Data--Scanning protocol--Slice order--Skip

Page 25: fBIRN Image Processing Stream (FIPS)

Group Analysis

• Group Level Analysis Configuration (GLAC?)• Specify:

• FLAC as input• FLAC contrast• Group model (eg, Age, IQ, diagnosis, etc)• Group contrasts• Can be done within FSL

Page 26: fBIRN Image Processing Stream (FIPS)

Where we are now:

• Local Analysis (ie, not on the SRB/Portal)• Scripts to define FLAC and analyze data• Data must be in proper hierarch – but no way to achieve this easily (need upload script)

Page 27: fBIRN Image Processing Stream (FIPS)

Immediate Goals:

• Finalize session hierarchy• Add XML to FSL output directory • Resolve stimulus ID and timing specification • Resolve site-dependent parameters• Update FIPS scripts• Local Analysis with SRB synch (?)

Page 28: fBIRN Image Processing Stream (FIPS)

Intermediate Goals:

• Portalize and/or incorporate into upload script• Group analysis

Long-Rang Goals:

• Generalize FLAC (ie, not dependent upon FSL)• Incorporate other analysis packages• Incorporate Calibration Recommendations

Page 29: fBIRN Image Processing Stream (FIPS)
Page 30: fBIRN Image Processing Stream (FIPS)

Data Hierarchy: Image Data

VARIABLE NAMES------------------------------------LOCAL_SRB_HOME_BIRN/DataBase/ProjectName_ProjectIdSubjectID/Visit__SiteId_VisitNo/Study__StudyId/Experiment__Series/Native/Original__0001/Analyze/

EXAMPLE--------------------------------------/home/BIRN/Human/fBIRNHumanPhantom__000005/00900000103/Visit__009_0001/Study__0001/sm__0003/Native/Original__0001/Analyze/

----RCRCRCCLCLCLCL------

RC = ~/.fipsrcCL = Command-line

In Analyze/: f0001.img, f0002.img, …

Page 31: fBIRN Image Processing Stream (FIPS)

FIPS RC File (~/.fipsrc)

setenv LOCAL_SRB_HOME_BIRN /space/birn/26/users/greve/srb-mirror

setenv FIPS_FLAC_DIR ~/flac

setenv FIPS_DEFAULT_DATABASE Human

setenv FIPS_DEFAULT_PROJECT_NAME fBIRNHumanPhantom

setenv FIPS_DEFAULT_PROJECT_ID 000005

Page 32: fBIRN Image Processing Stream (FIPS)

Analyzing Data: fips-flaUSAGE: fips-fla --flac FLACName : name of the FLAC as created with flac-checkin --subj SubjId : BIRN Subject ID (eg, 00900000103) --site SiteID : BIRN Site ID (eg, 006) --visit VisitNo : Visit number (eg, 1) --study StudyId : Study Id or number (eg, 1) --exp ExpId : Name of experiment (eg, sm)  --db database : BIRN database: (eg, Human. Default from RC) --proj ProjectName : BIRN project (eg, fBIRNHumanPhantom. Default from RC) --projid ProjectID : BIRN project ID (eg, 000005 . Default from RC)

 --overwrite : overwrite previously analyzed results --help : a short story about a Spanish boy named ‘Manual’

Processes all runs in experiment

Page 33: fBIRN Image Processing Stream (FIPS)

Data Hierarchy: FSL Output

VARIABLE NAMES------------------------------------LOCAL_SRB_HOME_BIRN/DataBase/ProjectName_ProjectIdSubjectID/Visit__SiteId_VisitNo/Study__StudyId/Experiment__Series/Analysis/Original__0001/FLACNAME.feat/

EXAMPLE--------------------------------------/home/BIRN/Human/fBIRNHumanPhantom__000005/00900000103/Visit__009_0001/Study__0001/sm__0003/Analysis/Original__0001/sensorimotor.feat/

----RCRCRCCLCLCLCL------

RC = ~/.fipsrcCL = Command-line

In TaskData/ sensorimotor.stf

Page 34: fBIRN Image Processing Stream (FIPS)

Creating a FLAC

1. Create temporary dir2. Copy one run of raw data (in analyze4d) - template3. Copy timing files (if using) – name important4. Run FSL Feat GUI (specify processing options) – do not

actually analyze data.5. flac-checkin (FIPS_FLAC_DIR)6. Delete temporary dir7. Do this once for each parameter set8. Analyze all data with this FLAC

flac-checkin --help

Page 35: fBIRN Image Processing Stream (FIPS)

To Analyze Data1. Copy data into local SRB mirror2. Copy timing files into TaskData/ for each run.

Use the same names as when defining the FLAC. Names stay the same across runs, subjects, etc.

3. Analyze with fips-fla, which will customize the FLAC for each data set

4. View with html browser or AFNI

Page 36: fBIRN Image Processing Stream (FIPS)

Data Hierarchy: Timing Files

VARIABLE NAMES------------------------------------LOCAL_SRB_HOME_BIRN/DataBase/ProjectName_ProjectIdSubjectID/Visit__SiteId_VisitNo/Study__StudyId/Experiment__Series/Native/Original__0001/TaskData/

EXAMPLE--------------------------------------/home/BIRN/Human/fBIRNHumanPhantom__000005/00900000103/Visit__009_0001/Study__0001/sm__0003/Native/Original__0001/TaskData/

----RCRCRCCLCLCLCL------

RC = ~/.fipsrcCL = Command-line

In TaskData/ sensorimotor.stf

Page 37: fBIRN Image Processing Stream (FIPS)

Timing Files (FSL: 3-column custom)

15 15 145 15 175 15 1105 15 1135 15 1165 15 1195 15 1225 15 1 

Onset Time (sec), Duration (sec), Weight

One timing file for each event type.

Page 38: fBIRN Image Processing Stream (FIPS)

Outstanding Issues

• How to upload timing files to SRB• How to upload FLAC to SRB• Adding XML files to FSL output• Synching output with SRB• Slice-timing correction – site dependent• Delete/Skip first few volumes – site dependent

Page 39: fBIRN Image Processing Stream (FIPS)

Future

• FLAC creation without a template data set

• All processing through portal – no need to have local mirror

• Interface with group analysis

• Generalize FLAC to other packages

Page 40: fBIRN Image Processing Stream (FIPS)
Page 41: fBIRN Image Processing Stream (FIPS)
Page 42: fBIRN Image Processing Stream (FIPS)

First Level Analysis Workflow

1. Collect data for a session2. Upload to session to SRB/HID3. Synchronize LocalDB to SRB4. Create stimulus timing files from E-Prime5. Analyze (First Level) locally6. Synchronize SRB to LocalDB (Upload)

• “Local” Data Management Model• All data on SRB• All data mirrored locally• All analyses computed locally

}Hierararchy