<jupyter_start><jupyter_text>Fixed effects<jupyter_code>import glob
data = sorted(glob.glob('/Users/gilles/data/hires/07/sub-012/psc/sub-012_EPI07_run-*_bold_volreg_sg_psc.nii.gz'))
design_matrices = [pandas.read_csv(fn, sep='\t')[['red', 'blue', 'constant', 'drift_1']] for fn in sorted(glob.glob('design_matrix_resolution-070_run-*.tsv'))]
first_level_model.fit(data, design_matrices=design_matrices)
presentation = first_level_model.compute_contrast('red + blue')
presentation.to_filename('presentation_070_fe.nii.gz')
plotting.plot_stat_map(presentation, mean_img, threshold=3.1)
left_right = first_level_model.compute_contrast('red - blue')
left_right.to_filename('red_blue_070_fe.nii.gz')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1505524861878453, 'fraction_numerical': 0.03038674033149171, 'mean_word_length': 9.984848484848484, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '160753', 'license': 'MIT', 'n_tokens_mistral': 296, 'n_tokens_neox': 275, 'n_words': 28, 'path': 'notebooks/Fit 07.ipynb', 'repo_name': 'VU-Cog-Sci/hires_ODC_7T', 'size': '724'}