Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5_Updating preprocessing for VBM - complete #23

Merged
merged 45 commits into from
May 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
9d737ac
5_VolAnalysis - add images
devdinie May 22, 2021
9957efd
Delete 5_EffectSize.png
devdinie May 22, 2021
598ff01
Delete 5_HippL_FSL.png
devdinie May 22, 2021
cd3011a
Delete 5_SubVolumes.png
devdinie May 22, 2021
df27192
5_Update-Add images_vol analysis
devdinie May 22, 2021
32073cc
Create dummy.md
devdinie May 22, 2021
562023f
5_uploading additional resources
devdinie May 22, 2021
2a525b5
5_addition resources-examples
devdinie May 22, 2021
ebfd738
5_Additional resources-editing filename
devdinie May 22, 2021
0a1ff8e
Create dummy.md
devdinie May 22, 2021
8c49eb1
Create dummy.md
devdinie May 22, 2021
2fa81ef
Create dummy.md
devdinie May 22, 2021
5914023
Create dummy.md
devdinie May 22, 2021
c7b44a1
Create dummy.md
devdinie May 22, 2021
e26a16c
Create dummy.md
devdinie May 22, 2021
63a9d7d
Create dummy.md
devdinie May 22, 2021
6d18322
Create dummy.md
devdinie May 22, 2021
339a536
Delete dummy.md
devdinie May 22, 2021
e79c6eb
5_ReconAll_Eg-upload labels
devdinie May 22, 2021
55dd49c
delete dummy
devdinie May 22, 2021
e14361c
5_ReconAll-upload mri
devdinie May 22, 2021
04e80cf
delete dummy
devdinie May 22, 2021
2b49482
5_ReconAll-upload scripts
devdinie May 22, 2021
5e529b9
Delete dummy.md
devdinie May 22, 2021
1ad1d7e
5_ReconAll-upload stats
devdinie May 22, 2021
74a1723
Delete dummy.md
devdinie May 22, 2021
226ff61
5_ReconaAll-upload touch
devdinie May 22, 2021
8ee442c
Delete dummy.md
devdinie May 22, 2021
f2133da
5_ReconAll-surf upload
devdinie May 22, 2021
f6f15e1
5_UpdatedNotebook- new version
devdinie May 22, 2021
a5dd43f
5_Update and finalize CT analysis
devdinie May 24, 2021
77bdf22
5_update section title
devdinie May 24, 2021
a49aafb
5_Updating images in CT analysis
devdinie May 24, 2021
37119fe
5_including CT_FS results
devdinie May 24, 2021
313d52e
5_include VBM preprocessing steps
devdinie May 24, 2021
d3f53ef
5_include VBM preprocessing images
devdinie May 24, 2021
5d8d69f
5_include VBM preprocessing images
devdinie May 24, 2021
1aa1f3b
5_Upload VBM preprocessing img 3
devdinie May 24, 2021
16b57d6
5_Update VBM preprocessing -norm2mni space done
devdinie May 24, 2021
5e42d64
5_Edit formatting in preprocessing for VBM
devdinie May 24, 2021
01f2cd0
5_Upload VBM OASIS example OP image
devdinie May 24, 2021
9d68c9c
5_Update VBM OASIS example - done
devdinie May 24, 2021
622c6ec
5_Update notebook (VBM complete)
devdinie May 24, 2021
1be0275
5_Editing typos
devdinie May 24, 2021
903800c
Merge branch 'gh-pages' into gh-pages
nikhil153 May 24, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
474 changes: 469 additions & 5 deletions _episodes/05-Statistical_Analysis.md

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions _extras/5_OtherFiles/5_Download_NiPypeTutorial_Data.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/bin/bash

# Specify important variables
ZIP_FILE=/Users/swapna/DataCarpentry_sMRI/ds102_raw.tgz #location of download file
TUTORIAL_DIR=/Users/swapna/DataCarpentry_sMRI/nipype_tutorial #location of experiment folder
TMP_DIR=$TUTORIAL_DIR/tmp #location of temporary folder
DATA_DIR=$TUTORIAL_DIR/data #location of data folder

## To download the dataset to the Download folder use the following code:
wget https://openfmri.s3.amazonaws.com/tarballs/ds102_raw.tgz ~/

# Unzip ds102 dataset into TMP_DIR
mkdir -p $TMP_DIR
tar -zxvf $ZIP_FILE -C $TMP_DIR

# Copy data of first ten subjects into DATA_DIR
for id in $(seq -w 1 10)
do
echo "Creating dataset for subject: sub0$id"
mkdir -p $DATA_DIR/sub0$id
cp $TMP_DIR/ds102/sub0$id/anatomy/highres001.nii.gz \
$DATA_DIR/sub0$id/struct.nii.gz

for session in run001 run002
do
cp $TMP_DIR/ds102/sub0$id/BOLD/task001_$session/bold.nii.gz \
$DATA_DIR/sub0$id/$session.nii.gz
cp $TMP_DIR/ds102/sub0$id/behav/task001_$session/behavdata.txt \
$DATA_DIR/sub0$id/behavdata_$session.txt

for con_id in {1..4}
do
cp $TMP_DIR/ds102/sub0$id/model/model001/onsets/task001_$session/cond00$con_id.txt \
$DATA_DIR/sub0$id/onset_${session}_cond00$con_id.txt
done
done
echo "sub0$id done."
done

# Copy information about demographics, conditions and tasks into DATA_DIR
cp $TMP_DIR/ds102/demographics.txt $DATA_DIR/demographics.txt
cp $TMP_DIR/ds102/models/model001/* $DATA_DIR/.

# Delete the temporary folder
rm -rf $TMP_DIR
47 changes: 47 additions & 0 deletions _extras/5_OtherFiles/5_RelatedStudies_statAnalysis.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@

### Volumetric Analysis - Related work

#### Regional volumetric differences in case-control cohorts - Examples

In this section, we will discuss two cases.
1) Volumetric alterations in the whole hippocampus
3) Volumetric alterations in hippocampal subfields


Segmentations in the examples discussed in this section was performed using MAGeTBrain, another commonly used segmentation software.

The github repository for MAGeTbrain can be found [here](https://github.com/CobraLab/MAGeTbrain).

Note: volume is measured in voxels.

##### 1) Volumetric alterations in the whole hippocampus

##### Example 1.1: Comparison of hippocampal volumes across groups with normal cognition, mild cognitive impairment and Alzheimer's disease

Sixty 1.5T images baseline scans were selected arbitrarily from the ADNI1: Complete 1Yr 1.5T standardized dataset. Twenty subjects were chosen from each disease category: cognitively normal (CN),mild cognitive impairment (MCI) and Alzheimer's disease (AD).

MAGeT-Brain was applied to this dataset and the resulting segmentations werecompared to segmentations produced by FreeSurfer, FSLFIRST, MAPER, as well as semi-automated whole hippocampal segmentations (SNT) provided by ADNI. Examples for hippocampal segmentations and hippocampal volume measures obtained by different are shown in the Figures below.

<img src="/fig/episode_5/5_VolAnalysis_Eg1.png" width="600" height="560" />

The boxplot showed that the total bilateral hippocampal volume between commonly used methods are well correlated. Within disease categories (i.e. CN, LMCI and AD), MAGeTbrain is consistently well correlated to SNT volumes, but appears to slightly over-estimate the volume of the AD hippocampus compared to the SNT segmentations.

Related citations:
_Jon Pipitone, Min Tae M Park, Julie Winterburn, Tristram A Lett, Jason P Lerch, Jens C Pruessner, Martin Lepage, Aristotle N Voineskos, and M Mallar Chakravarty. Multi-atlas segmentation of the whole hippocampus and subfields using multiple automatically generated templates. Neuroimage, 101:494–512, November 2014.
[(doi:10.1016/j.neuroimage.2014.04.054)](https://www.sciencedirect.com/science/article/pii/S1053811914003346?via%3Dihub)_

##### 2) Volumetric alterations in hippocampal sufields

##### Example 2.1: Whole hippocampal segmentation comparison across cohorts _[(Voineskos et al, 2015)](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6869683/pdf/HBM-36-3020.pdf)_)

A total of 137 healthy volunteers (18–86 years, µ:45.4|SD:19) recruited by CAMH-Toronto, were used in this study.

A general linear model (GLM) was used to assess all relationships, and all tests were corrected for multiple comparisons using FDR [Benjamini and Hochberg, 1995]. Comparisons surviving 5% FDR were deemed to be significant. The relationship between hippocampal volumes and age was assessed, with sex, years of education, APOEe4 carrier status, and TBV included in the model. The results obtained were as shown in the figure below.

<img src="/fig/episode_5/5_VolAnalysis_Eg2.png" width="760" height="360" />

It was observed that all right and left whole hippocampal and subfield volumes were inversely related to age after correction for multiple comparisons except for the right and left CA1 (R²=0.018,_q_=0.069 for both).

Related citations:
_Hippocampal (subfield) volume and shape in relation to cognitive performance across the adult lifespan. Aristotle N. Voineskos, Julie L. Winterburn, Daniel Felsky, Jon Pipitone, Tarek K. Rajji, Benoit H. Mulsant, M. Mallar Chakravarty. Hum Brain Mapp. 2015 Aug; 36(8): 3020–3037. May 2015 [(doi: 10.1002/hbm.22825)](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6869683/pdf/HBM-36-3020.pdf)_

Loading