8000 minor updates · nipype/pydra-tutorial@abb2ba6 · GitHub
[go: up one dir, main page]

Skip to content

Commit abb2ba6

Browse files
committed
minor updates
2 parents 4149c80 + 80e4579 commit abb2ba6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

notebooks/7_twolevel_glm_nilearn.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,6 @@ def get_fixed_effcts(subj_id, subj_masks, contrasts, effect_size_path_dict_list,
383383

384384
### Create the fixed effect workflow
385385

386-
387386
```{code-cell} ipython3
388387
# initiate the fixed effect GLM workflow
389388
wf_fixed_effect = Workflow(
@@ -482,7 +481,7 @@ def secondlevel_estimation(firstlevel_stats_list, design_matrix, firstlevel_cont
482481
stat_maps_dict = dict.fromkeys(firstlevel_contrast[0][0].keys())
483482
for index, (contrast_id, contrast_val) in enumerate(firstlevel_contrast[0][0].items()):
484483
print(' Contrast % 2i out of %i: %s' % (
485-
index + 1, len(firstlevel_contrast[0]), contrast_id))
484+
index + 1, len(firstlevel_contrast[0][0]), contrast_id))
486485
second_level_input = [nib.load(stats_dict[contrast_id]) for stats_dict in firstlevel_stats_list]
487486
second_level_model = SecondLevelModel()
488487
second_level_model = second_level_model.fit(second_level_input, design_matrix=design_matrix)
@@ -692,7 +691,7 @@ def nonparametric_test(firstlevel_stats_list, smoothing_fwhm, design_matrix, fir
692691
plot_contrast_dict = dict.fromkeys(firstlevel_contrast[0][0].keys())
693692
for index, (contrast_id, contrast_val) in enumerate(firstlevel_contrast[0][0].items()):
694693
print(' Contrast % 2i out of %i: %s' % (
695-
index + 1, len(firstlevel_contrast[0]), contrast_id))
694+
index + 1, len(firstlevel_contrast[0][0]), contrast_id))
696695
# here we set threshold as none to do voxel-level FWER-correction.
697696
second_level_input = [nib.load(stats_dict[contrast_id]) for stats_dict in firstlevel_stats_list]
698697
neg_log_pvals_permuted_ols_unmasked = \
@@ -808,7 +807,7 @@ print(results)
808807

809808
## Let's Plot!
810809

811-
We only use 5 subjects, so it's reasonable the following plots have nothing survived from testing.
810+
We only use 2 subjects, so it's reasonable the following plots have nothing survived from testing.
812811

813812
+++
814813

0 commit comments

Comments
 (0)
0