OSCR

The language network responds robustly to sentences across tasks.

Code ↔ Paper

4 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 4 matches
  1. [1] § Results › Task demands lead to higher responses in the language network but also engage the multiple demand network. ↔ effect_estimation/visualize_data.ipynb, lines 62–86 · score 0.53 · hard memory probe, easy memory probe, button press, sentiment, V5, V3
  2. [2] § Results › Task demands lead to higher responses in the language network but also engage the multiple demand network. ↔ spatial_correlation/visualize_data.ipynb, lines 14–96 · score 0.53 · hard memory probe, easy memory probe, button press, sentiment, V5, V3
  3. [3] § Methods › Behavioral performance in the scanner ↔ effect_estimation/visualize_data.ipynb, lines 204–262 · score 0.51 · hard memory probe, easy memory probe, button press, sentiment, nonword, sentence
  4. [4] § Methods › fMRI data preprocessing ↔ spatial_correlation/MATLAB_Scripts/spcorr_mega_all.m, lines 152–180 · score 0.50 · MATLAB scripts, SPM, voxels, regressors

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

Jupyter notebook · 417 lines · 15 KB · MIT · 2 matches

  1. # %%
  2. import pandas as pd
  3. import pathlib
  4. import numpy as np
  5. import matplotlib.pyplot as plt
  6. import seaborn as sns
  7. cwd = pathlib.Path('/Users/rgao76/Documents/DiffTasks/effect_estimation_2025')
  8. # %%
  9. def brighten_hex_color(hex_color, alpha):
  10. # Convert hex to RGB
  11. r = int(hex_color[1:3], 16)
  12. g = int(hex_color[3:5], 16)
  13. b = int(hex_color[5:7], 16)
  14. # Brighten each channel
  15. r_new = int(r + (255 - r) * alpha)
  16. g_new = int(g + (255 - g) * alpha)
  17. b_new = int(b + (255 - b) * alpha)
  18. # Clamp to [0, 255] and convert back to hex
  19. return '#{:02x}{:02x}{:02x}'.format(min(r_new, 255), min(g_new, 255), min(b_new, 255))
  20. # %%
  21. data = pd.read_csv(cwd / 'Data' / 'all_data.csv')
  22. data = data[~data['ROI'].str.contains('AngG')]
  23. data['Version'] = data['Version'].fillna('')
  24. def process_data(df, hemisphere=None, system=None, localizer=None,
  25. include_localizer=False, include_ROI=False):
  26. mask = (df['System'] == system)
  27. if hemisphere:
  28. mask &= (df['Hemisphere'] == hemisphere)
  29. if localizer:
  30. mask &= (df['Localizer'] == localizer)
  31. df_filtered = df[mask].copy()
  32. df_filtered['Task_Effect'] = (df_filtered['Version'] + ' ' + df_filtered['Effect']).str.strip()
  33. group_cols = ['System', 'Subject', 'Task_Effect']
  34. if include_localizer:
  35. group_cols.append('Localizer')
  36. if include_ROI:
  37. group_cols.append('ROI')
  38. return df_filtered[group_cols + ['EffectSize']].groupby(group_cols).mean().reset_index()
  39. data_language_lh_localizers = process_data(data, hemisphere='LH', system='Language', include_localizer=True)
  40. data_language_rh_localizers = process_data(data, hemisphere='RH', system='Language', include_localizer=True)
  41. data_language_lh_ROI = process_data(data, hemisphere='LH', system='Language', include_ROI=True)
  42. data_language_lh = process_data(data, hemisphere='LH', system='Language', localizer='V1')
  43. data_language_rh = process_data(data, hemisphere='RH', system='Language', localizer='V1')
  44. data_md_lh = process_data(data, hemisphere='LH', system='MD')
  45. data_md_rh = process_data(data, hemisphere='RH', system='MD')
  46. # %%
  47. data_language_lh
  48. # %%
  49. beh_data
  50. # %%
  51. hue_order = ['V1 S', 'V1 N', 'V2 S', 'V2 N', 'V3 S', 'V3 N', 'V6 S', 'V6 N', 'V4 S', 'V4 N', 'V5 S', 'V5 N']
  52. all_colors_expanded = ["#606060", brighten_hex_color("#606060", 0.4),
  53. "#0000ff", brighten_hex_color("#0000ff", 0.7),
  54. "#00aaff", brighten_hex_color("#00aaff", 0.7),
  55. "#606060", brighten_hex_color("#0000ff", 0.7),
  56. "#ff007f", brighten_hex_color("#0000ff", 0.7),
  57. "#ff6e00", brighten_hex_color("#0000ff", 0.7),
  58. ]
  59. localizer_renaming = {
  60. 'V1': 'V1 (button press)',
  61. 'V2': 'V2 (hard memory probe)',
  62. 'V3': 'V3 (easy memory probe)',
  63. 'V4': 'V5 (comprehension q)',
  64. 'V5': 'V6 (sentiment q)',
  65. 'V6': 'V4 (button press)',
  66. }
  67. order = ['V2 (hard memory probe)', 'V3 (easy memory probe)',
  68. 'V4 (button press)', 'V5 (comprehension q)', 'V6 (sentiment q)']
  69. header_sz = 10
  70. axis_label_sz = 6
  71. stripplot_sz = 1.0
  72. annot_height = 1
  73. jitter = 0.2
  74. # %%
  75. data_language_lh_withSet = data_language_lh.copy()
  76. beh_data = pd.read_csv(cwd / '..' / 'behavioral_analysis_2025' / 'qc' / 'Data' / 'processed_data_by_trial.csv')
  77. beh_data = beh_data[beh_data['Version'] == 1]
  78. data_language_lh_withSet = data_language_lh_withSet.merge(beh_data[['Subject', 'Set']].drop_duplicates(), on='Subject', how='left')
  79. plt.figure(figsize=(7, 2), tight_layout=True, dpi=300)
  80. ax = sns.barplot(
  81. x='Set', y='EffectSize', hue='Task_Effect',
  82. data=data_language_lh_withSet,
  83. legend=False, errorbar='se',
  84. palette=all_colors_expanded, hue_order=hue_order,
  85. err_kws={'linewidth': 1.5})
  86. sns.stripplot(
  87. x='Set', y='EffectSize', hue='Task_Effect',
  88. data=data_language_lh_withSet,
  89. dodge=True, jitter=jitter, legend=False,
  90. size=stripplot_sz, palette='dark:black',
  91. hue_order=hue_order)
  92. plt.xticks(fontsize=8)
  93. plt.yticks(fontsize=8)
  94. plt.ylabel("Effect size", fontsize=8)
  95. plt.xlabel("", fontsize=axis_label_sz)
  96. ax.set_xticklabels([f'Set {i}' for i in range(1, 6)], fontsize=8)
  97. plt.savefig(cwd / 'Figures' / 'effects_V1_bySet.png', dpi=300, format='png',
  98. transparent=True)
  99. # print the number of unique subjects in each set
  100. for set_num in range(1, 6):
  101. num_subjects = data_language_lh_withSet[data_language_lh_withSet['Set'] == set_num]['Subject'].nunique()
  102. print(f'Set {set_num}: {num_subjects} unique subjects')
  103. # %%
  104. # Localizers
  105. plt.figure(figsize=(7, 2), tight_layout=True, dpi=300)
  106. data_language_lh_localizers['Localizer'] = data_language_lh_localizers['Localizer'].replace(localizer_renaming)
  107. ax = sns.barplot(
  108. x='Localizer', y='EffectSize', hue='Task_Effect',
  109. data=data_language_lh_localizers,
  110. legend=False, errorbar='se',
  111. palette=all_colors_expanded, hue_order=hue_order, order=order,
  112. err_kws={'linewidth': 1.5})
  113. sns.stripplot(
  114. x='Localizer', y='EffectSize', hue='Task_Effect',
  115. data=data_language_lh_localizers,
  116. dodge=True, jitter=jitter, legend=False,
  117. size=stripplot_sz, palette='dark:black',
  118. hue_order=hue_order, order=order)
  119. plt.xticks(fontsize=6)
  120. plt.yticks(fontsize=6)
  121. plt.ylabel("Effect size", fontsize=axis_label_sz)
  122. plt.xlabel("", fontsize=axis_label_sz)
  123. plt.savefig(cwd / 'Figures' / 'effects_localizers.png', dpi=300, format='png',
  124. transparent=True)
  125. # %%
  126. # V1
  127. plt.figure(figsize=(2, 2), tight_layout=True, dpi=300)
  128. data_language_lh['Localizer'] = 'V1'
  129. ax = sns.barplot(
  130. x='Localizer', y='EffectSize', hue='Task_Effect',
  131. data=data_language_lh, legend=False, errorbar='se',
  132. palette=all_colors_expanded, hue_order=hue_order,
  133. err_kws={'linewidth': 1.5})
  134. sns.stripplot(
  135. x='Localizer', y='EffectSize', hue='Task_Effect',
  136. data=data_language_lh,
  137. dodge=True, jitter=jitter, legend=False,
  138. size=stripplot_sz, palette='dark:black',
  139. hue_order=hue_order)
  140. plt.xticks(fontsize=6)
  141. plt.yticks(fontsize=6)
  142. plt.ylabel("Effect size", fontsize=axis_label_sz)
  143. plt.xlabel("Localizer:\nV1 (button press)", fontsize=axis_label_sz)
  144. plt.xticks([])
  145. plt.savefig(cwd / 'Figures' / 'effects_V1.png', dpi=300, format='png',
  146. transparent=True)
  147. # %%
  148. # ROI
  149. for roi in data_language_lh_ROI['ROI'].unique():
  150. fig = plt.figure(figsize=(2, 1.5), dpi=300)
  151. data_subset = data_language_lh_ROI[data_language_lh_ROI['ROI'] == roi]
  152. data_subset_mean = data_subset[['Subject', 'Task_Effect', 'EffectSize']].groupby(
  153. ['Subject', 'Task_Effect']
  154. ).mean().reset_index()
  155. data_subset_mean['Localizer'] = 'V1'
  156. ax = sns.barplot(
  157. x='Localizer', y='EffectSize', hue='Task_Effect',
  158. data=data_subset_mean, legend=False, errorbar='se',
  159. palette=all_colors_expanded, hue_order=hue_order,
  160. err_kws={'linewidth': 1.5})
  161. sns.stripplot(
  162. x='Localizer', y='EffectSize', hue='Task_Effect',
  163. data=data_subset_mean, dodge=True, jitter=jitter, legend=False,
  164. size=stripplot_sz, palette='dark:black',
  165. hue_order=hue_order)
  166. # change xticks size
  167. plt.xticks(fontsize=6)
  168. plt.yticks(fontsize=6)
  169. plt.ylabel("Effect size", fontsize=axis_label_sz)
  170. plt.xlabel(None, fontsize=axis_label_sz)
  171. plt.xticks([])
  172. plt.title(roi.replace('LH_', ''), fontsize=axis_label_sz)
  173. fig.subplots_adjust(left=0.25)
  174. plt.savefig(cwd / 'Figures' / f'effects_{roi}.png', dpi=300, format='png',
  175. transparent=True)
  176. # %%
  177. from matplotlib.patches import Rectangle
  178. colors_s = ['#606060', '#0000ff', '#00aaff', '#ff007f', '#ff6e00']
  179. labels = ['Button press',
  180. 'Hard memory probe',
  181. 'Easy memory probe',
  182. 'Comprehension q',
  183. 'Sentiment q']
  184. colors_col2 = colors_s[:3] + [None, None] # Repeat first 3, leave last 2 blank
  185. # Parameters
  186. box_width = 1.2
  187. box_height = 0.4
  188. margin = 0.3
  189. label_width = 4
  190. gap_between_columns = 0.8
  191. total_rows = len(colors_s)
  192. total_height = total_rows * (box_height + margin)
  193. total_width = label_width + 2 * box_width + gap_between_columns
  194. fig, ax = plt.subplots(figsize=(total_width, total_height))
  195. # Draw label column and first color column
  196. for i, (label, color) in enumerate(zip(labels, colors_s)):
  197. y_pos = total_height - (i + 1) * (box_height + margin)
  198. # Label
  199. ax.text(label_width - 4, y_pos + box_height / 2, label,
  200. ha='left', va='center', fontsize=24)
  201. # First column rectangle
  202. rect1 = Rectangle((label_width, y_pos), box_width, box_height,
  203. color=color, edgecolor='black')
  204. ax.add_patch(rect1)
  205. # Draw second column
  206. for i, color in enumerate(colors_col2):
  207. y_pos = total_height - (i + 1) * (box_height + margin)
  208. if color is not None:
  209. color = brighten_hex_color(color, 0.4) if color == '#606060' else brighten_hex_color(color, 0.7)
  210. rect2 = Rectangle((label_width + box_width + gap_between_columns, y_pos),
  211. box_width, box_height, color=color, edgecolor='black')
  212. ax.add_patch(rect2)
  213. # Set limits and remove axes
  214. ax.set_xlim(0, total_width)
  215. ax.set_ylim(0, total_height)
  216. ax.axis('off')
  217. # Add column headers
  218. header_y = total_height # Slightly above the top row
  219. ax.text(label_width + box_width / 2, header_y, "Sentence", ha='center', va='bottom', fontsize=24)
  220. ax.text(label_width + box_width + gap_between_columns + box_width / 2, header_y, "Nonwords", ha='center', va='bottom', fontsize=24)
  221. plt.tight_layout()
  222. plt.savefig(cwd / 'Figures' / 'color_legend.png', dpi=300, format='png',
  223. transparent=True)
  224. # %%
  225. # Left to right: Langauge LH, Language RH, MD LH, MD RH
  226. def plot_bar_with_strip(ax, data, palette, hue_order_labels_local, hue_order_plot,
  227. is_grouped=False, title=None):
  228. sns.barplot(x='System', y='EffectSize', hue='Task_Effect', data=data,
  229. ax=ax, legend=False, errorbar='se',
  230. palette=palette, hue_order=hue_order_plot)
  231. sns.stripplot(x='System', y='EffectSize', hue='Task_Effect', data=data,
  232. dodge=True, jitter=jitter, legend=False, size=stripplot_sz,
  233. ax=ax, palette='dark:black',
  234. hue_order=hue_order_plot)
  235. bar_centers = [bar.get_x() + bar.get_width() / 2 for bar in ax.patches]
  236. ax.set_xticks([])
  237. ax.set_xticks(bar_centers)
  238. ax.set_xticklabels(hue_order_labels_local, rotation=90)
  239. ax.set_ylabel("")
  240. ax.set_xlabel("")
  241. ax.tick_params(axis='y', labelsize=8)
  242. ax.tick_params(axis='x', labelsize=6)
  243. ax.set_xlim(ax.patches[0].get_x(), ax.patches[-1].get_x() + ax.patches[-1].get_width())
  244. if title:
  245. ax.set_title(title, fontsize=header_sz-2, pad=5)
  246. # Adjust hue_order labels
  247. hue_order_labels = [label.replace('V6', 'V1b').replace('V5', 'V6').replace('V4', 'V5').replace('V1b', 'V4') for label in hue_order]
  248. # Setup figure
  249. fig, axs = plt.subplots(1, 4, figsize=(6, 2.5), constrained_layout=True, dpi=300, sharey=True,
  250. width_ratios=[1, 1, 1, 1])
  251. # Plot Language LH
  252. plot_bar_with_strip(
  253. axs[0], data_language_lh,
  254. all_colors_expanded,
  255. hue_order_labels,
  256. hue_order,
  257. title='Left Hemisphere'
  258. )
  259. # Plot Language RH
  260. plot_bar_with_strip(
  261. axs[1], data_language_rh,
  262. all_colors_expanded,
  263. hue_order_labels,
  264. hue_order,
  265. title='Right Hemisphere'
  266. )
  267. # Plot MD LH
  268. plot_bar_with_strip(
  269. axs[2], data_md_lh,
  270. all_colors_expanded + ['white', '#20CC00', '#28FF00'],
  271. hue_order_labels + ['H', 'E'],
  272. hue_order + ['placeholder', 'H', 'E'],
  273. title='Left Hemisphere'
  274. )
  275. # Plot MD RH
  276. plot_bar_with_strip(
  277. axs[3], data_md_rh,
  278. all_colors_expanded + ['white', '#20CC00', '#28FF00'],
  279. hue_order_labels + ['H', 'E'],
  280. hue_order + ['placeholder', 'H', 'E'],
  281. title='Right Hemisphere'
  282. )
  283. # Final layout and save
  284. fig.supylabel("Effect size", fontsize=axis_label_sz, x=0.)
  285. fig.savefig(cwd / 'Figures' / 'effects_networks.png', dpi=300, format='png',
  286. bbox_inches='tight', transparent=True)
  287. # %%
  288. # Color legend for MD
  289. import matplotlib.pyplot as plt
  290. from matplotlib.patches import Rectangle
  291. fig, ax = plt.subplots(figsize=(5, 1), dpi=300, constrained_layout=True)
  292. colors = ['#20CC00', '#28FF00']
  293. labels = ['Hard', 'Easy']
  294. for i, (color, label) in enumerate(zip(colors, labels)):
  295. x_pos = i * 3 # spacing between blocks
  296. rect = Rectangle((x_pos, 0), 1.2, 0.4, color=color, edgecolor='black')
  297. ax.add_patch(rect)
  298. ax.text(x_pos + 1.5, 0.2, label, fontsize=24, va='center')
  299. ax.set_xlim(-0.2, 4.2)
  300. ax.set_ylim(-0.2, 0.8)
  301. ax.axis('off')
  302. plt.savefig(cwd / 'Figures' / 'color_legend_MD.png', dpi=300, format='png',
  303. transparent=True)
  304. # %%
  305. # print the number of subjects for each localizer:
  306. for localizer in data_language_lh_localizers['Localizer'].unique():
  307. n_subjects = data_language_lh_localizers[
  308. data_language_lh_localizers['Localizer'] == localizer
  309. ]['Subject'].nunique()
  310. print(f"{localizer}: {n_subjects} subjects")
  311. # %%
  312. # first, only keep tasks_effect where there is 'S' or 'N' in the string, and recode them as 'S' and 'N'
  313. data_language_lh_copy = data_language_lh_localizers.copy()
  314. data_language_lh_copy_s = data_language_lh_copy[
  315. data_language_lh_copy['Task_Effect'].str.contains('S')
  316. ]
  317. data_language_lh_copy_s['Task_Effect'] = 'S'
  318. data_language_lh_copy_n = data_language_lh_copy[
  319. data_language_lh_copy['Task_Effect'].str.contains('N')
  320. ]
  321. data_language_lh_copy_n['Task_Effect'] = 'N'
  322. data_language_lh_copy_s['EffectSize'].mean() / data_language_lh_copy_n['EffectSize'].mean(), data_language_lh_copy_s['EffectSize'].mean(), data_language_lh_copy_n['EffectSize'].mean()
  323. # %%
  324. data_language_lh_copy_s
  325. # %%
  326. # for each Localizer, S/N
  327. for localizer in data_language_lh_localizers['Localizer'].unique():
  328. data_subset = data_language_lh_localizers[
  329. data_language_lh_localizers['Localizer'] == localizer
  330. ]
  331. data_s = data_subset[
  332. data_subset['Task_Effect'].str.contains('S')
  333. ]
  334. data_s['Task_Effect'] = 'S'
  335. data_n = data_subset[
  336. data_subset['Task_Effect'].str.contains('N')
  337. ]
  338. data_n['Task_Effect'] = 'N'
  339. ratio = data_s['EffectSize'].mean() / data_n['EffectSize'].mean()
  340. mean_s = data_s['EffectSize'].mean()
  341. mean_n = data_n['EffectSize'].mean()
  342. print(f"{localizer}: S/N ratio = {ratio:.2f}, Mean S = {mean_s:.3f}, Mean N = {mean_n:.3f}")
  343. # %%
  344. # first, only keep tasks_effect where there is 'S' or 'N' in the string, and recode them as 'S' and 'N'
  345. data_language_rh_copy = data_language_rh_localizers.copy()
  346. data_language_rh_copy_s = data_language_rh_copy[
  347. data_language_rh_copy['Task_Effect'].str.contains('S')
  348. ]
  349. data_language_rh_copy_s['Task_Effect'] = 'S'
  350. data_language_rh_copy_n = data_language_rh_copy[
  351. data_language_rh_copy['Task_Effect'].str.contains('N')
  352. ]
  353. data_language_rh_copy_n['Task_Effect'] = 'N'
  354. data_language_rh_copy_s['EffectSize'].mean() / data_language_rh_copy_n['EffectSize'].mean(), data_language_rh_copy_s['EffectSize'].mean(), data_language_rh_copy_n['EffectSize'].mean()

visualize_data.ipynb at commit 152807b, under MIT · at the source

Overview

Authors: Ruimin Gao1, Chandler Cheung2, Matthew Siegelman3, Alvincé L A Pongos4,5, Hope H Kean6,7, Alyx Tanner8, Evelina Fedorenko6,7, Anna A Ivanova1
  1. School of Psychological and Brain Sciences, Georgia Institute of Technology, Atlanta, GA, United States
  2. Department of Computer and Information Science, University of Pennsylvania, Philadelphia, PA, United States
  3. Department of Psychology, Columbia University, New York, NY, United States
  4. University of California, Berkeley, CA, United States
  5. University of California, San Francisco, CA, United States
  6. Department of Brain and Cognitive Sciences, Massachusetts Institute of Technology, Cambridge, MA, United States
  7. McGovern Institute for Brain Research, Massachusetts Institute of Technology, Cambridge, MA, United States
  8. Department of Psychology, New York University, New York, NY, United States
Journal: Imaging neuroscience (Cambridge, Mass.), volume 4, article IMAG.a.1283
Dates: received 7 December 2025; accepted 20 May 2026; published online 25 June 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1162/imag.a.1283 · PMID 42368745 · PMCID PMC13308801 · OpenAlex W7163410756
Open access: diamond, a free copy (OpenAlex)
Status: code verified
Categories: fMRI (modality), human (organism)
Methods: Connectivity, Statistics, Machine learning, Preprocessing, fMRI & imaging, Spectral & time-frequency
Keywords: language network, Multiple Demand network, fMRI, sentence comprehension, task demands
Topic: Neurobiology of Language and Bilingualism (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: McGovern Institute for Brain Research, Massachusetts Institute of Technology; School of Psychology, Georgia Institute of Technology (Startup Fund); Simons Center for the Social Brain, Massachusetts Institute of Technology; Poitras Center for Psychiatric Disorders Research, Massachusetts Institute of Technology; Quest for Intelligence, Massachusetts Institute of Technology
Citations: cited by 4 papers (Europe PMC); 95 references in the paper

Abstract

A network of left frontal and temporal brain areas supports language comprehension and production, implementing computations related to word retrieval and combinatorial linguistic processing. Here, we ask: to what extent are responses to language in this language network stable across task contexts, and how does this stability compare to task sensitivity in the domain-general multiple demand (MD) network? Participants (n = 52) read sentences and nonword lists under six task conditions, including passive reading, reading with a memory probe after each stimulus, and reading and answering questions that require deep semantic engagement. The sentences > nonwords contrast isolated the same set of language-responsive voxels across all tasks; the locations of those voxels were participant-specific, highlighting the value of individual-specific functional localization. We, therefore, conclude that language localization is robust to task variation. We then examined the magnitudes and fine-grained activation patterns in these language-responsive voxels (the language network) and in the domain-general MD network, to test whether task demands modulate linguistic computations and/or recruit a distinct brain system. The language network responded robustly to sentences across all tasks, with somewhat higher responses to semantically engaging tasks. In contrast, the MD network responded to both sentences and nonwords in the presence of a task, which warrants caution when using language paradigms that include task demands, as such paradigms engage two independent networks. A multivariate analysis further revealed that stimulus information is more easily decodable in the language network, whereas task information is more decodable in the MD network. These results suggest that the language and MD networks perform complementary functions during task-driven language comprehension, with the language network primarily extracting information from linguistic input and the MD network determining the appropriate response to the task.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above, with 4 matches between paragraphs and lines of code.

RuiminGao/DiffTasks

License: MIT
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 152807bcfc2383f8767ec322b2704aed410ca741, 14 July 2026
Languages: MATLAB (17), Jupyter (12), Python (7), R (5), Shell (1)
Size: 188 files, 42 scripts
Software Heritage: not archived
Found in: “Data and Code Availability”
Holds: README, license file, 17 notebooks
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: pandas (17 files), NumPy (13 files), Psychtoolbox (9 files), Matplotlib (8 files), seaborn (7 files), emmeans (5 files), lmerTest (5 files), multcomp (5 files), tidyverse (5 files), SciPy (4 files), CONN (3 files), Nilearn (3 files), scikit-learn (2 files), SPM (2 files), broom (1 file), h5py (1 file), statannotations (1 file), statsmodels (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
44 files

The paper's code and data availability statement is in the Data section.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 42 scripts, each with its path and the digest of its content;
  • 4 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

Datasets cited

  • osf:zyfmu, at OSF; found in the text, “Design, materials, and procedure”

Data and Code Availability

The experiment scripts, data, codes are available at https://github.com/RuiminGao/DiffTasks.git. The language and the MD parcels are available at https://www.evlab.mit.edu/resources-all/download-parcels.

Reproduced under the paper's license (CC BY), from the paper cited above.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, pages, dates, 8 authors, 5 keywords, 5 funders, 94 references.

Cite

This paper

Gao, R., Cheung, C., Siegelman, M., Pongos, A. L. A., Kean, H. H., Tanner, A., Fedorenko, E., & Ivanova, A. A. (2026). The language network responds robustly to sentences across tasks. Imaging neuroscience (Cambridge, Mass.), 4, IMAG.a.1283. https://doi.org/10.1162/imag.a.1283

BibTeX

@article{gao2026language,
author = {Gao, Ruimin and Cheung, Chandler and Siegelman, Matthew and Pongos, Alvincé L A and Kean, Hope H and Tanner, Alyx and Fedorenko, Evelina and Ivanova, Anna A},
title = {{The language network responds robustly to sentences across tasks}},
journal = {Imaging neuroscience (Cambridge, Mass.)},
year = {2026},
month = jun,
volume = {4},
pages = {IMAG.a.1283},
publisher = {MIT Press},
issn = {2837-6056},
doi = {10.1162/imag.a.1283},
url = {https://doi.org/10.1162/imag.a.1283},
pmid = {42368745},
pmcid = {PMC13308801}
}

RIS

TY - JOUR
AU - Gao, Ruimin
AU - Cheung, Chandler
AU - Siegelman, Matthew
AU - Pongos, Alvincé L A
AU - Kean, Hope H
AU - Tanner, Alyx
AU - Fedorenko, Evelina
AU - Ivanova, Anna A
TI - The language network responds robustly to sentences across tasks
T2 - Imaging neuroscience (Cambridge, Mass.)
J2 - Imaging Neurosci (Camb)
PY - 2026
DA - 2026/06/25
VL - 4
SP - IMAG.a.1283
SN - 2837-6056
PB - MIT Press
DO - 10.1162/imag.a.1283
UR - https://doi.org/10.1162/imag.a.1283
LA - en
ER -

CSL-JSON

{
"id": "10.1162/imag.a.1283",
"type": "article-journal",
"title": "The language network responds robustly to sentences across tasks",
"container-title": "Imaging neuroscience (Cambridge, Mass.)",
"author": [
{
"family": "Gao",
"given": "Ruimin"
},
{
"family": "Cheung",
"given": "Chandler"
},
{
"family": "Siegelman",
"given": "Matthew"
},
{
"family": "Pongos",
"given": "Alvincé L A"
},
{
"family": "Kean",
"given": "Hope H"
},
{
"family": "Tanner",
"given": "Alyx"
},
{
"family": "Fedorenko",
"given": "Evelina"
},
{
"family": "Ivanova",
"given": "Anna A"
}
],
"container-title-short": "Imaging Neurosci (Camb)",
"volume": "4",
"page": "IMAG.a.1283",
"DOI": "10.1162/imag.a.1283",
"PMID": "42368745",
"PMCID": "PMC13308801",
"ISSN": "2837-6056",
"publisher": "MIT Press",
"URL": "https://doi.org/10.1162/imag.a.1283",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
25
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1162/imag.a.1246 [code]
A 3.5-minute-long reading-based fMRI localizer for the language network.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: Psychtoolbox, lmerTest, h5py, 7 other tools, fMRI, 51 references
[2] doi:10.1038/s41467-026-76598-x
Preserved topography, lateralization, selectivity, and functional connectivity of the language network in older brains.
Journal: Nature communications
In common: fMRI, 30 references
[3] doi:10.1523/jneurosci.0638-25.2026 [code]
The Extended Language Network: Language-Responsive Brain Areas Whose Contributions to Language Remain To Be Discovered.
Journal: The Journal of neuroscience : the official journal of the Society for Neuroscience
In common: fMRI, 27 references
[4] doi:10.1038/s41467-026-75745-8 [code]
A language network in the individualized functional connectomes of 1199 human brains doing arbitrary tasks.
Journal: Nature communications
In common: Nilearn, h5py, seaborn, 5 other tools, 22 references
[5] doi:10.1038/s41467-026-72916-5 [code]
Precision fMRI reveals that the language network exhibits adult-like left-hemispheric lateralization by 4 years of age.
Journal: Nature communications
In common: emmeans, lmerTest, SPM, 1 other tool, fMRI, 21 references
[6] doi:10.1016/j.neuron.2026.04.011 [code]
Precision fMRI reveals densely interdigitated network patches with conserved motifs in the lateral prefrontal cortex.
Journal: Neuron
In common: Nilearn, SPM, scikit-learn, 3 other tools, fMRI, 11 references
[7] doi:10.21203/rs.3.rs-9326213/v1 [code]
Multi-task fMRI outperforms resting-state fMRI for revealing task-invariant organization of the human brain
Journal: Research Square (preprint)
In common: statannotations, Nilearn, SPM, 7 other tools, fMRI, 3 references
[8] doi:10.64898/2026.03.09.710558 [code]
Multi-task fMRI outperforms resting-state fMRI for revealing task-invariant organization of the human brain
Journal: bioRxiv (preprint)
In common: statannotations, Nilearn, SPM, 7 other tools, fMRI, 3 references
[9] doi:10.1093/nc/niag029 [code]
A data-driven approach to identifying and evaluating connectivity-based neural correlates of conscious visual perception.
Journal: Neuroscience of consciousness
In common: broom, emmeans, lmerTest, 10 other tools, 1 reference
[10] doi:10.1038/s41467-026-73895-3 [code]
Sign language narrative reveals universal and modality-specific features of cortical timescale hierarchy.
Journal: Nature communications
In common: Nilearn, statsmodels, seaborn, 4 other tools, fMRI, 6 references

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.