SlideShare a Scribd company logo
1 of 21
FSL Tutorial
SHRUSHRITA SHARMA
2016-06-25
Setting Up
cd ~/Desktop/Exampledata/
fslinfo 052212_s09_dti_eddy_fm.nii
eddy_correct 052212_s09_dti_eddy.nii 0 (correcting eddy
current; registering image w.r.t. image 0 or the initial
image while processing each and every image)
bet 052212_s09_dti_eddy_fm.nii
052212_s09_dti_eddy_eddy_fm_strip.nii –f 0.3
Overall process
FSL (FMRI Software Library)
BET (Brain
Extraction
Tool)
Removes skull and meninges from
anatomical scan
Input anatomical dataset
_brain added in input data name
defaults ok
GUI activities shown in command
line
observe in FSLView
Only input image location
insertion is important
FEAT (fMRI
Expert
Analysis
Tool)
Misc
Most as default
Brain /background
threshold, % 10 (Whether
part of brain/ background
based on fraction of
maximum intensity voxel.
If 100% , anything less
than 10% is not brain.)
Noise level can be
estimated from 4D data.
(Default)
Data
Allows to determine different
parameter of 4D datasets, can
have multiple datasets to be
analyzed. Each analyzed same
way (time, sequence and
condition).
Input = 1
Select 4D data (to load data)
High pass cut-off = 100s
(cycles greater than 100 sec
to be removed)
Default: Total volume (loads
itself); delete volumes
(usually 0); TR(s) (sometimes
has to be changed).
Pre-stats
MCFLIRT (FSL traditional motion
correction algorithm) (tries to match
all volume to middle volume for that
run)
B0 unwrapping (only if interested to
study areas of brain near to signal
drop-out. Some examples: cortical
patches near sinuses or pre-frontal
cortex) If field-map is acquired,
phase on top and magnitude image on
bottom. Field-map is not usually
recommended.
Slice timing correction is important
(as all slices are not acquired at
once, regular up(bottom slice first
in z direction,…): Interleaved (even
and odd)
BET (brain extraction for functional
images) (on is ok for future co-
registration)
Spatial smoothing (averaging data
from nearby voxels, important for
SNR)
Intensity normalization (match
average intensity to certain preset)
(Off)
Temporal filtering option (high pass
filter only for perfusion MRI)
Melodic ICA (decompose data to
several independent component) (to
remove noise and isolate certain
components)
Stats
Set up model that can be
used in each voxel in
dataset
How time file should be
covered to be read into FEAT
(default is ok)
FILM pre-whitening (default
: ON) (try to auto-correlate
in same image)
Don’t Add Motion Parameters
(only if patient moved a
lot) and text file with time
information
Full Model
Setup (General
Linear Model)
EV (explanatory variable)
◦ Number of original EVs : 4 (Left, Right, Breathe,
Hold breathe) (4 condn/run)
◦ EV name: TapLeft
◦ Basic Shape : Custom (3 column format)
◦ Filename: FSL_onset/FSL_TapLeft
◦ Convolution: Gamma
◦ Do not orthogonalize, Add temporal filtering,
apply temporal filtering (default ok )
Contrasts & F-tests
◦ Contrasts : 8
◦ Fill in like the attached image
View design (After you click, you will
observe a figure with 8 columns, Left, Left
with temporal derivative and so on) (First
red line represent 100 sec, if any activity
lasted more than that, the high pass filter
will cut-off.)
Observe
What typical time file
looks like?
-----Command line-----
ls
vi FSL_TapLeft_1.txt
Second column
15
15
15
15
For how long the
condition was
present
First
column
46.569
125.569
201.569
278.569
Time of
occurrence of
activity in
sec
Third column
1
1
1
1
(Parametric
modulation) Height
of BOLD signal
View
design
After you click, you will
observe a figure with 8
columns, Left, Left with
temporal derivative and so
on
First red line represent
100 sec, if any activity
lasted more than that, the
high pass filter will cut-
off.
Efficiency
Design efficiency image
First box: Correlation
between different
regression factors.
Diagonals refers to auto-
correlation, so are white.
Second square: Efficiency
in estimating each of
these regresses. If any of
diagonal very dark, may
have issues.
Image bottom shows
percentage effect
required.
Post-stats
Usually correct for multiple
comparisons.
Pre-threshold masking (if
any specific hypothesis)
(boosting statistical power)
Thresholding (Uncorrected,
Voxelwise selection,
clusters after z-maps
selected) can appear at this
p-threshold (0.05)
Contrast masking (mask based
on another contrast) (create
time series plot and compare
to actual model fit)
Registrati
on
Potential spatial correlation
during analysis. (Usually done at
last)
Co-registration (all to same
anatomical space)
Main structural image
◦ anatomical image with all non-
brain matter s007a01001.nii.gz
Standard space (7 different
templates provided)
◦ /usr/local/fsl/data/standard/MNI
152_T1_2mm_brain (Montreal
Neurological Institute resampled
to 2mm isotropic voxels)
Linear: Full search /12 DOF (Do not
non-linear)
Save as analysis.fsf files
Go
Output directory: output
Progress pops-up in html
Different tabs (Prestats, Stats, Post-stats (rendered brain
slices, minimum 2.3 or higher), Registration, Log(track of
everything))
Wait for analysis to be finished to change tabs, error or any
sort of motion registered is observed here.
Time series plot
Co-registration (red lines show grey-white matter boundaries)
Actual FEAT directories
---- Command Line -----
ls
output.feat s005a001.nii.gz s006a001.nii.gz
cd output.feat/
ls (shows all files) (Folders: logs, mc(motion correction),
reg(registration))
cd stats
ls
fslview (open : example_func, add:
output.feat/stats/zstats/zstat1.nii.gz)
Threshold in fslview on top change to (Min 3 Max 12)
Combining and automating
FEAT
Second run with all same parameters
FEAT
DATA TAB: o/p directory : output_subj_01
STATS TAB : Load new text files (Reload FEAT)
Higher Level Analysis (Inputs are lower level FEAT directories)
New window (Top: output.feat / Bottom: output_run2.feat) OK
GO
New results are in individual folder for each contrast
FSLview: open /usr/local/fsl/data/standard/avg152T1_brain add
cope1/stats/zstat1.nii.gz (Thres: 1-3)
Automating FEAT
Each run, output.feat is generated.
load output.feat > design.fsf
mkdir tmp
cp output.feat/design.fsf tmp
cd tmp
ls
vi design.fsf (open briefly) (everything in short .txt format)
changes at certain brief points
wq
gedit design.fsf
Observing
the FA
maps in
FSL
Open FA map in FSLview
and then add V1 map
From the information
dialog ((i) at bottom),
change image type to
Diffusion Tensor, display
as to RGB and modulation
to dti_pt4_FA.
Acknowledgement
• Andrew Jahn YouTube tutorials

More Related Content

Similar to FSL Tutorial: Complete Step-By- Step Instruction

Trelles_QnormBOSC2009
Trelles_QnormBOSC2009Trelles_QnormBOSC2009
Trelles_QnormBOSC2009bosc
 
data stage-material
data stage-materialdata stage-material
data stage-materialRajesh Kv
 
The best ETL questions in a nut shell
The best ETL questions in a nut shellThe best ETL questions in a nut shell
The best ETL questions in a nut shellSrinimf-Slides
 
DEF CON 27 - KYLE GWINNUP - next generation process emulation with binee
DEF CON 27 - KYLE GWINNUP - next generation process emulation with bineeDEF CON 27 - KYLE GWINNUP - next generation process emulation with binee
DEF CON 27 - KYLE GWINNUP - next generation process emulation with bineeFelipe Prado
 
XSLT 3.0 - new features
XSLT 3.0 - new featuresXSLT 3.0 - new features
XSLT 3.0 - new featuresJakub Malý
 
Computer Architecture
Computer ArchitectureComputer Architecture
Computer ArchitectureMohamed Essam
 
Some Commonly asked Function/Objects Vs. header files (CBSE 12th Exam)
Some Commonly asked Function/Objects Vs. header files (CBSE 12th Exam)Some Commonly asked Function/Objects Vs. header files (CBSE 12th Exam)
Some Commonly asked Function/Objects Vs. header files (CBSE 12th Exam)indiangarg
 
import java.io.BufferedReader;import java.io.BufferedWriter;.docx
import java.io.BufferedReader;import java.io.BufferedWriter;.docximport java.io.BufferedReader;import java.io.BufferedWriter;.docx
import java.io.BufferedReader;import java.io.BufferedWriter;.docxwilcockiris
 
Leveraging NTFS Timeline Forensics during the Analysis of Malware
Leveraging NTFS Timeline Forensics during the Analysis of MalwareLeveraging NTFS Timeline Forensics during the Analysis of Malware
Leveraging NTFS Timeline Forensics during the Analysis of Malwaretmugherini
 
You must implement the following functions- Name the functions exactly.docx
You must implement the following functions- Name the functions exactly.docxYou must implement the following functions- Name the functions exactly.docx
You must implement the following functions- Name the functions exactly.docxSebastian6SWSlaterb
 
Epoll - from the kernel side
Epoll -  from the kernel sideEpoll -  from the kernel side
Epoll - from the kernel sidellj098
 
Fann tool users_guide
Fann tool users_guideFann tool users_guide
Fann tool users_guideBirol Kuyumcu
 
Android Storage - Vold
Android Storage - VoldAndroid Storage - Vold
Android Storage - VoldWilliam Lee
 
There are 4 parts for the project. The question may be long to read .docx
There are 4 parts for the project. The question may be long to read .docxThere are 4 parts for the project. The question may be long to read .docx
There are 4 parts for the project. The question may be long to read .docxsusannr
 
PostgreSQL 8.4 TriLUG 2009-11-12
PostgreSQL 8.4 TriLUG 2009-11-12PostgreSQL 8.4 TriLUG 2009-11-12
PostgreSQL 8.4 TriLUG 2009-11-12Andrew Dunstan
 
Aileen heal postgis osmm cou
Aileen heal postgis osmm couAileen heal postgis osmm cou
Aileen heal postgis osmm couMatt Travis
 
Centralized Fog Server with OpenLDAP
Centralized Fog Server with OpenLDAP Centralized Fog Server with OpenLDAP
Centralized Fog Server with OpenLDAP tare
 
There are 4 part for the project and the question may be long to rea.docx
There are 4 part for the project and the question may be long to rea.docxThere are 4 part for the project and the question may be long to rea.docx
There are 4 part for the project and the question may be long to rea.docxsusannr
 

Similar to FSL Tutorial: Complete Step-By- Step Instruction (20)

nasm_final
nasm_finalnasm_final
nasm_final
 
Trelles_QnormBOSC2009
Trelles_QnormBOSC2009Trelles_QnormBOSC2009
Trelles_QnormBOSC2009
 
data stage-material
data stage-materialdata stage-material
data stage-material
 
The best ETL questions in a nut shell
The best ETL questions in a nut shellThe best ETL questions in a nut shell
The best ETL questions in a nut shell
 
DEF CON 27 - KYLE GWINNUP - next generation process emulation with binee
DEF CON 27 - KYLE GWINNUP - next generation process emulation with bineeDEF CON 27 - KYLE GWINNUP - next generation process emulation with binee
DEF CON 27 - KYLE GWINNUP - next generation process emulation with binee
 
XSLT 3.0 - new features
XSLT 3.0 - new featuresXSLT 3.0 - new features
XSLT 3.0 - new features
 
Computer Architecture
Computer ArchitectureComputer Architecture
Computer Architecture
 
Some Commonly asked Function/Objects Vs. header files (CBSE 12th Exam)
Some Commonly asked Function/Objects Vs. header files (CBSE 12th Exam)Some Commonly asked Function/Objects Vs. header files (CBSE 12th Exam)
Some Commonly asked Function/Objects Vs. header files (CBSE 12th Exam)
 
import java.io.BufferedReader;import java.io.BufferedWriter;.docx
import java.io.BufferedReader;import java.io.BufferedWriter;.docximport java.io.BufferedReader;import java.io.BufferedWriter;.docx
import java.io.BufferedReader;import java.io.BufferedWriter;.docx
 
Leveraging NTFS Timeline Forensics during the Analysis of Malware
Leveraging NTFS Timeline Forensics during the Analysis of MalwareLeveraging NTFS Timeline Forensics during the Analysis of Malware
Leveraging NTFS Timeline Forensics during the Analysis of Malware
 
CompilersAndLibraries
CompilersAndLibrariesCompilersAndLibraries
CompilersAndLibraries
 
You must implement the following functions- Name the functions exactly.docx
You must implement the following functions- Name the functions exactly.docxYou must implement the following functions- Name the functions exactly.docx
You must implement the following functions- Name the functions exactly.docx
 
Epoll - from the kernel side
Epoll -  from the kernel sideEpoll -  from the kernel side
Epoll - from the kernel side
 
Fann tool users_guide
Fann tool users_guideFann tool users_guide
Fann tool users_guide
 
Android Storage - Vold
Android Storage - VoldAndroid Storage - Vold
Android Storage - Vold
 
There are 4 parts for the project. The question may be long to read .docx
There are 4 parts for the project. The question may be long to read .docxThere are 4 parts for the project. The question may be long to read .docx
There are 4 parts for the project. The question may be long to read .docx
 
PostgreSQL 8.4 TriLUG 2009-11-12
PostgreSQL 8.4 TriLUG 2009-11-12PostgreSQL 8.4 TriLUG 2009-11-12
PostgreSQL 8.4 TriLUG 2009-11-12
 
Aileen heal postgis osmm cou
Aileen heal postgis osmm couAileen heal postgis osmm cou
Aileen heal postgis osmm cou
 
Centralized Fog Server with OpenLDAP
Centralized Fog Server with OpenLDAP Centralized Fog Server with OpenLDAP
Centralized Fog Server with OpenLDAP
 
There are 4 part for the project and the question may be long to rea.docx
There are 4 part for the project and the question may be long to rea.docxThere are 4 part for the project and the question may be long to rea.docx
There are 4 part for the project and the question may be long to rea.docx
 

Recently uploaded

What is Insertion Sort. Its basic information
What is Insertion Sort. Its basic informationWhat is Insertion Sort. Its basic information
What is Insertion Sort. Its basic informationmuqadasqasim10
 
Seven tools of quality control.slideshare
Seven tools of quality control.slideshareSeven tools of quality control.slideshare
Seven tools of quality control.slideshareraiaryan448
 
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样jk0tkvfv
 
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam DunksNOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam Dunksgmuir1066
 
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...yulianti213969
 
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证zifhagzkk
 
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Valters Lauzums
 
obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di Ban...
obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di  Ban...obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di  Ban...
obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di Ban...siskavia95
 
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...Klinik Aborsi
 
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证acoha1
 
Formulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdfFormulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdfRobertoOcampo24
 
The Significance of Transliteration Enhancing
The Significance of Transliteration EnhancingThe Significance of Transliteration Enhancing
The Significance of Transliteration Enhancingmohamed Elzalabany
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证acoha1
 
sourabh vyas1222222222222222222244444444
sourabh vyas1222222222222222222244444444sourabh vyas1222222222222222222244444444
sourabh vyas1222222222222222222244444444saurabvyas476
 
Aggregations - The Elasticsearch "GROUP BY"
Aggregations - The Elasticsearch "GROUP BY"Aggregations - The Elasticsearch "GROUP BY"
Aggregations - The Elasticsearch "GROUP BY"John Sobanski
 
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...yulianti213969
 
Audience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptxAudience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptxStephen266013
 
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...ssuserf63bd7
 
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证dq9vz1isj
 
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarjSCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarjadimosmejiaslendon
 

Recently uploaded (20)

What is Insertion Sort. Its basic information
What is Insertion Sort. Its basic informationWhat is Insertion Sort. Its basic information
What is Insertion Sort. Its basic information
 
Seven tools of quality control.slideshare
Seven tools of quality control.slideshareSeven tools of quality control.slideshare
Seven tools of quality control.slideshare
 
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
 
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam DunksNOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
 
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
 
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
如何办理(Dalhousie毕业证书)达尔豪斯大学毕业证成绩单留信学历认证
 
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
 
obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di Ban...
obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di  Ban...obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di  Ban...
obat aborsi Banjarmasin wa 082135199655 jual obat aborsi cytotec asli di Ban...
 
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
Jual Obat Aborsi Bandung (Asli No.1) Wa 082134680322 Klinik Obat Penggugur Ka...
 
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
 
Formulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdfFormulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdf
 
The Significance of Transliteration Enhancing
The Significance of Transliteration EnhancingThe Significance of Transliteration Enhancing
The Significance of Transliteration Enhancing
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
 
sourabh vyas1222222222222222222244444444
sourabh vyas1222222222222222222244444444sourabh vyas1222222222222222222244444444
sourabh vyas1222222222222222222244444444
 
Aggregations - The Elasticsearch "GROUP BY"
Aggregations - The Elasticsearch "GROUP BY"Aggregations - The Elasticsearch "GROUP BY"
Aggregations - The Elasticsearch "GROUP BY"
 
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
 
Audience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptxAudience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptx
 
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
 
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
 
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarjSCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
 

FSL Tutorial: Complete Step-By- Step Instruction

  • 2. Setting Up cd ~/Desktop/Exampledata/ fslinfo 052212_s09_dti_eddy_fm.nii eddy_correct 052212_s09_dti_eddy.nii 0 (correcting eddy current; registering image w.r.t. image 0 or the initial image while processing each and every image) bet 052212_s09_dti_eddy_fm.nii 052212_s09_dti_eddy_eddy_fm_strip.nii –f 0.3
  • 3. Overall process FSL (FMRI Software Library)
  • 4. BET (Brain Extraction Tool) Removes skull and meninges from anatomical scan Input anatomical dataset _brain added in input data name defaults ok GUI activities shown in command line observe in FSLView Only input image location insertion is important
  • 6. Misc Most as default Brain /background threshold, % 10 (Whether part of brain/ background based on fraction of maximum intensity voxel. If 100% , anything less than 10% is not brain.) Noise level can be estimated from 4D data. (Default)
  • 7. Data Allows to determine different parameter of 4D datasets, can have multiple datasets to be analyzed. Each analyzed same way (time, sequence and condition). Input = 1 Select 4D data (to load data) High pass cut-off = 100s (cycles greater than 100 sec to be removed) Default: Total volume (loads itself); delete volumes (usually 0); TR(s) (sometimes has to be changed).
  • 8. Pre-stats MCFLIRT (FSL traditional motion correction algorithm) (tries to match all volume to middle volume for that run) B0 unwrapping (only if interested to study areas of brain near to signal drop-out. Some examples: cortical patches near sinuses or pre-frontal cortex) If field-map is acquired, phase on top and magnitude image on bottom. Field-map is not usually recommended. Slice timing correction is important (as all slices are not acquired at once, regular up(bottom slice first in z direction,…): Interleaved (even and odd) BET (brain extraction for functional images) (on is ok for future co- registration) Spatial smoothing (averaging data from nearby voxels, important for SNR) Intensity normalization (match average intensity to certain preset) (Off) Temporal filtering option (high pass filter only for perfusion MRI) Melodic ICA (decompose data to several independent component) (to remove noise and isolate certain components)
  • 9. Stats Set up model that can be used in each voxel in dataset How time file should be covered to be read into FEAT (default is ok) FILM pre-whitening (default : ON) (try to auto-correlate in same image) Don’t Add Motion Parameters (only if patient moved a lot) and text file with time information
  • 10. Full Model Setup (General Linear Model) EV (explanatory variable) ◦ Number of original EVs : 4 (Left, Right, Breathe, Hold breathe) (4 condn/run) ◦ EV name: TapLeft ◦ Basic Shape : Custom (3 column format) ◦ Filename: FSL_onset/FSL_TapLeft ◦ Convolution: Gamma ◦ Do not orthogonalize, Add temporal filtering, apply temporal filtering (default ok ) Contrasts & F-tests ◦ Contrasts : 8 ◦ Fill in like the attached image View design (After you click, you will observe a figure with 8 columns, Left, Left with temporal derivative and so on) (First red line represent 100 sec, if any activity lasted more than that, the high pass filter will cut-off.) Observe
  • 11. What typical time file looks like? -----Command line----- ls vi FSL_TapLeft_1.txt Second column 15 15 15 15 For how long the condition was present First column 46.569 125.569 201.569 278.569 Time of occurrence of activity in sec Third column 1 1 1 1 (Parametric modulation) Height of BOLD signal
  • 12. View design After you click, you will observe a figure with 8 columns, Left, Left with temporal derivative and so on First red line represent 100 sec, if any activity lasted more than that, the high pass filter will cut- off.
  • 13. Efficiency Design efficiency image First box: Correlation between different regression factors. Diagonals refers to auto- correlation, so are white. Second square: Efficiency in estimating each of these regresses. If any of diagonal very dark, may have issues. Image bottom shows percentage effect required.
  • 14. Post-stats Usually correct for multiple comparisons. Pre-threshold masking (if any specific hypothesis) (boosting statistical power) Thresholding (Uncorrected, Voxelwise selection, clusters after z-maps selected) can appear at this p-threshold (0.05) Contrast masking (mask based on another contrast) (create time series plot and compare to actual model fit)
  • 15. Registrati on Potential spatial correlation during analysis. (Usually done at last) Co-registration (all to same anatomical space) Main structural image ◦ anatomical image with all non- brain matter s007a01001.nii.gz Standard space (7 different templates provided) ◦ /usr/local/fsl/data/standard/MNI 152_T1_2mm_brain (Montreal Neurological Institute resampled to 2mm isotropic voxels) Linear: Full search /12 DOF (Do not non-linear) Save as analysis.fsf files Go
  • 16. Output directory: output Progress pops-up in html Different tabs (Prestats, Stats, Post-stats (rendered brain slices, minimum 2.3 or higher), Registration, Log(track of everything)) Wait for analysis to be finished to change tabs, error or any sort of motion registered is observed here. Time series plot Co-registration (red lines show grey-white matter boundaries)
  • 17. Actual FEAT directories ---- Command Line ----- ls output.feat s005a001.nii.gz s006a001.nii.gz cd output.feat/ ls (shows all files) (Folders: logs, mc(motion correction), reg(registration)) cd stats ls fslview (open : example_func, add: output.feat/stats/zstats/zstat1.nii.gz) Threshold in fslview on top change to (Min 3 Max 12)
  • 18. Combining and automating FEAT Second run with all same parameters FEAT DATA TAB: o/p directory : output_subj_01 STATS TAB : Load new text files (Reload FEAT) Higher Level Analysis (Inputs are lower level FEAT directories) New window (Top: output.feat / Bottom: output_run2.feat) OK GO New results are in individual folder for each contrast FSLview: open /usr/local/fsl/data/standard/avg152T1_brain add cope1/stats/zstat1.nii.gz (Thres: 1-3)
  • 19. Automating FEAT Each run, output.feat is generated. load output.feat > design.fsf mkdir tmp cp output.feat/design.fsf tmp cd tmp ls vi design.fsf (open briefly) (everything in short .txt format) changes at certain brief points wq gedit design.fsf
  • 20. Observing the FA maps in FSL Open FA map in FSLview and then add V1 map From the information dialog ((i) at bottom), change image type to Diffusion Tensor, display as to RGB and modulation to dti_pt4_FA.
  • 21. Acknowledgement • Andrew Jahn YouTube tutorials