Increased sensitivity in identifying language-related functional connectivity using jackknife resampling analyses.
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
R · 234 lines · 7.4 KB · no license
- # ******************ADEBIYI SOBITAN, PH.D.*****************
- # March. 10, 2025
- # This script performs Linear Mixed Model for Edges in the Left Hemisphere
- # generate violin plots for All and significant Edges
- setwd("C:/Users/sobitanab/Documents/Ade/Edges_2025")
- chooseCRANmirror(ind=1)
- # Install and access necessary packages
- install.packages(c("tidyverse", "factoextra", "ggplot2", "readxl","car","reshape2","psych","lme4","FactoMineR"))
- install.packages(c("lmerTest","sjPlot", "lattice", "dplyr","factoextra", "stringr", "ggpubr", "ggcorrplot"))
- library(sjPlot)
- library(lattice)
- library(tidyverse)
- library(readxl)
- library(car)
- library(reshape2)
- library(psych)
- library(lme4)
- library(FactoMineR)
- library(ggplot2)
- library(dplyr)
- library(factoextra)
- library(stringr)
- library(ggpubr)
- library(ggcorrplot)
- library(lmerTest)
- data_dir<- "C:/Users/sobitanab/Documents/Ade/Edges_2025"
- subject_folders<- list.dirs(data_dir, full.names=TRUE, recursive=FALSE)
- gender_mapping<- read_csv("C:/Users/sobitanab/Documents/Ade/Edges_2025/gender_mapfile2.csv")
- #head(gender_mapping)
- all_data<- list()
- for (folder in subject_folders) {
- # Construct each subject path
- subject_id<- basename(folder)
- # modify line below for different hemisphere
- file_pattern<- paste0(subject_id,"_jackknife_sigConn_aparc35_node2vec/",subject_id,"_jackknife_sigConn_aparc35_LH_analysis_results.xlsx")
- file_path<- file.path(folder, pattern = file_pattern)
- # check if excel file exist
- if (length(file_path)==0) {
- cat("File does not exist for:", subject_id, "\n")
- next
- }
- # Read sheet data
- sheet2_data <- read_excel(file_path, sheet = "Edges and Weights")
- # Combine
- patient_data<- sheet2_data %>%
- mutate(
- PatientID = subject_id,
- NodeID = rep(1:nrow(sheet2_data))
- )
- # Append to the list
- all_data[[subject_id]] <- patient_data
- }
- # combine into a single data frame
- if (length(all_data) > 0) {
- combined_data_LH <- bind_rows(all_data)
- } else {
- stop("No data was loaded. Please check file paths.")
- }
- str(combined_data_LH)
- combined_data_LH<- combined_data_LH %>%
- mutate(PatientID = as.character(PatientID))
- gender_mapping<- gender_mapping %>%
- mutate(PatientID = as.character(PatientID))
- # Filter
- filtered_gender_mapping<- gender_mapping %>%
- filter(as.character(PatientID) %in% combined_data_LH$PatientID)
- # Merge with gender information
- combined_data_LH <- combined_data_LH %>%
- left_join(filtered_gender_mapping, by = "PatientID")
- # Check if gender information was successfully added
- if(any(is.na(combined_data_LH$Gender))){
- stop("Some patients are missing gender information.")
- # Check if all rows have been merged successfully
- if(any(is.na(combined_data))){
- cat("Some rows are missing data after merging. Please check the input files.\n")
- }
- }
- combined_data_LH$SSAGA_Educ.2<- as.character(combined_data_LH$SSAGA_Educ.2)
- head(combined_data_LH)
- # merge Source and Target columns into one
- new_data_LH <- combined_data_LH %>%
- mutate(Edges = paste(Source, Target, sep = "-"))
- head(new_data_LH)
- write.csv(new_data_LH, file="combined_LH_2.csv")
- # LMMs for each Node
- # Fit models for each node
- results_LH <- new_data_LH %>%
- group_by(Edges) %>%
- summarise(
- Model = list(
- tryCatch(
- lmer(Weight ~ Gender + Age + Handedness + SSAGA_Educ.2 +(1 | PatientID), data = cur_data(),
- control=lmerControl(optimizer="bobyqa", optCtrl=list(maxfun=10000))),
- error = function(e)NULL
- )
- ),
- GenderEffect = if(!is.null(Model[[1]])){
- coef_summary<- summary(Model[[1]])$coefficients
- if ("GenderMale" %in% rownames(coef_summary)){
- coef_summary["GenderMale", "Estimate"]
- } else {
- NA
- }
- } else {
- NA
- },
- PValue = if(!is.null(Model[[1]])){
- coef_summary<- summary(Model[[1]])$coefficients
- if ("GenderMale" %in% rownames(coef_summary)){
- coef_summary["GenderMale", "Pr(>|t|)"]
- } else {
- NA
- }
- } else {
- NA
- }
- )
- #print("Summary of Results for Each Node:")
- print(results_LH)
- results_LH<- results_LH[, !sapply(results_LH, is.list)]
- write.csv(results_LH, file="LH_LMM_Edges.csv")
- plot_LH_Edges_data <- new_data_LH %>%
- group_by(Edges, Gender) %>%
- summarise(
- Mean = mean(Weight, na.rm = TRUE),
- SE = sd(Weight, na.rm = TRUE) / sqrt(n()),
- .groups = "drop"
- )
- #ggplot(plot_RH_Edges_data, aes(x = Edges, y = Mean, fill = Gender)) +
- ggplot(new_data_LH, aes(x = Edges, y = Weight, fill = Gender)) +
- geom_violin(alpha=0.6, trim = FALSE, position = position_dodge(0.8)) +
- #geom_boxplot(width=0.2, position=position_dodge(0.8), outlier.shape=NA, alpha=0.8)+
- #geom_bar(stat = "identity", position = position_dodge(0.8), width = 0.7) +
- #geom_errorbar(data=plot_LH_Edges_data, aes(x= Edges,ymin = Mean - SE, ymax = Mean + SE, color=Gender, group=Gender),
- # position = position_dodge(0.8), width = 0.25) +
- scale_fill_manual(values=c("Male" = "blue", "Female" = "red")) +
- scale_color_manual(values=c("Male" = "blue", "Female" = "red")) +
- labs(
- title = "Gender Differences for Brain Connections in the Left Hemisphere",
- x = "Brain Connections in the Left Hemisphere",
- y = "Mean ± SE"
- ) +
- theme_minimal() +
- theme(
- axis.text.x=element_text(angle=90, hjust=1),
- legend.title = element_blank(),
- panel.grid = element_blank()
- ) +
- geom_text(data = results_LH, aes(x = Edges, y = max(new_data_LH$Weight) + 0.2,
- label = ifelse(PValue < 0.05, "*", "")),
- inherit.aes = FALSE)
- #inherit.aes = FALSE, size = 5, color = "black")
- ggsave(file = "RH_Edges31325.jpg", dpi = 300)
- # Filter
- sig_LH_Edges<- results_LH %>% filter(PValue<0.05) %>% pull (Edges)
- #Subset
- LH_edges_filtered<- new_data_LH %>% filter(Edges %in% sig_LH_Edges)
- # stats for filtered dat
- filter_LH_Edges <- LH_edges_filtered %>%
- group_by(Edges, Gender) %>%
- summarise(
- Mean = mean(Weight, na.rm = TRUE),
- SE = sd(Weight, na.rm = TRUE) / sqrt(n()),
- .groups = "drop"
- )
- gender_colors<- c("Male" = "blue"
- ggplot(LH_edges_filtered, aes(x = Edges, y = Weight, fill = Gender)) +
- geom_violin(alpha=0.6, trim = FALSE, position = position_dodge(0.8)) +
- geom_boxplot(width=0.2, position=position_dodge(0.8), outlier.shape=NA, alpha=0.8)+
- #geom_bar(stat = "identity", position = position_dodge(0.8), width = 0.7) +
- #geom_errorbar(data=plot_RH_Edges_data, aes(x= Edges,ymin = Mean - SE, ymax = Mean + SE, color=Gender, group=Gender),
- # position = position_dodge(0.8), width = 0.25) +
- scale_fill_manual(values=c("Male" = "blue", "Female" = "red")) +
- scale_color_manual(values=c("Male" = "blue", "Female" = "red")) +
- labs(
- title = "Gender Differences in the Left Hemisphere",
- x = "Brain Connections in the Left Hemisphere",
- y = "Weight (Correlation strength)"
- ) +
- theme_minimal() +
- theme(
- axis.text.x=element_text(size=7,angle=90, hjust=1),
- legend.title = element_blank(),
- panel.grid = element_blank()
- )
- +
- geom_text(data = sig_Edges, aes(x = Edges, y = max(edges_filtered$Weight) + 0.2,
- label = ifelse(PValue < 0.05, "*", "")),
- inherit.aes = FALSE)
- ggsave(file = "sig_LH_Edges.jpg", dpi = 300)
LH_Edges_violin (1).R at commit 359a1b8, no license · at the source
Overview
- The Integrative Neuroscience of Communication Research Unit, National Institute on Deafness and Other Communication Disorders, Bethesda, MD, USA
- Biostatistics and Clinical Epidemiology Service, National Institutes of Health Clinical Center, Bethesda, MD, USA
- Division of Neuroradiology, National Institutes of Health, Clinical Center Department of Radiology and Imaging Sciences, Bethesda, MD, USA
Abstract
Functional connectivity (FC) analyses of task-based fMRI (tbfMRI) often rely on static correlation methods that average signal relationships over time. While widely used, these methods may miss transient but meaningful neural interactions. In this study, we investigated whether jackknife resampling—a technique that systematically omits one time point at a time—enhances sensitivity in detecting language-related FC networks during an auditory comprehension task. We analyzed surface-based FC networks in 172 healthy young adults from the Human Connectome Project. FC matrices were computed across 68 cortical regions of interest, and statistically significant edges were identified using Bonferroni correction. We compared FC networks derived from a traditional static correlation approach with those obtained using jackknife resampling, applying an edge consistency threshold to retain only the most stable connections across time points. The static method identified 75 significant language-related FCs. Jackknife-based analyses recovered all of these and revealed 24 additional connections or edges (eight left-hemispheric, five right-hemispheric, 11 interhemispheric; p < 0.001), including well-established language regions such as the middle temporal gyrus and posterior cingulate cortex. Jackknife resampling enhances detection of robust, task-relevant FCs, offering a promising alternative for modeling language networks and improving neurocomputational representations in both research and clinical settings.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above.
dthaploo/thinc_labs
359a1b879d78b6c8b353187717b5e9bc33fc3384, 29 August 2025Availability: 1 check, the latest on 29 September 2026: the link answers
- 29 September 2026: the link answers
7 files
- Node2Vec/
LH_Edges_violin (1).R , R, 234 lines - Node2Vec/
LinearModel_LH (1).R , R, 279 lines - Node2Vec/
LinearModel_RH (1).R , R, 280 lines - Node2Vec/
LinearModel_interH (1).R , R, 277 lines - Node2Vec/
RH_Edges_violin (1).R , R, 246 lines - Node2Vec/
cohen_script (1).R , R, 64 lines - README.md, Text, 3 lines
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;
- 6 scripts, each with its path and the digest of its content;
- no match between paragraphs and code yet;
- 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
No dataset and no data link were found in the paper.
Data and Code Availability
The data used in this paper are freely available from https://
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, 29 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 9 authors, 7 keywords, 2 funders, 38 references.
Cite
This paper
Liang, J., Thaploo, D., Sobitan, A., Wingert, K., Kurosu, A., Acker, S., Shafiei, A., Sinaii, N., & Biassou, N. M. (2026). Increased sensitivity in identifying language-related functional connectivity using jackknife resampling analyses. Network neuroscience (Cambridge, Mass.), 10(2), 267-280. https://
BibTeX
@article{liang2026increa
author = {Liang, Jinqing and Thaploo, Divesh and Sobitan, Adebiyi and Wingert, Kristen and Kurosu, Atsuko and Acker, Stein and Shafiei, Ahmad and Sinaii, Ninet and Biassou, Nadia M},
title = {{Increased sensitivity in identifying language-related functional connectivity using jackknife resampling analyses}},
journal = {Network neuroscience (Cambridge, Mass.)},
year = {2026},
month = apr,
volume = {10},
number = {2},
pages = {267--280},
publisher = {MIT Press},
issn = {2472-1751},
doi = {10.1162/
url = {https://
pmid = {42039102},
pmcid = {PMC13108337}
}
RIS
TY - JOUR
AU - Liang, Jinqing
AU - Thaploo, Divesh
AU - Sobitan, Adebiyi
AU - Wingert, Kristen
AU - Kurosu, Atsuko
AU - Acker, Stein
AU - Shafiei, Ahmad
AU - Sinaii, Ninet
AU - Biassou, Nadia M
TI - Increased sensitivity in identifying language-related functional connectivity using jackknife resampling analyses
T2 - Network neuroscience (Cambridge, Mass.)
J2 - Netw Neurosci
PY - 2026
DA - 2026/
VL - 10
IS - 2
SP - 267
EP - 280
SN - 2472-1751
PB - MIT Press
DO - 10.1162/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1162/
"type": "article-journal",
"title": "Increased sensitivity in identifying language-related functional connectivity using jackknife resampling analyses",
"container-title": "Network neuroscience (Cambridge, Mass.)",
"author": [
{
"family": "Liang",
"given": "Jinqing"
},
{
"family": "Thaploo",
"given": "Divesh"
},
{
"family": "Sobitan",
"given": "Adebiyi"
},
{
"family": "Wingert",
"given": "Kristen"
},
{
"family": "Kurosu",
"given": "Atsuko"
},
{
"family": "Acker",
"given": "Stein"
},
{
"family": "Shafiei",
"given": "Ahmad"
},
{
"family": "Sinaii",
"given": "Ninet"
},
{
"family": "Biassou",
"given": "Nadia M"
}
],
"container-title-short":
"volume": "10",
"issue": "2",
"page": "267-280",
"DOI": "10.1162/
"PMID": "42039102",
"PMCID": "PMC13108337",
"ISSN": "2472-1751",
"publisher": "MIT Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
22
]
]
}
}
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.1038/s41467-026-73262-2 [code]
- Robust but independent sex differences in human brain function, structure, and behavior.Journal: Nature communicationsIn common: car, lmerTest, lme4, 4 other tools, 3 references
- [2] doi:10.1002/hbm.26535 [code]
- How do tasks impact the reliability of fMRI functional connectivity?Journal: Human brain mappingIn common: psych, lmerTest, lme4, 4 other tools, fMRI, 3 references
- [3] doi:10.1162/nol_a_00081 [code]
- Causal Contributions of the Domain-General (Multiple Demand) and the Language-Selective Brain Networks to Perceptual and Semantic Challenges in Speech Comprehension.Journal: Neurobiology of language (Cambridge, Mass.)In common: psych, lmerTest, lme4, 4 other tools, 2 references
- [4] 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: lmerTest, lme4, tidyverse, fMRI, 5 references
- [5] doi:10.1002/hbm.70559 [code]
- Replicability of Functional Brain Networks: A Study Through the Lens of Seven Resting-State Networks.Journal: Human brain mappingIn common: lmerTest, lme4, reshape2, 3 other tools, fMRI, 3 references
- [6] doi:10.1073/pnas.2516929123 [code]
- Task-evoked functional connectivity exhibits novel and strengthened relationships with executive function relative to the resting state.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: psych, lmerTest, lme4, 3 other tools, 2 references
- [7] 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 communicationsIn common: lmerTest, lme4, ggpubr, 2 other tools, fMRI, 2 references
- [8] doi:10.3389/fnint.2024.1437585 [code]
- Association of chronotype with language and episodic memory processing in children: implications for brain structure.Journal: Frontiers in integrative neuroscienceIn common: psych, lmerTest, ggpubr, 2 other tools, 2 references
- [9] doi:10.1162/imag_a_00437 [code]
- Evidence for a compensatory relationship between left- and right-lateralized brain networks.Journal: Imaging neuroscience (Cambridge, Mass.)In common: psych, reshape2, ggpubr, 1 other tool, fMRI, 2 references
- [10] doi:10.1038/s41598-024-66364-8 [code]
- Motor inhibition errors and interference suppression errors differ systematically on neural and behavioural features of response monitoring.Journal: Scientific reportsIn common: car, lmerTest, lme4, 2 other tools, 1 reference
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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 6 scripts, and 0 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:41b60bb574a22b0f…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1162/netn.a.536)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1162/netn.a.536.svg
:target: https://openscicode.org/badge/doi/10.1162/netn.a.536
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1162/netn.a.536"><img src="https://openscicode.org/badge/doi/10.1162/netn.a.536.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge 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: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
