Substantial evidence against sex differences in bed nucleus of the stria terminalis volume in the human brain.
The 9 matches · 1 of them tie a paragraph to a whole file without given lines: a weak match, whose lines are not tinted
- [1] § Methods › Bayesian model specification › Prior choice ↔ scripts/02_create_prior_table.R, lines 1 to 30 · score 0.79 · derived Cohen, linear models, covariate adjusted, male female, bootstrap, residual · Report a mismatch
- [2] § Results › Bayesian model results suggest substantial evidence in favour of no sex difference in total BNST volume ↔ scripts/03_fit_bilateral_model.R, lines 166 to 233 · score 0.72 · posterior predictive check, Savage Dickey, BNST volume sex, BF, fitted, residualisation · Report a mismatch
- [3] § Methods › Bayesian model specification › Specifying the model ↔ scripts/05_unilateral_sensitivity_and_descriptives.R, lines 40 to 61 · score 0.69 · MZ twins, twin pairing, MZ pair, genetically, siblings, monozygotic · Report a mismatch
- [4] § Methods › The Young Adults Human Connectome Project ↔ scripts/05_unilateral_sensitivity_and_descriptives.R, lines 40 to 61 · score 0.66 · twin siblings, twin pairs, Demographic, unrelated, genetic, monozygotic · Report a mismatch
- [5] § Methods › Bayesian model specification › Prior choice ↔ scripts/02_create_prior_table.R, lines 245 to 292 · score 0.63 · HCP Young Adult, female participants, split, Guma, sex · Report a mismatch
- [6] § Methods › Size calculations ↔ scripts/00_calculate_tbv_from_fast_pves.R, lines 69 to 81 · score 0.61 · FAST tissue, partial volume, voxels, summing, TBV, mm3 · Report a mismatch
- [7] § Methods › Bayesian model specification › Specifying the model ↔ scripts/_common.R, lines 163 to 246 · score 0.58 · MZ twins, MZ pair, intercepts, monozygotic, family, model · Report a mismatch
- [8] § Methods › Bayesian model specification › Specifying the model ↔ scripts/03_fit_bilateral_model.R, lines 235 to 274 · score 0.56 · Bayes factor, Savage Dickey, density, posterior, model, sex · Report a mismatch
- [9] § Methods › Size calculations ↔ scripts/01_extract_bnst_volumes.R, the whole file · a weak match · score 0.51 · right BNST volumes, hemisphere, mask, voxels, summing, mm3 · 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 · 440 lines · 19 KB · MIT · 2 matches
- # Reconstruct literature effect sizes, pool them, and examine prior sensitivity.
- args <- commandArgs(FALSE)
- file_arg <- args[grepl("^--file=", args)]
- this_file <- if (length(file_arg) > 0) sub("^--file=", "", file_arg[1]) else "scripts/02_create_prior_table.R"
- this_file <- gsub("~+~", " ", this_file, fixed = TRUE)
- source(file.path(dirname(normalizePath(this_file)), "_common.R"))
- root <- find_repo_root(script_dir())
- require_packages(c("dplyr", "metafor"))
- prior_dir <- file.path(root, "data", "prior_sources")
- results_dir <- file.path(root, "results")
- figures_dir <- file.path(root, "figures")
- ensure_dir(results_dir)
- ensure_dir(figures_dir)
- n_boot <- read_integer_arg("n_boot", 5000, minimum = 2)
- guma_participant_file <- read_arg("guma_participant_file")
- guma_adjusted_file <- read_arg("guma_adjusted_effect", file.path(prior_dir, "Guma_2024_adjusted_effect.csv"))
- published_summary_file <- read_arg("published_summary_file", file.path(prior_dir, "published_summary_inputs.csv"))
- set.seed(123)
- # -------------------------------------------------------------------------
- # Helper functions
- # -------------------------------------------------------------------------
- # The prior is built from standardized male-female BNST differences. Where
- # participant-level data are available, we estimate covariate-adjusted effects
- # using a linear model and standardize the adjusted contrast by the model's
- # residual SD. Where only paper summaries are available, we derive Cohen's d
- # from the reported means, SDs/SEMs, and sample sizes.
- # For papers reporting group summaries only, pool within-group SDs before
- # dividing the male-female mean difference by the pooled value.
- calc_smd_from_summary <- function(mean_m, mean_f, sd_m, sd_f, n_m, n_f) {
- sd_pooled <- sqrt(((n_m - 1) * sd_m^2 + (n_f - 1) * sd_f^2) / (n_m + n_f - 2))
- d <- (mean_m - mean_f) / sd_pooled
- se_d <- sqrt((n_m + n_f) / (n_m * n_f) + d^2 / (2 * (n_m + n_f - 2)))
- data.frame(
- n_male = n_m,
- n_female = n_f,
- effect_size = d,
- effect_se = se_d
- )
- }
- # Reconstruct the SD of two combined groups, including the distance between
- # their means as well as variation within each group.
- combine_subgroups <- function(n1, mean1, sd1, n2, mean2, sd2) {
- pooled_mean <- (n1 * mean1 + n2 * mean2) / (n1 + n2)
- pooled_var <- (
- ((n1 - 1) * sd1^2) +
- ((n2 - 1) * sd2^2) +
- n1 * (mean1 - pooled_mean)^2 +
- n2 * (mean2 - pooled_mean)^2
- ) / (n1 + n2 - 1)
- data.frame(n = n1 + n2, mean = pooled_mean, sd = sqrt(pooled_var))
- }
- adjusted_d_from_lm <- function(data, outcome, group, covariates,
- male_level, female_level, seed, study_label) {
- vars <- c(outcome, group, covariates)
- require_columns(data, vars, study_label)
- df <- data[stats::complete.cases(data[, vars]), vars, drop = FALSE]
- if (!all(c(male_level, female_level) %in% df[[group]]) ||
- any(!df[[group]] %in% c(male_level, female_level))) {
- stop(study_label, " must contain both specified sex groups and no other labels.", call. = FALSE)
- }
- for (column in c(outcome, covariates)) {
- df[[column]] <- numeric_values(df[[column]], paste(study_label, column))
- }
- df[[group]] <- stats::relevel(factor(df[[group]]), ref = female_level)
- fmla <- stats::as.formula(paste(outcome, "~", paste(c(group, covariates), collapse = " + ")))
- fit <- stats::lm(fmla, data = df)
- if (fit$rank != length(stats::coef(fit)) || !is.finite(stats::sigma(fit)) || stats::sigma(fit) <= 0) {
- stop(study_label, " does not support an identifiable model with positive residual SD.", call. = FALSE)
- }
- # Predict male and female values at the sample mean of each covariate.
- new_f <- data.frame(row.names = 1)
- new_m <- data.frame(row.names = 1)
- new_f[[group]] <- factor(female_level, levels = levels(df[[group]]))
- new_m[[group]] <- factor(male_level, levels = levels(df[[group]]))
- for (v in covariates) {
- new_f[[v]] <- mean(df[[v]], na.rm = TRUE)
- new_m[[v]] <- mean(df[[v]], na.rm = TRUE)
- }
- adjusted_mean_male <- as.numeric(stats::predict(fit, new_m))
- adjusted_mean_female <- as.numeric(stats::predict(fit, new_f))
- diff_adj <- adjusted_mean_male - adjusted_mean_female
- d_adj <- diff_adj / stats::sigma(fit)
- # Nonparametric bootstrap SE for the adjusted standardized contrast.
- set.seed(seed)
- boot_vals <- rep(NA_real_, n_boot)
- for (b in seq_len(n_boot)) {
- idx <- sample(seq_len(nrow(df)), size = nrow(df), replace = TRUE)
- df_b <- df[idx, , drop = FALSE]
- df_b[[group]] <- factor(df_b[[group]], levels = levels(df[[group]]))
- if (length(unique(df_b[[group]])) < 2) next
- fit_b <- try(stats::lm(fmla, data = df_b), silent = TRUE)
- if (inherits(fit_b, "try-error")) next
- boot_vals[b] <- as.numeric(stats::predict(fit_b, new_m) - stats::predict(fit_b, new_f)) / stats::sigma(fit_b)
- }
- boot_vals <- boot_vals[is.finite(boot_vals)]
- if (length(boot_vals) < 2 || stats::sd(boot_vals) <= 0) {
- stop(study_label, " has insufficient valid bootstrap estimates for an SE.", call. = FALSE)
- }
- data.frame(
- study = study_label,
- n_total = nrow(df),
- n_male = sum(df[[group]] == male_level),
- n_female = sum(df[[group]] == female_level),
- formula = deparse(fmla),
- adjusted_mean_male = adjusted_mean_male,
- adjusted_mean_female = adjusted_mean_female,
- adjusted_difference = diff_adj,
- residual_sd = stats::sigma(fit),
- effect_size = d_adj,
- effect_se = stats::sd(boot_vals),
- n_boot_valid = length(boot_vals),
- ci_lower = stats::quantile(boot_vals, 0.025, na.rm = TRUE),
- ci_upper = stats::quantile(boot_vals, 0.975, na.rm = TRUE),
- stringsAsFactors = FALSE
- )
- }
- add_result <- function(study, source_type, sample_restriction, effect_method,
- covariates, n_male, n_female, effect_size, effect_se, notes) {
- data.frame(
- study = study,
- source_type = source_type,
- sample_restriction = sample_restriction,
- effect_method = effect_method,
- covariates = covariates,
- n_male = n_male,
- n_female = n_female,
- effect_size = effect_size,
- effect_se = effect_se,
- notes = notes,
- stringsAsFactors = FALSE
- )
- }
- require_file <- function(path, description) {
- if (!file.exists(path)) {
- stop(
- "Missing ", description, ": ", path, "\n",
- "See data/prior_sources/README.md for required prior-source inputs.",
- call. = FALSE
- )
- }
- }
- # Keeping transcribed summary values in a separate CSV exposes every number
- # used for the studies without participant-level re-analysis data.
- require_file(published_summary_file, "published summary-statistic inputs")
- published <- read.csv(published_summary_file, stringsAsFactors = FALSE)
- if (!identical(names(published), c("variable", "value")) || anyDuplicated(published$variable)) {
- stop("Published summary inputs must have unique variable,value rows.", call. = FALSE)
- }
- stat <- function(name) {
- value <- published$value[match(name, published$variable)]
- if (length(value) != 1 || !is.finite(suppressWarnings(as.numeric(value)))) {
- stop("Missing or nonnumeric published summary input: ", name, call. = FALSE)
- }
- as.numeric(value)
- }
- # -------------------------------------------------------------------------
- # Participant-level re-analyses
- # -------------------------------------------------------------------------
- allen_path <- file.path(prior_dir, "Allen_Gorski.csv")
- require_file(allen_path, "Allen & Gorski participant-level table")
- allen <- read.csv(allen_path, check.names = TRUE)
- allen <- allen[allen$Age >= 18, , drop = FALSE]
- allen_res <- adjusted_d_from_lm(
- data = allen,
- outcome = "BNST.Volume",
- group = "Sex",
- covariates = c("Brain.Weight", "Age"),
- male_level = "m",
- female_level = "f",
- seed = 101,
- study_label = "Allen & Gorski (1990)"
- )
- chung_path <- file.path(prior_dir, "Chung_etal.csv")
- require_file(chung_path, "Chung participant-level table")
- chung <- read.csv(chung_path, check.names = TRUE)
- chung$Age <- as.numeric(gsub(" years", "", chung$Age))
- chung <- chung[chung$Age >= 18, , drop = FALSE]
- chung_res <- adjusted_d_from_lm(
- data = chung,
- outcome = "BNST.Volume",
- group = "Sex",
- covariates = c("Brain.Weight", "Age"),
- male_level = "m",
- female_level = "f",
- seed = 102,
- study_label = "Chung et al. (2002)"
- )
- # Guma et al. provide df_HCP_volumes_clean.RDS in their human-anatomy inputs:
- # https://github.com/elisaguma/Normative-Sex-Differences/tree/main
- # When the external participant-level file is supplied, recompute the adjusted
- # effect; otherwise use the included study-level aggregate CSV.
- if (!is.null(guma_participant_file) && !file.exists(guma_participant_file)) {
- stop("Guma participant-level input not found: ", guma_participant_file, call. = FALSE)
- }
- if (!is.null(guma_participant_file)) {
- guma <- readRDS(guma_participant_file)
- require_columns(guma, c("euler", "QC_include", "Sex", "L_BNST", "R_BNST",
- "AGE_cent", "BrainSegVolNotVent.y"), "Guma participant-level input")
- guma <- subset(guma, euler > -200 & QC_include == 1)
- guma$Sex <- factor(guma$Sex, levels = c("F", "M"))
- guma$BNST_bilateral <- guma$L_BNST + guma$R_BNST
- guma_res <- adjusted_d_from_lm(
- data = guma,
- outcome = "BNST_bilateral",
- group = "Sex",
- covariates = c("AGE_cent", "BrainSegVolNotVent.y", "euler"),
- male_level = "M",
- female_level = "F",
- seed = 103,
- study_label = "Guma et al. (2024)"
- )
- } else {
- require_file(guma_adjusted_file, "Guma adjusted-effect table")
- guma_res <- read.csv(guma_adjusted_file, check.names = TRUE)
- }
- require_columns(guma_res, c("n_male", "n_female", "effect_size", "effect_se"), "Guma adjusted effect")
- if (nrow(guma_res) != 1L) stop("Guma adjusted-effect input must contain exactly one row.", call. = FALSE)
- for (column in c("n_male", "n_female", "effect_size", "effect_se")) {
- guma_res[[column]] <- numeric_values(guma_res[[column]], paste("Guma", column), positive = column != "effect_size")
- }
- if (guma_res$n_male < 2 || guma_res$n_female < 2 ||
- any(c(guma_res$n_male, guma_res$n_female) %% 1 != 0)) {
- stop("Guma sex counts must be integers of at least two per group.", call. = FALSE)
- }
- # -------------------------------------------------------------------------
- # Published summary-statistic derivations
- # -------------------------------------------------------------------------
- # Zhou et al. report mean +/- SEM. We combine cisgender heterosexual and
- # homosexual male groups, exclude hormone-treated transgender participants, and
- # compare the combined male group with female participants.
- zhou_male <- combine_subgroups(
- n1 = stat("zhou_m1_n"), mean1 = stat("zhou_m1_mean"),
- sd1 = stat("zhou_m1_sem") * sqrt(stat("zhou_m1_n")),
- n2 = stat("zhou_m2_n"), mean2 = stat("zhou_m2_mean"),
- sd2 = stat("zhou_m2_sem") * sqrt(stat("zhou_m2_n"))
- )
- zhou <- calc_smd_from_summary(
- mean_m = zhou_male$mean,
- mean_f = stat("zhou_f_mean"),
- sd_m = zhou_male$sd,
- sd_f = stat("zhou_f_sem") * sqrt(stat("zhou_f_n")),
- n_m = zhou_male$n,
- n_f = stat("zhou_f_n")
- )
- slabe <- calc_smd_from_summary(
- mean_m = stat("slabe_m_mean"),
- mean_f = stat("slabe_f_mean"),
- sd_m = stat("slabe_m_sd"),
- sd_f = stat("slabe_f_sd"),
- n_m = stat("slabe_m_n"),
- n_f = stat("slabe_f_n")
- )
- # Neudorfer et al. did not report sex-specific sample sizes. We estimate the
- # split using the broader HCP Young Adult sex proportions described by Guma
- # et al., then apply those proportions to Neudorfer's reported total N.
- neud_total_n <- stat("neud_total_n")
- neud_n_f <- round(
- (stat("neud_reference_f_n") /
- (stat("neud_reference_f_n") + stat("neud_reference_m_n"))) * neud_total_n
- )
- neud_n_m <- neud_total_n - neud_n_f
- neud <- calc_smd_from_summary(
- mean_m = stat("neud_m_mean"),
- mean_f = stat("neud_f_mean"),
- sd_m = stat("neud_m_sd"),
- sd_f = stat("neud_f_sd"),
- n_m = neud_n_m,
- n_f = neud_n_f
- )
- # -------------------------------------------------------------------------
- # Combine effect-size table and fit the random-effects prior meta-analysis.
- # -------------------------------------------------------------------------
- prior_table <- rbind(
- add_result(
- study = "Allen & Gorski (1990)", source_type = "participant-level re-analysis",
- sample_restriction = "Adults only (>=18 years)",
- effect_method = "Adjusted standardized mean difference from lm",
- covariates = "Brain.Weight, Age", n_male = allen_res$n_male, n_female = allen_res$n_female,
- effect_size = allen_res$effect_size, effect_se = allen_res$effect_se,
- notes = "Effect derived from regression-adjusted male-female contrast divided by residual SD."
- ),
- add_result(
- study = "Chung et al. (2002)", source_type = "participant-level re-analysis",
- sample_restriction = "Adults only (>=18 years)",
- effect_method = "Adjusted standardized mean difference from lm",
- covariates = "Brain.Weight, Age", n_male = chung_res$n_male, n_female = chung_res$n_female,
- effect_size = chung_res$effect_size, effect_se = chung_res$effect_se,
- notes = "Effect derived from regression-adjusted male-female contrast divided by residual SD."
- ),
- add_result(
- study = "Guma et al. (2024)", source_type = "participant-level re-analysis",
- sample_restriction = "Available HCP rows passing euler > -200 and QC_include == 1",
- effect_method = "Adjusted standardized mean difference from lm",
- covariates = "AGE_cent, BrainSegVolNotVent.y, euler",
- n_male = guma_res$n_male[1], n_female = guma_res$n_female[1],
- effect_size = guma_res$effect_size[1], effect_se = guma_res$effect_se[1],
- notes = "Effect derived from regression-adjusted male-female contrast divided by residual SD."
- ),
- add_result(
- study = "Zhou et al. (1995)", source_type = "published summary statistics",
- sample_restriction = "Adult cisgender participants; transgender hormone-treated participants excluded",
- effect_method = "Cohen's d from reported means, SEMs, and reconstructed subgroup SDs",
- covariates = "None available", n_male = zhou$n_male, n_female = zhou$n_female,
- effect_size = zhou$effect_size, effect_se = zhou$effect_se,
- notes = "Male group combines heterosexual and homosexual cisgender men; SEMs converted to SDs before pooling."
- ),
- add_result(
- study = "Slabe et al. (2023)", source_type = "published summary statistics",
- sample_restriction = "As reported in paper",
- effect_method = "Cohen's d from reported means, SDs, and n",
- covariates = "No global size adjustment available",
- n_male = slabe$n_male, n_female = slabe$n_female,
- effect_size = slabe$effect_size, effect_se = slabe$effect_se,
- notes = "No TBV/brain-weight-adjusted effect available."
- ),
- add_result(
- study = "Neudorfer et al. (2020)", source_type = "published TBV-normalised summary statistics",
- sample_restriction = "As reported in paper",
- effect_method = "Cohen's d from TBV-normalised means, SDs, and estimated sex-specific n",
- covariates = "TBV-normalised values reported by paper",
- n_male = neud$n_male, n_female = neud$n_female,
- effect_size = neud$effect_size, effect_se = neud$effect_se,
- notes = "Sex split estimated from Guma et al. HCP sex proportions because Neudorfer did not report sex-specific sample counts."
- )
- )
- write.csv(prior_table, file.path(results_dir, "BNST_prior_effect_sizes_all_studies.csv"), row.names = FALSE)
- write.csv(allen_res, file.path(results_dir, "Allen_Gorski_1990_adjusted_effect.csv"), row.names = FALSE)
- write.csv(chung_res, file.path(results_dir, "Chung_2002_adjusted_effect.csv"), row.names = FALSE)
- write.csv(guma_res, file.path(results_dir, "Guma_2024_adjusted_effect.csv"), row.names = FALSE)
- # Each study contributes one standardized effect and its SE. REML estimates
- # between-study variation rather than assuming all studies share one effect.
- meta_input <- prior_table[, c("study", "effect_size", "effect_se")]
- names(meta_input) <- c("study", "yi", "sei")
- if (any(!is.finite(meta_input$yi)) || any(!is.finite(meta_input$sei)) || any(meta_input$sei <= 0)) {
- stop("Every study must have a finite effect and positive SE; no studies are silently omitted.", call. = FALSE)
- }
- write.csv(meta_input, file.path(results_dir, "BNST_prior_meta_input.csv"), row.names = FALSE)
- primary <- metafor::rma(yi = yi, sei = sei, data = meta_input, method = "REML")
- summary_out <- data.frame(
- analysis = "primary",
- pooled_effect = as.numeric(primary$b),
- pooled_se = primary$se,
- ci_lower = primary$ci.lb,
- ci_upper = primary$ci.ub,
- tau2 = primary$tau2,
- I2 = primary$I2,
- Q = primary$QE,
- Q_p = primary$QEp
- )
- meta_no_neud <- meta_input[!grepl("Neudorfer", meta_input$study, ignore.case = TRUE), ]
- meta_no_zhou <- meta_input[!grepl("Zhou", meta_input$study, ignore.case = TRUE), ]
- meta_adjusted_only <- meta_input[meta_input$study %in% c("Allen & Gorski (1990)", "Chung et al. (2002)", "Guma et al. (2024)"), ]
- sensitivity <- list(
- exclude_neudorfer = metafor::rma(yi = yi, sei = sei, data = meta_no_neud, method = "REML"),
- exclude_zhou = metafor::rma(yi = yi, sei = sei, data = meta_no_zhou, method = "REML"),
- adjusted_only = metafor::rma(yi = yi, sei = sei, data = meta_adjusted_only, method = "REML")
- )
- sensitivity_table <- do.call(rbind, lapply(names(sensitivity), function(label) {
- fit <- sensitivity[[label]]
- data.frame(
- analysis = label,
- pooled_effect = as.numeric(fit$b),
- pooled_se = fit$se,
- ci_lower = fit$ci.lb,
- ci_upper = fit$ci.ub,
- tau2 = fit$tau2,
- I2 = fit$I2,
- Q = fit$QE,
- Q_p = fit$QEp
- )
- }))
- write.csv(rbind(summary_out, sensitivity_table), file.path(results_dir, "BNST_prior_meta_summary.csv"), row.names = FALSE)
- # -------------------------------------------------------------------------
- # Forest plots and influence diagnostics for the primary and sensitivity analyses.
- # -------------------------------------------------------------------------
- grDevices::pdf(file.path(figures_dir, "BNST_meta_analysis_forest_plot.pdf"), width = 6, height = 5)
- metafor::forest(primary, slab = meta_input$study, xlab = "Standardized mean difference", mlab = "Random-effects model")
- grDevices::dev.off()
- grDevices::pdf(file.path(figures_dir, "BNST_meta_analysis_forest_plots_sensitivity.pdf"), width = 6, height = 5)
- metafor::forest(sensitivity$exclude_neudorfer, slab = meta_no_neud$study, xlab = "Standardized mean difference", mlab = "Exclude Neudorfer")
- metafor::forest(sensitivity$exclude_zhou, slab = meta_no_zhou$study, xlab = "Standardized mean difference", mlab = "Exclude Zhou")
- metafor::forest(sensitivity$adjusted_only, slab = meta_adjusted_only$study, xlab = "Standardized mean difference", mlab = "Adjusted-only studies")
- grDevices::dev.off()
- # influence() is an S3 generic; the rma.uni method is registered by metafor
- # but is not exported as metafor::influence().
- inf <- stats::influence(primary)
- grDevices::pdf(file.path(figures_dir, "BNST_meta_analysis_influence_plot.pdf"), width = 7, height = 5)
- plot(inf)
- grDevices::dev.off()
- capture.output(
- {
- cat("Primary random-effects meta-analysis\n")
- print(summary(primary))
- cat("\nSensitivity analyses\n")
- print(rbind(summary_out, sensitivity_table))
- cat("\nInfluence diagnostics\n")
- print(inf)
- },
- file = file.path(results_dir, "BNST_meta_analysis_summary.txt")
- )
- message("Wrote prior effect table, meta-analysis summaries, and prior figures.")
- message("Primary pooled d = ", round(as.numeric(primary$b), 4), "; SE = ", round(primary$se, 4))
02_create_prior_table.R at commit 4891e02, under MIT · at the source
Overview
- Department of Psychology, Royal Holloway, University of London, Egham, Surrey, United Kingdom
- School of Psychology, Cardiff University, Cardiff, United Kingdom
Abstract
“The bed nucleus of the stria terminalis (BNST) is a sexually dimorphic basal forebrain region” is a claim prevalent across rodent and human neuroscience research, arising from the observation that it is substantially larger in male versus female brains. Despite the pervasiveness of this claim, which may have implications for understanding sex differences in anxiety and substance use disorders, inspection of the literature reveals a complex and nuanced picture. Research on volumetric human BNST sex differences comes from a handful of mostly small-scale post-mortem studies and two MRI studies, between them reporting no, moderate, or very large differences. This indicates the need for a more detailed systematic investigation. Addressing this, we developed a novel 3T T1-weighted (T1w) manual segmentation protocol for the BNST, which was applied to sub-millimetre resolution T1w structural MRI data in 170 young human adults. Using a Bayesian modelling approach, taking into account existing data and accounting for total brain volume, age, and sibship, we find substantial evidence favouring no sex difference in total BNST volume. We recommend that researchers exercise caution when reporting evidence of BNST sexual dimorphism, particularly when translating findings from rodent models in which the BNST may play a different, olfaction-focused, role.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above, with 9 matches between paragraphs and lines of code.
mattelisi/mlisi
54700ea9b7afb2cc4a342c2beb26f4500c919d9c, 11 October 2019Availability: 1 check, the latest on 30 October 2026: the link answers
- 30 October 2026: the link answers
47 files
- R/
binomSEM.R , R, 9 lines - R/
bootSEM.R , R, 10 lines - R/
bootfooci.R , R, 46 lines - R/
bootmeanci.R , R, 44 lines - R/
bootmedian.R , R, 10 lines - R/
ci.R , R, 8 lines - R/
circular-1.R , R, 9 lines - R/
circular-2.R , R, 8 lines - R/
circular-3.R , R, 10 lines - R/
conversion-display-2.R , R, 15 lines - R/
conversion-display.R , R, 14 lines - R/
erf.R , R, 11 lines - R/
general-1.R , R, 26 lines - R/
graphics-1.R , R, 50 lines - R/
is.even.R , R, 6 lines - R/
itersum.R , R, 13 lines - R/
matlab-equiv-2.R , R, 11 lines - R/
matlab-equiv-3.R , R, 10 lines - R/
matlab-equiv.R , R, 10 lines - R/
mix-circular-1.R , R, 8 lines - R/
mix-circular-2.R , R, 11 lines - R/
mix-circular-3.R , R, 10 lines - R/
mix-circular-4.R , R, 9 lines - R/
mix-circular-5.R , R, 38 lines - R/
mostrepeated.R , R, 6 lines - R/
psych-1.R , R, 8 lines - R/
psych-2.R , R, 11 lines - R/
psych-3.R , R, 45 lines - R/
psych-4.R , R, 16 lines - R/
psych-5.R , R, 14 lines - R/
psych-6.R , R, 18 lines - R/
psych-7.R , R, 18 lines - R/
robust-1.R , R, 13 lines - R/
robust-2.R , R, 14 lines - R/
savage_dickey_bf.R , R, 31 lines - R/
se.R , R, 8 lines - R/
signal-1.R , R, 24 lines - R/
signal-2.R , R, 32 lines - R/
signal-3.R , R, 32 lines - R/
signal-4.R , R, 13 lines - R/
signal-5.R , R, 12 lines - R/
signal-6.R , R, 50 lines - R/
signal-7.R , R, 34 lines - R/
signal-8.R , R, 15 lines - R/
trunc-1.R , R, 17 lines - R/
trunc-2.R , R, 17 lines - README.md, Text, 18 lines
El-Suri/Substantial-evidence-against-sex-differences-in-bed-nucleus-of-the-stria-terminalis-volume
4891e021c87d09179c087f6105bd3daa81d4f7c5, 1 October 2026Availability: 1 check, the latest on 30 October 2026: the link answers
- 30 October 2026: the link answers
14 files
- scripts/
00_calculate_tbv_from_fa , R, 100 lines, 1 matchst_pves.R - scripts/
00_prepare_open_derived_ , R, 97 linesdata.R - scripts/
00_prepare_restricted_co , R, 70 linesvariates.R - scripts/
00_stage_coded_table.py , Python, 86 lines - scripts/
01_extract_bnst_volumes. , R, 65 lines, 1 matchR - scripts/
02_create_prior_table.R , R, 440 lines, 2 matches - scripts/
03_fit_bilateral_model.R , R, 381 lines, 2 matches - scripts/
04_prior_width_sensitivi , R, 142 linesty.R - scripts/
05_unilateral_sensitivit , R, 188 lines, 2 matchesy_and_descriptives.R - scripts/
_common.R , R, 253 lines, 1 match - tests/
test_coded_table.py , Python, 91 lines - tests/
test_inputs.R , R, 164 lines - LICENSE, License, 21 lines
- README.md, Text, 79 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:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 58 scripts, each with its path and the digest of its content;
- 9 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
- humanconnectome.org/
study/ , at Human Connectome Project; found in the text, “The Young Adults Human Connectome Project”hcp-young-adult
Data and Code Availability
Human data were provided [in part] by the Human Connectome Project, WU-Minn Consortium (Principal Investigators: David Van Essen and Kamil Ugurbil; 1U54MH091657) funded by the 16 NIH Institutes and Centers that support the NIH Blueprint for Neuroscience Research; and by the McDonnell Center for Systems Neuroscience at Washington University. The 3T T1w BNST manual segmentation protocol is available on the Open Science Framework website at https://
All code used to run the analyses and the BNST segmentation protocol is at 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, 30 October 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 6 authors, 6 keywords, 11 MeSH terms, 1 funder, 82 references.
Cite
This paper
Berry, S. C., Suri, H. K., Lisi, M., Ravenhill, J. P., Aggleton, J. P., & Hodgetts, C. J. (2026). Substantial evidence against sex differences in bed nucleus of the stria terminalis volume in the human brain. Imaging neuroscience (Cambridge, Mass.), 4, IMAG.a.1420. https://
BibTeX
@article{berry2026substa
author = {Berry, Sam C and Suri, Harsimran K and Lisi, Matteo and Ravenhill, James P and Aggleton, John P and Hodgetts, Carl J},
title = {{Substantial evidence against sex differences in bed nucleus of the stria terminalis volume in the human brain}},
journal = {Imaging neuroscience (Cambridge, Mass.)},
year = {2026},
month = oct,
volume = {4},
pages = {IMAG.a.1420},
publisher = {MIT Press},
issn = {2837-6056},
doi = {10.1162/
url = {https://
pmid = {42953882},
pmcid = {PMC13716282}
}
RIS
TY - JOUR
AU - Berry, Sam C
AU - Suri, Harsimran K
AU - Lisi, Matteo
AU - Ravenhill, James P
AU - Aggleton, John P
AU - Hodgetts, Carl J
TI - Substantial evidence against sex differences in bed nucleus of the stria terminalis volume in the human brain
T2 - Imaging neuroscience (Cambridge, Mass.)
J2 - Imaging Neurosci (Camb)
PY - 2026
DA - 2026/
VL - 4
SP - IMAG.a.1420
SN - 2837-6056
PB - MIT Press
DO - 10.1162/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1162/
"type": "article-journal",
"title": "Substantial evidence against sex differences in bed nucleus of the stria terminalis volume in the human brain",
"container-title": "Imaging neuroscience (Cambridge, Mass.)",
"author": [
{
"family": "Berry",
"given": "Sam C"
},
{
"family": "Suri",
"given": "Harsimran K"
},
{
"family": "Lisi",
"given": "Matteo"
},
{
"family": "Ravenhill",
"given": "James P"
},
{
"family": "Aggleton",
"given": "John P"
},
{
"family": "Hodgetts",
"given": "Carl J"
}
],
"container-title-short":
"volume": "4",
"page": "IMAG.a.1420",
"DOI": "10.1162/
"PMID": "42953882",
"PMCID": "PMC13716282",
"ISSN": "2837-6056",
"publisher": "MIT Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
10,
27
]
]
}
}
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.7554/elife.92200 [code]
- Comparative neuroimaging of sex differences in human and mouse brain anatomy.Journal: eLifeIn common: ggplot2, tidyverse, humanconnectome.org/study/hcp-young-adult, structural MRI / diffusion, 9 references
- [2] doi:10.1162/imag.a.1260
- Organization, fine structure, and stereotaxic maps of the human Bed nucleus of the Stria terminalis.Journal: Imaging neuroscience (Cambridge, Mass.)In common: 10 references
- [3] doi:10.1038/s41467-026-73262-2 [code]
- Robust but independent sex differences in human brain function, structure, and behavior.Journal: Nature communicationsIn common: easystats, patchwork, ggplot2, 1 other tool, humanconnectome.org/study/hcp-young-adult, structural MRI / diffusion, 6 references
- [4] doi:10.1186/s13293-025-00728-1 [code]
- A cross-species analysis of neuroanatomical covariance sex differences in humans and mice.Journal: Biology of sex differencesIn common: patchwork, ggplot2, tidyverse, humanconnectome.org/study/hcp-young-adult, structural MRI / diffusion, 6 references
- [5] doi:10.1162/imag.a.1235 [code]
- Intracranial volume: To adjust or not to adjust? It is not a matter of if, but how.Journal: Imaging neuroscience (Cambridge, Mass.)In common: patchwork, ggplot2, tidyverse, structural MRI / diffusion, 6 references
- [6] doi:10.1038/s41467-024-51942-1 [code]
- Sex differences in functional cortical organization reflect differences in network topology rather than cortical morphometry.Journal: Nature communicationsIn common: tidyverse, structural MRI / diffusion, 8 references
- [7] doi:10.1038/s41467-026-71414-y [code]
- Bed nucleus of the stria terminalis connectivity during food cue and taste processing under stress.Journal: Nature communicationsIn common: 7 references
- [8] doi:10.1007/s10571-025-01536-2 [code]
- Single-Cell Analysis of Sex and Gender Differences in the Human Brain During Development and Disease.Journal: Cellular and molecular neurobiologyIn common: patchwork, ggplot2, tidyverse, 5 references
- [9] doi:10.1073/pnas.2403212121 [code]
- Sex and mental health are related to subcortical brain microstructure.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: humanconnectome.org/study/hcp-young-adult, structural MRI / diffusion, 6 references
- [10] doi:10.1016/j.nicl.2025.103881 [code]
- Brain age gap reduction following exercise mirrors clinical improvements in schizophrenia spectrum disorders.Journal: NeuroImage. ClinicalIn common: RNifti, brms, easystats, 3 other tools, structural MRI / diffusion
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: 2 repositories of the authors' code, each at its verified commit and with its license, 58 scripts, and 9 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:0700cfbe374d4cb7…
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/imag.a.1420)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1162/imag.a.1420.svg
:target: https://openscicode.org/badge/doi/10.1162/imag.a.1420
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1162/imag.a.1420"><img src="https://openscicode.org/badge/doi/10.1162/imag.a.1420.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".
- mattelisi/mlisi: README.md on GitHub
- El-Suri/Substantial-evidence-against-sex-differences-in-bed-nucleus-of-the-stria-terminalis-volume: README.md on GitHub
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.
