Lower resting-state functional connectivity between frontoparietal and sensory networks is associated with recent pain intensity in a community sample of youth.
5 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 6 matches
- [1] § Methods › Resting-state fMRI ↔ ABCD_Pain_RSfMRI_Analysis/abcd_pain_rs_tables_figures_new.Rmd, lines 208 to 236 · score 0.88 · retrosplenial temporal, dorsal attention, ventral attention, cingulo opercular, salience, mouth · block
oscr:b:J6DYK4B150024-M· Report a mismatch - [2] § Methods › Other analytic covariates ↔ ABCD_Pain_RSfMRI_Analysis/abcd_pain_rs_tables_figures_new.Rmd, lines 53 to 103 · score 0.62 · household income, sex assigned, birth, Answer, visit, Age · block
oscr:b:CD8NNFN3CATM5-8· Report a mismatch - [3] § Methods › Statistical analysis ↔ ABCD_Pain_RSfMRI_Analysis/abcd_pain_rs_run_models_new.Rmd, lines 117 to 227 · score 0.60 · lme4, intercepts, mixed, family, regression, models · block
oscr:b:VQ8QM2APGVKBE-Y· Report a mismatch - [4] § Results › Pain intensity ↔ ABCD_Pain_RSfMRI_Analysis/abcd_pain_rs_tables_figures_new.Rmd, lines 208 to 236 · score 0.58 · cingulo opercular, sensorimotor mouth, sensorimotor hand, auditory, pain · block
oscr:b:J6DYK4B150024-M· Report a mismatch - [5] § Methods › Self-reported pain characteristics ↔ ABCD_Pain_RSfMRI_Analysis/abcd_pain_rs_tables_figures_new.Rmd, lines 349 to 378 · score 0.55 · pairwise complete, Spearman, daily, duration, body, correlation · block
oscr:b:J5WMNBW819C45-I· Report a mismatch - [6] § Methods › Final sample selection ↔ ABCD_Pain_RSfMRI_Analysis/1_abcd_pain_sample_setup_new.Rmd, lines 192 to 205 · score 0.51 · Y2 pain questionnaire, body map, reported pain, incomplete, discrepant, ABCD · block
oscr:b:Y7VVZ4XXNNTZY-Y· Report a mismatch
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 Markdown · 607 lines · 24 KB · no license · 4 matches
- ---
- title: "ABCD Pain RS Tables & Figures"
- description: |
- author:
- - name: 'Sara Shao & Scott A. Jones'
- affiliation: Oregon Health & Science University
- date: "`r Sys.Date()`"
- #output:
- format:
- html:
- embed-resources: true
- page-layout: full
- ---
- ```{r setup, echo = FALSE, messsage = FALSE, warning = FALSE}
- # behind the scenes stuff for making a publishable markdown file
- knitr::opts_chunk$set(echo = FALSE, message = FALSE, warning = FALSE)
- # define packages to install
- packages_to_install <- c('tidyverse')
- # install all packages that are not already installed
- install.packages(setdiff(packages_to_install, rownames(installed.packages())),
- repos = "http://cran.us.r-project.org")
- ```
- # Setup
- ```{r load_packages}
- library(tidyverse)
- library(psych)
- library(ggcorrplot)
- library(patchwork)
- library(kableExtra)
- library(openxlsx)
- library(effects)
- library(lme4)
- library(conflicted)
- library(here)
- conflict_prefer("select", "dplyr")
- conflict_prefer("filter", "dplyr")
- conflict_prefer("count", "dplyr")
- ```
- # Data
- ```{r read_data}
- # this is the output of abcd_pain_rs_data_prep.Rmd
- load(here("data/abcd_pain_rs_cleaned_data.RData"))
- ```
- # Table 1 (Demographics)
- ```{r calculate-demographics}
- demographics_by_pain_status <- final_df %>%
- group_by(ph_y_pq_001) %>% # pain last month
- summarize(
- # Sample sizes
- total = n(),
- # Age statistics (mean ± SD)
- age = mean(ab_g_dyn__visit_age, na.rm = TRUE),
- age_sd = sd(ab_g_dyn__visit_age, na.rm = TRUE),
- # Sex assigned at birth (female = 2)
- sex = sum(ab_g_stc__cohort_sex == 2, na.rm=TRUE),
- sex_perc = sum(ab_g_stc__cohort_sex == 2, na.rm=TRUE)*100 / n(),
- # Race/Ethnicity categories
- white = sum(ab_g_stc__cohort_ethnrace__leg == 2, na.rm=TRUE),
- white_perc = sum(ab_g_stc__cohort_ethnrace__leg == 2, na.rm=TRUE)*100/n(),
- black = sum(ab_g_stc__cohort_ethnrace__leg == 3, na.rm=TRUE),
- black_perc = sum(ab_g_stc__cohort_ethnrace__leg == 3, na.rm=TRUE)*100/n(),
- asian = sum(ab_g_stc__cohort_ethnrace__leg == 4, na.rm=TRUE),
- asian_perc = sum(ab_g_stc__cohort_ethnrace__leg == 4, na.rm=TRUE)*100/n(),
- nat = sum(ab_g_stc__cohort_ethnrace__leg == 5, na.rm=TRUE),
- nat_perc = sum(ab_g_stc__cohort_ethnrace__leg == 5, na.rm=TRUE)*100/n(),
- pac = sum(ab_g_stc__cohort_ethnrace__leg == 6, na.rm=TRUE),
- pac_perc = sum(ab_g_stc__cohort_ethnrace__leg == 6, na.rm=TRUE)*100/n(),
- multi = sum(ab_g_stc__cohort_ethnrace__leg == 8, na.rm=TRUE),
- multi_perc = sum(ab_g_stc__cohort_ethnrace__leg == 8, na.rm=TRUE)*100/n(),
- other = sum(ab_g_stc__cohort_ethnrace__leg == 13, na.rm=TRUE),
- other_perc = sum(ab_g_stc__cohort_ethnrace__leg == 13, na.rm=TRUE)*100/n(),
- # Ethnicity
- hisp = sum(ab_g_stc__cohort_ethn == 1, na.rm=TRUE),
- hisp_perc = sum(ab_g_stc__cohort_ethn == 1, na.rm=TRUE)*100/n(),
- hisp = sum(ab_g_stc__cohort_ethnrace__leg == 1, na.rm=TRUE),
- hisp_perc = sum(ab_g_stc__cohort_ethnrace__leg == 1, na.rm=TRUE)*100/n(),
- # Household income (3-level categorization)
- less_inc = sum(income == "[<50K]", na.rm=TRUE),
- less_inc_perc = sum(income == "[<50K]", na.rm=TRUE)*100/n(),
- med_inc = sum(income == "[>=50K & <100K]", na.rm=TRUE),
- med_inc_perc = sum(income == "[>=50K & <100K]", na.rm=TRUE)*100/n(),
- more_inc = sum(income == "[>=100K]", na.rm=TRUE),
- more_inc_perc = sum(income == "[>=100K]", na.rm=TRUE)*100/n(),
- na_inc = sum(income == "DonotKnow/RefusetoAnswer", na.rm=TRUE),
- na_inc_perc = sum(income == "DonotKnow/RefusetoAnswer", na.rm=TRUE)*100/n()
- ) %>%
- ungroup()
- ```
- ```{r format-demo-table}
- demographics_table <- demographics_by_pain_status %>%
- mutate(ph_y_pq_001 = if_else(ph_y_pq_001 == 0, "No Pain", "Pain"),
- total = as.character(total),
- age = paste0(round(age,2), " (", round(age_sd, 2), ")"),
- sex = paste0(round(sex,2), " (", round(sex_perc, 1), ")"),
- white = paste0(white, " (", round(white_perc, 2), ")"),
- black = paste0(black, " (", round(black_perc, 2), ")"),
- asian = paste0(asian, " (", round(asian_perc, 2), ")"),
- nat = paste0(nat, " (", round(nat_perc, 2), ")"),
- pac = paste0(pac, " (", round(pac_perc, 2), ")"),
- multi = paste0(multi, " (", round(multi_perc, 2), ")"),
- other = paste0(other, " (", round(other_perc, 2), ")"),
- hisp = paste0(hisp, " (", round(hisp_perc, 2), ")"),
- less_inc = paste0(less_inc, " (", round(less_inc_perc, 2), ")"),
- med_inc = paste0(med_inc, " (", round(med_inc_perc, 2), ")"),
- more_inc = paste0(more_inc, " (", round(more_inc_perc, 2), ")"),
- na_inc = paste0(na_inc, " (", round(na_inc_perc, 2), ")"),
- race = " ", ethn = " ", inc = " ") %>%
- select(ph_y_pq_001, total, age, sex, race, white, black, hisp, asian, other,
- inc, less_inc, med_inc, more_inc, na_inc) %>%
- pivot_longer(cols = -ph_y_pq_001, names_to = "Characteristic", values_to = "Value") %>%
- pivot_wider(names_from = ph_y_pq_001, values_from = Value) %>%
- mutate(Characteristic = case_match(Characteristic,
- "total" ~ "Total participants",
- "age" ~ "Age",
- "sex" ~ "Sex assigned at birth = female (%)",
- "race" ~ "Race / Ethnicity (%)",
- "white" ~ "White",
- "black" ~ "Black (African American)",
- "asian" ~ "Asian",
- "nat" ~ "American Indian/Alaska Native",
- "pac" ~ "Native Hawaiian or Other Pacific Islander",
- "multi" ~ "More than One Race",
- "other" ~ "Other",
- "ethn" ~ "Ethnicity (%)",
- "hisp" ~ "Hispanic",
- "par_ed" ~ "Parental Education (%)",
- "less" ~ 'Less than high school diploma',
- "hs" ~ 'High school diploma or GED',
- "college" ~ 'Some college',
- "bach" ~ "Bachelor's degree",
- "post" ~ "Post-graduate degree",
- "inc" ~ "Household income (%)",
- "less_inc" ~ "Less than $50,000",
- "med_inc" ~ "$50,000 to $100,000",
- "more_inc" ~ "Greater than $100,000",
- "na_inc" ~ "Don't know or decline to answer",
- .default = Characteristic))
- ```
- ```{r}
- demographics_table %>%
- knitr::kable(format = "html", booktabs = TRUE, linesep = "") %>%
- row_spec(c(4,10), bold=TRUE) %>%
- add_indent(setdiff(1:nrow(demographics_table), c(1:4,10)))
- ```
- ```{r, eval=FALSE}
- # Save to Excel file
- # Create workbook and sheet
- wb <- createWorkbook()
- addWorksheet(wb, "Demographics")
- # Write data to sheet
- writeData(wb, "Demographics", demographics_table)
- # Create a bold style
- bold_style <- createStyle(textDecoration = "bold")
- # Bold specific rows
- bold_rows <- c(1, 5, 11)
- for (row in bold_rows) {
- addStyle(wb, sheet = "Demographics", style = bold_style,
- rows = row, cols = 1:ncol(demographics_table), gridExpand = TRUE)
- }
- # Save the file
- saveWorkbook(wb, file = "clean_tables_figures/Table1_demographics.xlsx", overwrite = TRUE)
- ```
- # Table S1-S6 (Model Results)
- ```{r}
- pain_last_month <- read_csv("output/last_month.csv")
- painscale <- read_csv("output/average_pain.csv")
- pain_scale_worst <- read_csv("output/worst_pain.csv")
- pain_limit <- read_csv("output/limitations.csv")
- pain_how_long <- read_csv("output/how_long.csv")
- bm_count <- read_csv("output/bm_count.csv")
- datadict <- read_csv("/home/exacloud/gscratch/NagelLab/abcd/abcd-data-dictionary-6.0.csv")
- ```
- ```{r}
- # Get matching table for full ROI names from ABCD data dictionary
- roi_dict <- datadict %>%
- filter(name %in% paste0('mr_y_rsfmri__corr__gpnet__', pain_last_month$Region, '_mean')) %>%
- select(name, label) %>%
- mutate(label = str_remove(label, 'Average correlation between Gordon networks: '),
- name = str_remove_all(name, 'mr_y_rsfmri__corr__gpnet__|_mean'))
- ```
- ```{r}
- # Define the order that the ROIs are to be listed in
- priority <- c(
- "sensorimotor hand", "sensorimotor mouth", "auditory", "visual",
- "fronto-parietal", "cingulo-opercular", "cingulo-parietal", "default",
- "dorsal attention", "retrosplenial temporal", "salience", "ventral attention"
- )
- # Helper function to reorder words based on priority
- reorder_words <- function(string, priority) {
- string <- str_trim(string)
- words <- str_split(string, " & ")[[1]] # Split into individual words
- sorted_words <- words[order(match(words, priority))] # Sort by priority
- paste(sorted_words, collapse = " & ") # Rejoin into a single string
- }
- # Function to rename ROIs and re-sort them based on priority
- clean_rois <- function(table, priority) {
- clean_table <- roi_dict %>%
- left_join(table, c('name' = 'Region')) %>%
- select(-name) %>%
- mutate(label = sapply(label, reorder_words, priority = priority)) %>%
- separate(label, into = c('roi1', 'roi2'), sep = ' & ') %>%
- mutate(order1 = match(roi1, priority), order2 = match(roi2, priority)) %>%
- arrange(order1, order2) %>%
- select(-order1, -order2)
- return(clean_table)
- }
- ```
- ```{r}
- # clean all tables except pain_how_long
- pain_last_month_clean <- clean_rois(pain_last_month, priority = priority)
- painscale_clean <- clean_rois(painscale, priority = priority)
- pain_scale_worst_clean <- clean_rois(pain_scale_worst, priority = priority)
- pain_limit_clean <- clean_rois(pain_limit, priority = priority)
- bm_count_clean <- clean_rois(bm_count, priority = priority)
- new_names <- c('Network 1', 'Network 2', 'Beta estimate', 'Standard error', 'T-statistic', 'P-value', 'Adj. p-value', 'Site variance', 'Family variance', 'Residual variance')
- colnames(pain_last_month_clean) <- new_names
- colnames(painscale_clean) <- new_names
- colnames(pain_scale_worst_clean) <- new_names
- colnames(pain_limit_clean) <- new_names
- colnames(bm_count_clean) <- new_names
- ```
- ```{r}
- # clean pain_how_long
- pain_how_long_clean <- clean_rois(pain_how_long, priority = priority)
- colnames(pain_how_long_clean) <- c('Network 1', 'Network 2', 'Term', 'F-statistic', 'P-value', 'Adj. p-value', 'Beta estimate', 'Standard error', 'T-statistic', 'T-test p-value', 'Site variance', 'Family variance', 'Residual variance')
- pain_how_long_clean <- pain_how_long_clean %>%
- # clean level names
- mutate(Term = case_when(Term == 'ph_y_pq_001__042' ~ 'few hours',
- Term == 'ph_y_pq_001__043' ~ 'half day',
- Term == 'ph_y_pq_001__044' ~ 'all day')) %>%
- # pivot wider
- pivot_wider(names_from = Term,
- values_from = c(`Beta estimate`, `Standard error`, `T-statistic`, `T-test p-value`),
- names_sep = ": ", names_vary = "slowest")
- ```
- ```{r, eval = FALSE}
- pain_last_month_clean
- painscale_clean
- pain_scale_worst_clean
- pain_limit_clean
- pain_how_long_clean
- bm_count_clean
- ```
- ```{r}
- write_csv(pain_last_month_clean, "clean_tables_figures/TableS1_pain_last_month.csv")
- write_csv(painscale_clean, "clean_tables_figures/TableS2_painscale.csv")
- write_csv(pain_scale_worst_clean, "clean_tables_figures/TableS3_pain_scale_worst.csv")
- write_csv(pain_limit_clean, "clean_tables_figures/TableS4_pain_limit.csv")
- write_csv(pain_how_long_clean, "clean_tables_figures/TableS5_pain_how_long.csv")
- write_csv(bm_count_clean, "clean_tables_figures/TableS6_bm_count.csv")
- ```
- # Table S7-S12 (Sex Interaction Model Results)
- ```{r}
- pain_last_month_sx <- read_csv("output/last_month_sx.csv")
- painscale_sx <- read_csv("output/average_pain_sx.csv")
- pain_scale_worst_sx <- read_csv("output/worst_pain_sx.csv")
- pain_limit_sx <- read_csv("output/limitations_sx.csv")
- pain_how_long_sx <- read_csv("output/how_long_sx.csv")
- bm_count_sx <- read_csv("output/bm_count_sx.csv")
- ```
- ```{r}
- # clean all tables except pain_how_long
- pain_last_month_sx_clean <- clean_rois(pain_last_month_sx, priority = priority)
- painscale_sx_clean <- clean_rois(painscale_sx, priority = priority)
- pain_scale_worst_sx_clean <- clean_rois(pain_scale_worst_sx, priority = priority)
- pain_limit_sx_clean <- clean_rois(pain_limit_sx, priority = priority)
- bm_count_sx_clean <- clean_rois(bm_count_sx, priority = priority)
- new_names <- c('Network 1', 'Network 2', 'Beta estimate', 'Standard error', 'T-statistic', 'P-value', 'Adj. p-value', 'Site variance', 'Family variance', 'Residual variance')
- colnames(pain_last_month_sx_clean) <- new_names
- colnames(painscale_sx_clean) <- new_names
- colnames(pain_scale_worst_sx_clean) <- new_names
- colnames(pain_limit_sx_clean) <- new_names
- colnames(bm_count_sx_clean) <- new_names
- ```
- ```{r}
- # clean pain_how_long
- pain_how_long_sx_clean <- clean_rois(pain_how_long_sx, priority = priority)
- colnames(pain_how_long_sx_clean) <- c('Network 1', 'Network 2', 'Term', 'F-statistic', 'P-value', 'Adj. p-value', 'Beta estimate', 'Standard error', 'T-statistic', 'T-test p-value', 'Site variance', 'Family variance', 'Residual variance')
- pain_how_long_sx_clean <- pain_how_long_sx_clean %>%
- # clean level names
- mutate(Term = case_when(grepl('ph_y_pq_001__042', Term) ~ 'few hours',
- grepl('ph_y_pq_001__043', Term) ~ 'half day',
- grepl('ph_y_pq_001__044', Term) ~ 'all day')) %>%
- # pivot wider
- pivot_wider(names_from = Term,
- values_from = c(`Beta estimate`, `Standard error`, `T-statistic`, `T-test p-value`),
- names_sep = ": ", names_vary = "slowest")
- ```
- ```{r, eval = FALSE}
- pain_last_month_sx_clean
- painscale_sx_clean
- pain_scale_worst_sx_clean
- pain_limit_sx_clean
- pain_how_long_sx_clean
- bm_count_sx_clean
- ```
- ```{r}
- write_csv(pain_last_month_sx_clean, "clean_tables_figures/TableS7_pain_last_month_sx.csv")
- write_csv(painscale_sx_clean, "clean_tables_figures/TableS8_painscale_sx.csv")
- write_csv(pain_scale_worst_sx_clean, "clean_tables_figures/TableS9_pain_scale_worst_sx.csv")
- write_csv(pain_limit_sx_clean, "clean_tables_figures/TableS10_pain_limit_sx.csv")
- write_csv(pain_how_long_sx_clean, "clean_tables_figures/TableS11_pain_how_long_sx.csv")
- write_csv(bm_count_sx_clean, "clean_tables_figures/TableS12_bm_count_sx.csv")
- ```
- # Figure S13 (Pain Correlation Plot)
- ```{r}
- library(dplyr)
- library(corrplot)
- vars_of_interest <- final_df %>%
- select(
- `Average pain intensity` = ph_y_pq_001__02,
- `Worst pain intensity` = ph_y_pq_001__03,
- `Pain Limitations` = ph_y_pq_001__05,
- `Number of body sites` = bm_count,
- `Daily pain duration` = ph_y_pq_001__04
- )
- cor_matrix <- cor(vars_of_interest,
- use = "pairwise.complete.obs",
- method = "spearman")
- # Save plot
- pdf("clean_tables_figures/FigureS13_correlation_plot.pdf", width = 7, height = 10)
- corrplot(cor_matrix,
- method = "circle",
- type = "upper",
- tl.col = "black",
- addCoef.col = "black",
- col = colorRampPalette(c("blue", "white", "red"))(200))
- dev.off()
- ```
- # Figure 1 (Sig. Connectivity Matrices)
- ```{r}
- # note: orientation (TL or BL) indicates how it will look in the plot, not in the table
- # `pmat = TRUE` will turn values into indicators of significance (default alpha = 0.05)
- results_mat <- function(table, column, pmat = FALSE, pthresh = 0.05, orientation = 'TL') {
- mat <- table %>%
- select(all_of(c('Network 1', 'Network 2')), !!sym(column)) %>%
- pivot_wider(names_from = 'Network 2', values_from = column) %>%
- column_to_rownames('Network 1')
- if (orientation == 'BL') { # if bottom-left
- mat <- mat %>%
- select(all_of(rev(names(.))))
- }
- if (pmat == TRUE) {
- mat <- mat %>%
- mutate(across(everything(), ~if_else(. < pthresh, 1, 0)))
- }
- return(mat)
- }
- ```
- ### Average Pain
- ```{r, warning=FALSE}
- beta_mat <- results_mat(painscale_clean, 'Beta estimate', orientation = 'BL')
- sig_mat <- results_mat(painscale_clean, 'Adj. p-value', pmat = TRUE, orientation = 'BL', pthresh = 0.01)
- ```
- ```{r}
- avg_pain_plot <- ggcorrplot(beta_mat,
- p.mat = as.matrix(sig_mat),
- ggtheme = theme_classic,
- #title = "",
- outline.color = 'black', # box outline
- pch = "*", # symbol for significance
- pch.cex = 5,
- tl.cex = 10, # size of axis labels
- digits = 5) +
- theme(
- #plot.title = element_text(size = 14, hjust = 0.5),
- #legend.title = element_text(size = 12)
- ) +
- scale_fill_gradient2(lim = c(-0.1,0.1), low = '#2f4c9e', mid = '#e2e2e2', high = '#bb1b2c') +
- labs(title = "Average Pain Intensity", fill = expression(beta))
- ```
- ### Worst Pain
- ```{r, warning=FALSE}
- beta_mat <- results_mat(pain_scale_worst_clean, 'Beta estimate', orientation = 'BL')
- sig_mat <- results_mat(pain_scale_worst_clean, 'Adj. p-value', pmat = TRUE, orientation = 'BL', pthresh = 0.01)
- ```
- ```{r}
- worst_pain_plot <- ggcorrplot(beta_mat,
- p.mat = as.matrix(sig_mat),
- ggtheme = theme_classic,
- #title = "",
- outline.color = 'black', # box outline
- pch = "*", # symbol for significance
- pch.cex = 5,
- tl.cex = 10, # size of axis labels
- digits = 5) +
- theme(
- #plot.title = element_text(size = 14, hjust = 0.5),
- #legend.title = element_text(size = 12)
- ) +
- scale_fill_gradient2(lim = c(-0.1,0.1), low = '#2f4c9e', mid = '#e2e2e2', high = '#bb1b2c') +
- labs(title = "Worst Pain Intensity", fill = expression(beta))
- ```
- ### Combine Plots
- ```{r, fig.width = 9, fig.height = 4}
- avg_pain_plot + worst_pain_plot +
- plot_annotation(tag_levels = "A", tag_suffix = ")")
- ```
- ```{r}
- ggsave("clean_tables_figures/Figure1.png", width = 14, height = 4, units = "in", dpi = 350)
- ```
- # Regression Figures
- ```{r}
- painscale %>%
- filter(`Corrected p-value` < 0.01)
- pain_scale_worst %>%
- filter(`Corrected p-value` < 0.01)
- ```
- ### Average Pain
- ```{r}
- # aud__frp
- mod1 <- lmer(mr_y_rsfmri__corr__gpnet__aud__frp_mean ~ ab_g_dyn__visit_age + ab_g_stc__cohort_sex + mr_y_qc__mot__rsfmri__mot_mean + income + ph_y_pq_001__02 + (1 | ab_g_dyn__design_site) + (1|ab_g_stc__design_id__fam), data = final_df)
- effects <- effect(term = "ph_y_pq_001__02", mod = mod1)
- effects_df <- as.data.frame(effects)
- p1 <- ggplot(data = effects_df, mapping = aes(x = ph_y_pq_001__02, y = fit)) +
- geom_point(data = final_df, mapping = aes(x = ph_y_pq_001__02, y = mr_y_rsfmri__corr__gpnet__aud__frp_mean),
- alpha = 0.3, color = 'darkgrey', size = 0.8) +
- geom_line(color = 'blue', size = 1.1) +
- geom_ribbon(aes(ymin = lower, ymax = upper), data = effects_df, alpha = 0.3, fill = 'blue') +
- theme_classic() +
- labs(x = "Average pain intensity", y = "Auditory to fronto-parietal")
- p1
- ```
- ```{r}
- # aud__vis
- mod2 <- lmer(mr_y_rsfmri__corr__gpnet__aud__vis_mean ~ ab_g_dyn__visit_age + ab_g_stc__cohort_sex + mr_y_qc__mot__rsfmri__mot_mean + income + ph_y_pq_001__02 + (1 | ab_g_dyn__design_site) + (1|ab_g_stc__design_id__fam), data = final_df)
- effects <- effect(term = "ph_y_pq_001__02", mod = mod2)
- effects_df <- as.data.frame(effects)
- p2 <- ggplot(data = effects_df, mapping = aes(x = ph_y_pq_001__02, y = fit)) +
- geom_point(data = final_df, mapping = aes(x = ph_y_pq_001__02, y = mr_y_rsfmri__corr__gpnet__aud__vis_mean),
- alpha = 0.3, color = 'darkgrey', size = 0.8) +
- geom_line(color = 'blue', size = 1.1) +
- geom_ribbon(aes(ymin = lower, ymax = upper), data = effects_df, alpha = 0.3, fill = 'blue') +
- theme_classic() +
- labs(x = "Average pain intensity", y = "Auditory to visual")
- p2
- ```
- ```{r}
- # cip__frp
- mod3 <- lmer(mr_y_rsfmri__corr__gpnet__cip__frp_mean ~ ab_g_dyn__visit_age + ab_g_stc__cohort_sex + mr_y_qc__mot__rsfmri__mot_mean + income + ph_y_pq_001__02 + (1 | ab_g_dyn__design_site) + (1|ab_g_stc__design_id__fam), data = final_df)
- effects <- effect(term = "ph_y_pq_001__02", mod = mod3)
- effects_df <- as.data.frame(effects)
- p3 <- ggplot(data = effects_df, mapping = aes(x = ph_y_pq_001__02, y = fit)) +
- geom_point(data = final_df, mapping = aes(x = ph_y_pq_001__02, y = mr_y_rsfmri__corr__gpnet__cip__frp_mean),
- alpha = 0.3, color = 'darkgrey', size = 0.8) +
- geom_line(color = 'blue', size = 1.1) +
- geom_ribbon(aes(ymin = lower, ymax = upper), data = effects_df, alpha = 0.3, fill = 'blue') +
- theme_classic() +
- labs(x = "Average pain intensity", y = "Fronto-parietal to cingulo-parietal")
- p3
- ```
- ```{r}
- # frp__smh
- mod4 <- lmer(mr_y_rsfmri__corr__gpnet__frp__smh_mean ~ ab_g_dyn__visit_age + ab_g_stc__cohort_sex + mr_y_qc__mot__rsfmri__mot_mean + income + ph_y_pq_001__02 + (1 | ab_g_dyn__design_site) + (1|ab_g_stc__design_id__fam), data = final_df)
- effects <- effect(term = "ph_y_pq_001__02", mod = mod4)
- effects_df <- as.data.frame(effects)
- p4 <- ggplot(data = effects_df, mapping = aes(x = ph_y_pq_001__02, y = fit)) +
- geom_point(data = final_df, mapping = aes(x = ph_y_pq_001__02, y = mr_y_rsfmri__corr__gpnet__frp__smh_mean),
- alpha = 0.3, color = 'darkgrey', size = 0.8) +
- geom_line(color = 'blue', size = 1.1) +
- geom_ribbon(aes(ymin = lower, ymax = upper), data = effects_df, alpha = 0.3, fill = 'blue') +
- theme_classic() +
- labs(x = "Average pain intensity", y = "Sensorimotor hand to fronto-parietal")
- p4
- ```
- ```{r}
- # frp__smm
- mod5 <- lmer(mr_y_rsfmri__corr__gpnet__frp__smm_mean ~ ab_g_dyn__visit_age + ab_g_stc__cohort_sex + mr_y_qc__mot__rsfmri__mot_mean + income + ph_y_pq_001__02 + (1 | ab_g_dyn__design_site) + (1|ab_g_stc__design_id__fam), data = final_df)
- effects <- effect(term = "ph_y_pq_001__02", mod = mod5)
- effects_df <- as.data.frame(effects)
- p5 <- ggplot(data = effects_df, mapping = aes(x = ph_y_pq_001__02, y = fit)) +
- geom_point(data = final_df, mapping = aes(x = ph_y_pq_001__02, y = mr_y_rsfmri__corr__gpnet__frp__smm_mean),
- alpha = 0.3, color = 'darkgrey', size = 0.8) +
- geom_line(color = 'blue', size = 1.1) +
- geom_ribbon(aes(ymin = lower, ymax = upper), data = effects_df, alpha = 0.3, fill = 'blue') +
- theme_classic() +
- labs(x = "Average pain intensity", y = "Sensorimotor mouth to fronto-parietal")
- p5
- ```
- ### Worst Pain
- ```{r}
- # aud__frp
- mod6 <- lmer(mr_y_rsfmri__corr__gpnet__aud__frp_mean ~ ab_g_dyn__visit_age + ab_g_stc__cohort_sex + mr_y_qc__mot__rsfmri__mot_mean + income + ph_y_pq_001__03 + (1 | ab_g_dyn__design_site) + (1|ab_g_stc__design_id__fam), data = final_df)
- effects <- effect(term = "ph_y_pq_001__03", mod = mod6)
- effects_df <- as.data.frame(effects)
- p6 <- ggplot(data = effects_df, mapping = aes(x = ph_y_pq_001__03, y = fit)) +
- geom_point(data = final_df, mapping = aes(x = ph_y_pq_001__03, y = mr_y_rsfmri__corr__gpnet__aud__frp_mean),
- alpha = 0.3, color = 'darkgrey', size = 0.8) +
- geom_line(color = 'blue', size = 1.1) +
- geom_ribbon(aes(ymin = lower, ymax = upper), data = effects_df, alpha = 0.3, fill = 'blue') +
- theme_classic() +
- labs(x = "Worst pain intensity", y = "Auditory to fronto-parietal")
- p6
- ```
- ```{r}
- # aud__vis
- mod7 <- lmer(mr_y_rsfmri__corr__gpnet__aud__vis_mean ~ ab_g_dyn__visit_age + ab_g_stc__cohort_sex + mr_y_qc__mot__rsfmri__mot_mean + income + ph_y_pq_001__03 + (1 | ab_g_dyn__design_site) + (1|ab_g_stc__design_id__fam), data = final_df)
- effects <- effect(term = "ph_y_pq_001__03", mod = mod7)
- effects_df <- as.data.frame(effects)
- p7 <- ggplot(data = effects_df, mapping = aes(x = ph_y_pq_001__03, y = fit)) +
- geom_point(data = final_df, mapping = aes(x = ph_y_pq_001__03, y = mr_y_rsfmri__corr__gpnet__aud__vis_mean),
- alpha = 0.3, color = 'darkgrey', size = 0.8) +
- geom_line(color = 'blue', size = 1.1) +
- geom_ribbon(aes(ymin = lower, ymax = upper), data = effects_df, alpha = 0.3, fill = 'blue') +
- theme_classic() +
- labs(x = "Worst pain intensity", y = "Auditory to visual")
- p7
- ```
- ### Combine Plots
- ```{r, fig.height = 10, fig.width = 7}
- (p1 + p2) / (p3 + p4) / (p5 + p6) / (p7 + plot_spacer()) +
- plot_annotation(tag_levels = "A", tag_suffix = ")")
- ```
- ```{r, eval=FALSE}
- ggsave("clean_tables_figures/Figure2_reg_plots.png", width = 7, height = 10, dpi = 350)
- ```
abcd_pain_rs_tables_figures_new.Rmd, no license · at the source
Overview
- Department of Psychiatry, Oregon Health & Science University, Portland, OR, USA
- Department of Pediatrics, Institute on Development and Disability, Oregon Health & Science University, Portland, OR, USA
- Steven J. Sharp Center for Mental Health Innovation, Oregon Health & Science University, Portland, OR, USA
- Department of Behavioral Neuroscience, Oregon Health & Science University, Portland, OR, USA
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repository
Its files are read in the Code ↔ Paper reader above, with 6 matches between paragraphs and lines of code.
OSF w482t
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
4 files
- ABCD_Pain_RSfMRI_Analysi
s/ , R, 205 lines, 1 match1_abcd_pain_sample_setup _new.Rmd - ABCD_Pain_RSfMRI_Analysi
s/ , R, 168 linesabcd_pain_rs_data_prep_n ew.Rmd - ABCD_Pain_RSfMRI_Analysi
s/ , R, 320 lines, 1 matchabcd_pain_rs_run_models_ new.Rmd - ABCD_Pain_RSfMRI_Analysi
s/ , R, 607 lines, 4 matchesabcd_pain_rs_tables_figu res_new.Rmd
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;
- 4 scripts, each with its path and the digest of its content;
- 6 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
No dataset and no data link were found in the paper.
Code and data availability statement
The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- no repository, dataset or request procedure was recognized in it
Read it in the paper: doi.org/10.1016/j.ynirp.2026.100366.
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 2, 28 September 2026
- Authors: added Carmen I Bango (0009-0006-8866-0725); Scott A Jones (0000-0003-1051-4200); Sara Shao (0009-0005-4403-6296); Dani Y Del Rubin (0000-0002-6292-7392); Anna C Wilson (0000-0001-8672-068X); removed Carmen I Bango; Scott A Jones; Sara Shao; Dani Y Del Rubin; Anna C Wilson
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 9 authors, 6 keywords, 4 funders, 96 references.
Cite
This paper
Bango, C. I., Jones, S. A., Morales, A. M., Shao, S., Del Rubin, D. Y., Lopez Flores, A., Holley, A. L., Nagel, B. J., & Wilson, A. C. (2026). Lower resting-state functional connectivity between frontoparietal and sensory networks is associated with recent pain intensity in a community sample of youth. Neuroimage. Reports, 6(3), 100366. https://
BibTeX
@article{bango2026lower,
author = {Bango, Carmen I and Jones, Scott A and Morales, Angelica M and Shao, Sara and Del Rubin, Dani Y and Lopez Flores, Arturo and Holley, Amy L and Nagel, Bonnie J and Wilson, Anna C},
title = {{Lower resting-state functional connectivity between frontoparietal and sensory networks is associated with recent pain intensity in a community sample of youth}},
journal = {Neuroimage. Reports},
year = {2026},
month = jun,
volume = {6},
number = {3},
pages = {100366},
publisher = {Elsevier},
issn = {2666-9560},
doi = {10.1016/
url = {https://
pmid = {42327571},
pmcid = {PMC13279023}
}
RIS
TY - JOUR
AU - Bango, Carmen I
AU - Jones, Scott A
AU - Morales, Angelica M
AU - Shao, Sara
AU - Del Rubin, Dani Y
AU - Lopez Flores, Arturo
AU - Holley, Amy L
AU - Nagel, Bonnie J
AU - Wilson, Anna C
TI - Lower resting-state functional connectivity between frontoparietal and sensory networks is associated with recent pain intensity in a community sample of youth
T2 - Neuroimage. Reports
J2 - Neuroimage Rep
PY - 2026
DA - 2026/
VL - 6
IS - 3
SP - 100366
SN - 2666-9560
PB - Elsevier
DO - 10.1016/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1016/
"type": "article-journal",
"title": "Lower resting-state functional connectivity between frontoparietal and sensory networks is associated with recent pain intensity in a community sample of youth",
"container-title": "Neuroimage. Reports",
"author": [
{
"family": "Bango",
"given": "Carmen I"
},
{
"family": "Jones",
"given": "Scott A"
},
{
"family": "Morales",
"given": "Angelica M"
},
{
"family": "Shao",
"given": "Sara"
},
{
"family": "Del Rubin",
"given": "Dani Y"
},
{
"family": "Lopez Flores",
"given": "Arturo"
},
{
"family": "Holley",
"given": "Amy L"
},
{
"family": "Nagel",
"given": "Bonnie J"
},
{
"family": "Wilson",
"given": "Anna C"
}
],
"container-title-short":
"volume": "6",
"issue": "3",
"page": "100366",
"DOI": "10.1016/
"PMID": "42327571",
"PMCID": "PMC13279023",
"ISSN": "2666-9560",
"publisher": "Elsevier",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
12
]
]
}
}
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.1001/jamanetworkopen.2025.5364 [code]
- Sex, Neural Networks, and Behavioral Symptoms Among Adolescents With Multisite Pain.Journal: JAMA network openIn common: pain, 11 references
- [2] doi:10.3389/fnhum.2023.1167786 [code]
- Gray space and default mode network-amygdala connectivity.Journal: Frontiers in human neuroscienceIn common: broom, psych, lmerTest, 2 other tools, fMRI, 7 references
- [3] doi:10.1016/j.envres.2025.123333 [code]
- Longitudinal associations between air pollution and adolescent gray matter development: Insights from the ABCD study.Journal: Environmental researchIn common: lmerTest, lme4, data.table, 1 other tool, 4 references, author Scott A Jones
- [4] doi:10.1002/jcv2.70135 [code]
- Alterations in resting-state functional connectivity relate to psychopathology trajectories during emerging adolescence.Journal: JCPP advancesIn common: broom, psych, lmerTest, 3 other tools, fMRI, 5 references
- [5] doi:10.1016/j.dcn.2022.101172 [code]
- Reward sensitivity and internalizing symptoms during the transition to puberty: An examination of 9-and 10-year-olds in the ABCD Study.Journal: Developmental cognitive neuroscienceIn common: psych, lmerTest, lme4, 2 other tools, 6 references
- [6] doi:10.1038/s41467-025-56870-2 [code]
- Nature exposure induces analgesic effects by acting on nociception-related neural processing.Journal: Nature communicationsIn common: psych, lmerTest, lme4, 2 other tools, pain, 4 references
- [7] doi:10.3389/fnimg.2023.1138193 [code]
- Recalibrating single-study effect sizes using hierarchical Bayesian models.Journal: Frontiers in neuroimagingIn common: broom, lmerTest, patchwork, 1 other tool, 2 references, author Angelica M Morales
- [8] doi:10.1016/j.dcn.2022.101115 [code]
- A practical guide for researchers and reviewers using the ABCD Study and other large longitudinal datasets.Journal: Developmental cognitive neuroscienceIn common: psych, tidyverse, 8 references
- [9] doi:10.1017/s0033291724002174 [code]
- Associations between polygenic scores for cognitive and non-cognitive factors of educational attainment and measures of behavior, psychopathology, and neuroimaging in the adolescent brain cognitive development study.Journal: Psychological medicineIn common: psych, lmerTest, lme4, 2 other tools, 5 references
- [10] doi:10.1162/imag_a_00037 [code]
- BrainAGE as a measure of maturation during early adolescence.Journal: Imaging neuroscience (Cambridge, Mass.)In common: broom, psych, lme4, 2 other tools, 5 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.
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, 4 scripts, and 6 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:55b1eb12f13ad979…
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.1016/j.ynirp.2026.100366)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1016/j.ynirp.2026.100366.svg
:target: https://openscicode.org/badge/doi/10.1016/j.ynirp.2026.100366
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1016/j.ynirp.2026.100366"><img src="https://openscicode.org/badge/doi/10.1016/j.ynirp.2026.100366.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->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)
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
