Skip to content

Commit 53a12b5

Browse files
authored
Merge pull request #80 from cpp-lln-lab/add_new_atlas
[ENH] add HPC extended atlas
2 parents 457cee8 + 34da6b3 commit 53a12b5

20 files changed

+625
-35
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
path = lib/marsbar
33
url = https://github.com/marsbar-toolbox/marsbar.git
44
datalad-url = https://github.com/marsbar-toolbox/marsbar.git
5+
[submodule "atlas/HCPex"]
6+
path = atlas/HCPex
7+
url = https://github.com/wayalan/HCPex.git

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ as a submodule, and initialized when running `initCppSpm`.
6666
- neurosynth probability maps
6767
- the probabilistic maps of visual topography in human cortex [@wang2014]
6868
- https://scholar.princeton.edu/napl/resources
69-
- the probabilistic functional atlas of human occipito-temporal visual cortex [@rosenke2020]
69+
- the probabilistic functional atlas of human occipito-temporal visual
70+
cortex [@rosenke2020]
71+
- [extended Human Connectome Project multimodal parcellation atlas](https://github.com/wayalan/HCPex.git)
72+
of the human cortex and subcortical areas [@huang_extended_2022]
7073

7174
Also includes:
7275

atlas/HCPex

Submodule HCPex added at 543e88b

atlas/HCPex.xml

Lines changed: 443 additions & 0 deletions
Large diffs are not rendered by default.

atlas/miss_hit.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exclude_dir: "HCPex"

atlas/returnAtlasDir.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
case 'visfatlas'
2626
atlasDir = fullfile(atlasDir, 'visfAtlas');
2727

28+
case 'hcpex'
29+
atlasDir = fullfile(atlasDir, 'HCPex', 'HCPex_v1.0');
30+
2831
case 'neuromorphometrics'
2932

3033
otherwise

initCppRoi.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ function initCppRoi()
2828
catch
2929
end
3030

31+
unzipAtlas('hcpex');
32+
copyAtlasToSpmDir('HCPex', 'verbose', true);
33+
copyAtlasToSpmDir('AAL', 'verbose', true);
34+
3135
CPP_ROI_INITIALIZED = true();
3236

3337
else

references.bib

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,19 @@ @article{wang2014
2727
url = {https://doi.org/10.1093/cercor/bhu277},
2828
eprint = {https://academic.oup.com/cercor/article-pdf/25/10/3911/14102011/bhu277.pdf}
2929
}
30+
31+
@article{huang_extended_2022,
32+
title = {An extended {Human} {Connectome} {Project} multimodal parcellation atlas of the human cortex and subcortical areas},
33+
volume = {227},
34+
issn = {1863-2653, 1863-2661},
35+
url = {https://link.springer.com/10.1007/s00429-021-02421-6},
36+
doi = {10.1007/s00429-021-02421-6},
37+
language = {en},
38+
number = {3},
39+
urldate = {2022-12-14},
40+
journal = {Brain Structure and Function},
41+
author = {Huang, Chu-Chung and Rolls, Edmund T. and Feng, Jianfeng and Lin, Ching-Po},
42+
month = apr,
43+
year = {2022},
44+
pages = {763--778},
45+
}

src/atlas/copyAtlasToSpmDir.m

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,17 @@ function copyAtlasToSpmDir(varargin)
2727
verbose = args.Results.verbose;
2828

2929
spmAtlasDir = fullfile(spm('dir'), 'atlas');
30-
cppRoiAtlasDir = returnAtlasDir();
3130

3231
switch lower(atlas)
3332

3433
case 'aal'
35-
sourceAtlasImage = fullfile(cppRoiAtlasDir, 'AAL3', 'AAL3v1_1mm.nii.gz');
36-
sourceAtlasXml = fullfile(cppRoiAtlasDir, 'AAL3', 'AAL3v1_1mm.xml');
34+
sourceAtlasImage = fullfile(returnAtlasDir(), 'AAL3', 'AAL3v1_1mm.nii.gz');
35+
sourceAtlasXml = fullfile(returnAtlasDir(), 'AAL3', 'AAL3v1_1mm.xml');
36+
37+
case 'hcpex'
38+
sourceAtlasImage = fullfile(returnAtlasDir('hcpex'), 'HCPex.nii.gz');
39+
sourceAtlasXml = fullfile(returnAtlasDir(), 'HCPex.xml');
40+
3741
end
3842

3943
targetAtlasImage = fullfile(spmAtlasDir, spm_file(sourceAtlasImage, 'filename'));

src/atlas/extractRoiFromAtlas.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
% roiImage = extractRoiFromAtlas(outputDir, atlasName, roiName, hemisphere)
99
%
1010
% :param outputDir:
11-
% :param atlasName: ``wang``, ``neuromorphometrics``
11+
% :param atlasName: ``wang``, ``neuromorphometrics``, ``'hcpex'``
1212
% :param roiName: run ``getLookUpTable(atlasName)`` to get a list of ROI names to choose from
1313
% :param hemisphere: ``L`` or ``R``
1414
% :type outputDir: string
@@ -61,6 +61,10 @@
6161

6262
roiIdx = strcmp([prefix roiName], lut.ROI);
6363

64+
elseif strcmpi(atlasName, 'hcpex')
65+
66+
roiIdx = strcmp([hemisphere '_' roiName], lut.ROI);
67+
6468
end
6569

6670
% create ROI

0 commit comments

Comments
 (0)