Multimodal phenotypic classification of generalized anxiety and panic using structural MRI data and psychosocial factors: machine learning results from the German National Cohort (NAKO) study.
2 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 3 matches
- [1] § Methods › Machine-learning classification ↔ neuro.R, lines 294 to 371 · score 0.59 · tuning length, glmnet, resampling, maximize, width, caret · block
oscr:b:VWA181KXH6RJA-2· Report a mismatch - [2] § Results ↔ correlations_and_descriptives.R, lines 437 to 509 · score 0.51 · lifetime cigarettes, depressive symptoms, PHQ Stress, female sex, childhood trauma, CT · block
oscr:b:JPBNYQQ6PE2VG-Y· Report a mismatch - [3] § Methods › Dataset and study population ↔ correlations_and_descriptives.R, lines 437 to 509 · score 0.51 · lifetime cigarettes, PHQ Stress, emotional, childhood trauma, CT, panic attacks · block
oscr:b:JPBNYQQ6PE2VG-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 · 688 lines · 23 KB · no license · 2 matches
- library(car)
- source("https://raw.githubusercontent.com/Julsten/myFunctions/main/R%20scripts/myFunctions.R")
- library(tidyverse)
- library(broom)
- library(skimr)
- library(e1071)
- library(rminer)
- library(caret)
- library(here)
- library(ggplot2)
- library(doParallel)
- library(tictoc)
- library(fastDummies)
- library(data.table)
- library(officer)
- library(psych)
- chere::i_am("scripts/correlations_and_descriptives.R")
- source(here("scripts/helper_functions.R"))
- # codebook for meaningful names
- code_book <- readxl::read_xls("data/dd_Nako_689.xls")
- measure <- "ROC"
- seed <- 123
- # rad in df_test
- df_raw <- read_csv2(here("data/export_baseline.csv"))
- atlas_vars <- c(
- # juelich
- # "ma_n_l_cm", "ma_n_l_if",
- # "ma_n_l_lb", "ma_n_l_mf",
- # "ma_n_l_sf", "ma_n_l_vtm",
- # "ma_n_l_op5", "ma_n_l_op6",
- # "ma_n_l_op7", "ma_n_l_op8",
- # "ma_n_l_op9", "ma_n_l_fp1",
- # "ma_n_l_fp2", "ma_n_l_fg1",
- # "ma_n_l_fg2", "ma_n_l_fg3",
- # "ma_n_l_fg4", "ma_n_l_ca1",
- # "ma_n_l_ca2", "ma_n_l_ca3",
- # "ma_n_l_dg", "ma_n_l_hata",
- # "ma_n_l_hc_parasub", "ma_n_l_hc_presub",
- # "ma_n_l_hc_prosub", "ma_n_l_hc_sub",
- # "ma_n_l_hc_transsub", "ma_n_l_ia",
- # "ma_n_l_id1", "ma_n_l_id2",
- # "ma_n_l_id3", "ma_n_l_id4",
- # "ma_n_l_id5", "ma_n_l_id6",
- # "ma_n_l_id7", "ma_n_l_ig1",
- # "ma_n_l_ig2", "ma_n_l_ig3",
- # "ma_n_l_hip1", "ma_n_l_hip2",
- # "ma_n_l_hip3", "ma_n_l_hip4",
- # "ma_n_l_hip5", "ma_n_l_hip6",
- # "ma_n_l_hip7", "ma_n_l_hip8",
- # "ma_n_l_fo1", "ma_n_l_fo2",
- # "ma_n_l_fo3", "ma_n_l_fo4",
- # "ma_n_l_fo5", "ma_n_l_fo6",
- # "ma_n_l_fo7", "ma_n_l_op1",
- # "ma_n_l_op2", "ma_n_l_op3",
- # "ma_n_l_op4", "ma_n_l_s24",
- # "ma_n_l_p24ab", "ma_n_l_p24c",
- # "ma_n_l_25", "ma_n_l_s32",
- # "ma_n_l_p32", "ma_n_l_33",
- # "ma_n_r_cm", "ma_n_r_if",
- # "ma_n_r_lb", "ma_n_r_mf",
- # "ma_n_r_sf", "ma_n_r_vtm",
- # "ma_n_r_op5", "ma_n_r_op6",
- # "ma_n_r_op7", "ma_n_r_op8",
- # "ma_n_r_op9", "ma_n_r_fp1",
- # "ma_n_r_fp2", "ma_n_r_fg1",
- # "ma_n_r_fg2", "ma_n_r_fg3",
- # "ma_n_r_fg4", "ma_n_r_ca1",
- # "ma_n_r_ca2", "ma_n_r_ca3",
- # "ma_n_r_dg", "ma_n_r_hata",
- # "ma_n_r_hc_parasub", "ma_n_r_hc_presub",
- # "ma_n_r_hc_prosub", "ma_n_r_hc_sub",
- # "ma_n_r_hc_transsub", "ma_n_r_ia",
- # "ma_n_r_id1", "ma_n_r_id2",
- # "ma_n_r_id3", "ma_n_r_id4",
- # "ma_n_r_id5", "ma_n_r_id6",
- # "ma_n_r_id7", "ma_n_r_ig1",
- # "ma_n_r_ig2", "ma_n_r_ig3",
- # "ma_n_r_hip1", "ma_n_r_hip2",
- # "ma_n_r_hip3", "ma_n_r_hip4",
- # "ma_n_r_hip5", "ma_n_r_hip6",
- # "ma_n_r_hip7", "ma_n_r_hip8",
- # "ma_n_r_s24", "ma_n_r_p24ab",
- # "ma_n_r_p24c", "ma_n_r_25",
- # "ma_n_r_s32", "ma_n_r_p32",
- # "ma_n_r_33",
- #
- "ma_n_l_caudacc_ct",
- "ma_n_l_isthcing_ct", "ma_n_l_postcing_ct",
- "ma_n_l_rostcing_ct", "ma_n_l_caumfron_ct",
- "ma_n_l_insula_ct", "ma_n_l_parahipp_ct",
- "ma_n_r_caudacc_ct", "ma_n_r_isthcing_ct",
- "ma_n_r_postcing_ct", "ma_n_r_rostcing_ct",
- "ma_n_r_morbfron_ct", "ma_n_r_insula_ct",
- "ma_n_r_parahipp_ct", "ma_n_r_mean_ct",
- "ma_n_l_caudacc_vo", "ma_n_l_isthcing_vo",
- "ma_n_l_postcing_vo", "ma_n_l_rostcing_vo",
- "ma_n_l_morbfron_vo", "ma_n_l_insula_vo",
- "ma_n_l_parahipp_vo", "ma_n_r_caudacc_vo",
- "ma_n_r_isthcing_vo", "ma_n_r_postcing_vo",
- "ma_n_r_rostcing_vo", "ma_n_r_insula_vo",
- "ma_n_r_parahipp_vo", "ma_n_l_caudacc_sa",
- "ma_n_l_isthcing_sa", "ma_n_l_postcing_sa",
- "ma_n_l_rostcing_sa", "ma_n_l_caumfron_sa",
- "ma_n_l_insula_sa", "ma_n_l_parahipp_sa",
- "ma_n_l_whitesurf_sa", "ma_n_r_caudacc_sa",
- "ma_n_r_isthcing_sa", "ma_n_r_postcing_sa",
- "ma_n_r_rostcing_sa", "ma_n_r_insula_sa",
- "ma_n_r_whitesurf_sa", "lma_n_lh_cortexvol",
- "ma_n_cortexvol", "ma_n_rh_cortexvol",
- "ma_n_cerebralwm", "ma_n_lh_cerebralwm",
- "ma_n_subcortgray", "ma_n_totalgrayvol",
- "ma_n_brainstem", "ma_n_lh_accumbens",
- "ma_n_lh_amygdala", "ma_n_lh_hippocamp",
- "ma_n_lh_thalamus", "ma_n_lh_ventraldc",
- "ma_n_rh_accumbens", "ma_n_rh_amygdala",
- "ma_n_rh_hippocamp", "ma_n_rh_thalamus",
- "ma_n_rh_ventraldc", "ma_n_lh_nonwmhypo",
- "ma_n_lh_wmhypo", "ma_n_wmlesion_vol",
- "ma_n_ldmn_a_cupcc1", "ma_n_ldmn_a_pfcd1",
- "ma_n_ldmn_a_pfcm1", "ma_n_ldmn_b_ipl1",
- "ma_n_ldmn_b_pfcd1", "ma_n_ldmn_b_pfcl1",
- "ma_n_ldmn_b_pfcv1", "ma_n_ldmn_b_pfcv2",
- "ma_n_ldmn_c_phc1", "ma_n_llimn_b_ofc1",
- "ma_n_lsvan_a_frm1", "ma_n_lsvan_a_ins1",
- "ma_n_lsvan_a_ins2", "ma_n_lsvan_a_parm1",
- "ma_n_lsvan_a_paro1", "ma_n_lsvan_b_pfcl1",
- "ma_n_lsvan_b_pfcm1", "ma_n_rdmn_a_cupcc1",
- "ma_n_rdmn_a_ipl1", "ma_n_rdmn_a_pfcd1",
- "ma_n_rdmn_a_pfcm1", "ma_n_rdmn_b_pfcd1",
- "ma_n_rdmn_b_pfcv1", "ma_n_rdmn_b_pfcv2",
- "ma_n_rdmn_c_phc1", "ma_n_rdmn_c_rsp1",
- "ma_n_rlimn_a_temp1", "ma_n_rlimn_b_ofc1",
- "ma_n_rsvan_a_frm1", "ma_n_rsvan_a_ins1",
- "ma_n_rsvan_a_parm1", "ma_n_rsvan_a_paro1",
- "ma_n_rsvan_b_ipl1", "ma_n_rsvan_b_pfcl1",
- "ma_n_rsvan_b_pfcm1"
- )
- atlas_vars <- intersect(atlas_vars, colnames(df_raw))
- df <- df_raw %>% select(ID, sex = basis_sex, age = basis_age,
- gad = a_emo_gad7_sum,
- gad_cat = a_emo_gad7_cut10,
- tiv = ma_n_cortexvol, site = basis_uort, trauma = a_emo_cts_sum,
- all_of(atlas_vars),
- #all_of(juelich),
- phq = a_emo_phq9_sum,
- phq_cat =a_emo_phq9_cut10,
- phq_stress = a_emo_phq_stress,
- #panic_cat = a_emo_phq_panik, # phqp_full
- d_phqp1_1,
- d_phqp1_2,
- rauch_life = a_smok_past_cig_d,
- d_an_neu_6
- ) %>%
- mutate(female_sex =sex - 1) %>% select(-sex) %>%
- mutate(across(everything(), as.numeric)) %>%
- mutate(across(everything(),function(x) na_if(x, 7777))) %>%
- mutate(rauch_life = case_when(rauch_life == 7775 ~ 0,
- T ~ rauch_life)) %>%
- mutate(panic_cat = case_when(
- is.na(d_phqp1_2) | d_phqp1_1 == 2 ~ 0,
- d_phqp1_2 == 1 ~ 1)) %>%
- mutate(site = factor(site)) %>%
- mutate(gad_cat = factor(gad_cat, labels = c("healthy", "anxious")),
- phq_cat = factor(phq_cat, labels = c("healthy", "depressed")),
- panic_cat = factor(panic_cat, labels = c("healthy", "panic")),
- # panic_cat = factor(
- # case_when(
- # d_an_neu_6 == 1 ~ "panic",
- # d_an_neu_6 == 2 ~ "healthy",
- # TRUE ~ NA_character_
- # ))
- ) %>%
- select(-d_an_neu_6) %>%
- select(-d_phqp1_1, -d_phqp1_2) %>%
- mutate(gad_panic_cat = factor(as.numeric(gad_cat == "anxious" & panic_cat =="panic"),
- labels = c("healthy", "comorbid")))
- df <- df %>% mutate(across(everything(), as.numeric)) %>%
- mutate(ID =row_number())
- df1 <- df
- df2 <- df
- #atlas <- "juelich"
- #atlas_vars <- get_atlas(atlas)
- # clean_data(df1, df2, "panic_cat", atlas_vars,
- # remove_vars = NULL, confounds = "age")
- #### correlate ####
- ##### correlate outcomes ####
- cor.test(df$gad_cat, df$panic_cat)
- # Function to apply cor.test and tidy the result
- perform_correlation <- function(df, compare_with) {
- df %>%
- summarise(across(
- setdiff(names(df), compare_with),
- ~ tidy(cor.test(.x, get(compare_with), method = "pearson")),
- .names = "{.col}_{compare_with}_result"
- )) %>%
- pivot_longer(
- cols = everything(),
- names_to = c("variable", ".value"),
- names_pattern = "(.*)_(.*)_result"
- )
- }
- #### MASS CORRELATE! ####
- for(selected_sex in list(0, 1, c(0, 1))){# 0 = male, 1 = female
- ##### correct for age ####
- gad_confounds <-c("age", "phq")#c("age", "phq", "panic_cat", "trauma")
- panic_confounds <-c("age", "phq")#c("age", "phq", "gad_cat", "trauma")
- if(is.null(gad_confounds)){
- df_cleaned_gad <- df %>% filter(female_sex %in% selected_sex)
- } else {
- vars_to_clean <- intersect(colnames(df), atlas_vars)
- confound_coefs_train_gad <- get_confound_coefs(data = df, vars_to_clean = vars_to_clean, confounds = gad_confounds)
- na_cols <- apply(confound_coefs_train_gad, 2, function(x) any(is.na(x)))
- confound_coefs_train_gad[na_cols] <- 0
- df_cleaned_gad <- remove_confounds(df %>% filter(female_sex %in% selected_sex), confound_coefs_train_gad, gad_confounds, vars_to_clean)
- }
- if(is.null(panic_confounds)){
- df_cleaned_panic <- df %>% filter(female_sex %in% selected_sex)
- } else {
- vars_to_clean <- intersect(colnames(df), atlas_vars)
- confound_coefs_train_panic <- get_confound_coefs(data = df, vars_to_clean = vars_to_clean, confounds = panic_confounds)
- na_cols <- apply(confound_coefs_train_panic, 2, function(x) any(is.na(x)))
- confound_coefs_train_panic[na_cols] <- 0
- df_cleaned_panic <- remove_confounds(df %>% filter(female_sex %in% selected_sex), confound_coefs_train_panic, panic_confounds, vars_to_clean)
- }
- ##### Calculating correlations for 'panic' and 'gad' ####
- df_num_gad <- df_cleaned_gad %>% mutate(across(everything(), as.numeric)) %>%
- select(-phq,
- -phq_cat,
- -phq_stress,
- -trauma,
- -female_sex,
- -rauch_life,
- -age,
- -site,
- -ID,
- -tiv) %>%
- mutate(gad_cat = gad_cat - 1) %>%
- identity()
- df_num_panic <- df_cleaned_panic %>% mutate(across(everything(), as.numeric)) %>%
- #filter(female_sex == 1) %>%
- select(-phq,
- -phq_cat,
- -phq_stress,
- -trauma,
- -female_sex,
- -rauch_life,
- -age,
- -site,
- -ID,
- -tiv) %>%
- mutate(panic_cat = panic_cat - 1) %>%
- identity()
- results_panic <- df_num_panic %>% select(-gad, -gad_panic_cat, -gad_cat) %>%
- perform_correlation(., "panic_cat") %>% unnest %>%
- mutate(variable = gsub("_panic", "", variable))
- results_gad <- df_num_gad %>%
- select(-panic_cat, -gad_panic_cat, -gad) %>%
- perform_correlation(., "gad_cat") %>% unnest %>%
- mutate(variable = gsub("_gad", "", variable))
- ##### Combining results ####
- final_results <- results_panic %>%
- rename(panic_r = estimate,
- panic_p = p.value) %>%
- full_join(results_gad %>%
- select(variable, gad_r = estimate, gad_p = p.value),
- ) %>%
- select(
- variable,
- panic_r,
- panic_p,
- gad_r,
- gad_p
- )
- # rename final results variables
- cor_df <- final_results %>%
- left_join(code_book %>% select(Name, Label), by = c("variable" = "Name")) %>%
- select(variable, Label, panic_r, panic_p, gad_r, gad_p) %>%
- mutate(gad_p_adj = gad_p*sum(!is.na(gad_p)),
- panic_p_adj = panic_p*sum(!is.na(panic_p))) %>%
- rowwise %>%
- mutate(gad_p_adj = min(1, gad_p_adj),
- panic_p_adj = min(1, panic_p_adj)) %>%
- ungroup %>%
- rstatix::add_significance(p.col = "gad_p_adj", output.col = "gad_sig") %>%
- rstatix::add_significance(p.col = "panic_p_adj", output.col = "panic_sig")
- cor_df_panic <- cor_df %>% select(-starts_with("gad")) %>%
- arrange(-abs(panic_r))
- cor_df_gad <- cor_df %>% select(-starts_with("panic")) %>%
- arrange(-abs(gad_r))
- sex_name <- ifelse(all(selected_sex == 1), "_female", ifelse(all(selected_sex == 0), "_male", ""))
- openxlsx::write.xlsx(cor_df_panic, paste0("data/output/panic_correlations", sex_name, ".xlsx"))
- openxlsx::write.xlsx(cor_df_gad, paste0("data/output/gad_correlations", sex_name, ".xlsx"))
- }
- #### combine genders ####
- file_extension_gad <- ifelse(is.null(gad_confounds), "uncorrected", paste0(c(gad_confounds, "corrected"), sep="", collapse = "_"))
- file_extension_panic <- ifelse(is.null(panic_confounds), "uncorrected", paste0(c(panic_confounds, "corrected"), sep="", collapse = "_"))
- panic_cor <- openxlsx::read.xlsx("data/output/panic_correlations.xlsx")
- panic_cor_female <- openxlsx::read.xlsx("data/output/panic_correlations_female.xlsx")
- panic_cor_male <- openxlsx::read.xlsx("data/output/panic_correlations_male.xlsx")
- panic_cor_all <- panic_cor %>% left_join(panic_cor_female, by = c("variable", "Label"),
- suffix=c("_all", "_female")) %>%
- left_join(panic_cor_male, by = c("variable", "Label")) %>%
- rename(panic_r_male = panic_r,
- panic_p_male = panic_p,
- panic_p_adj_male = panic_p_adj,
- panic_sig_male = panic_sig) %>%
- distinct() %>%
- arrange(Label)
- openxlsx::write.xlsx(panic_cor_all, here(paste0("data/output/panic_correlations_all_", file_extension_panic, ".xlsx")))
- gad_cor <- openxlsx::read.xlsx("data/output/gad_correlations.xlsx")
- gad_cor_female <- openxlsx::read.xlsx("data/output/gad_correlations_female.xlsx")
- gad_cor_male <- openxlsx::read.xlsx("data/output/gad_correlations_male.xlsx")
- gad_cor_all <- gad_cor %>% left_join(gad_cor_female, by = c("variable", "Label"),
- suffix=c("_all", "_female")) %>%
- left_join(gad_cor_male, by = c("variable", "Label")) %>%
- rename(gad_r_male = gad_r,
- gad_p_male = gad_p,
- gad_p_adj_male = gad_p_adj,
- gad_sig_male = gad_sig) %>%
- distinct() %>%
- arrange(Label)
- ##### save all #####
- openxlsx::write.xlsx(gad_cor_all, here(paste0("data/output/gad_correlations_all_", file_extension_gad, ".xlsx")))
- #### descriptives ####
- df_clean <- na.omit(df)
- table(df_clean$female_sex) %>% prop.table()
- df_clean %>% select(female_sex, age, gad, panic_cat) %>% psych::describe()
- prop.table(table(df_clean$gad>10 ))
- prop.table(table(df_clean$panic_cat ))
- # Load necessary packages
- library(crosstable)
- df_ct <- df_raw %>% select(ID, sex = basis_sex, age = basis_age,
- gad = a_emo_gad7_sum,
- gad_cat = a_emo_gad7_cut10,
- tiv = ma_n_cortexvol, site = basis_uort,
- trauma = a_emo_cts_sum,
- a_emo_cts_1_kat,
- a_emo_cts_2_kat,
- a_emo_cts_3_kat,
- a_emo_cts_4_kat,
- a_emo_cts_5_kat,
- all_of(atlas_vars),
- #all_of(juelich),
- phq = a_emo_phq9_sum,
- phq_cat =a_emo_phq9_cut10,
- phq_stress = a_emo_phq_stress,
- #panic_cat = a_emo_phq_panik, # phqp_full
- d_phqp1_1,
- d_phqp1_2,
- rauch_life = a_smok_past_cig_d,
- d_an_neu_6
- ) %>%
- mutate(female_sex =sex - 1) %>% select(-sex) %>%
- mutate(across(everything(), as.numeric)) %>%
- mutate(across(everything(),function(x) na_if(x, 7777))) %>%
- mutate(rauch_life = case_when(rauch_life == 7775 ~ 0,
- T ~ rauch_life)) %>%
- mutate(panic_cat = case_when(
- is.na(d_phqp1_2) | d_phqp1_1 == 2 ~ 0,
- d_phqp1_2 == 1 ~ 1)) %>%
- mutate(site = factor(site)) %>%
- mutate(gad_cat = factor(gad_cat, labels = c("healthy", "anxious")),
- phq_cat = factor(phq_cat, labels = c("healthy", "depressed")),
- panic_cat = factor(panic_cat, labels = c("healthy", "panic")),
- # panic_cat = factor(
- # case_when(
- # d_an_neu_6 == 1 ~ "panic",
- # d_an_neu_6 == 2 ~ "healthy",
- # TRUE ~ NA_character_
- # ))
- ) %>%
- select(-d_an_neu_6) %>%
- select(-d_phqp1_1, -d_phqp1_2) %>%
- mutate(gad_panic_cat = factor(as.numeric(gad_cat == "anxious" & panic_cat =="panic"),
- labels = c("healthy", "comorbid"))) %>%
- mutate(sex = factor(female_sex, levels = c(0, 1), labels = c("Men", "Women"))) %>%
- mutate(panic_cat = factor(panic_cat, labels = c("no", "yes")))
- df_ct <-na.omit(df_ct)
- # Assume your data frame is named df and has the columns: female_sex, age, gad, and panic
- # Create age groups
- df_clean<- df_clean %>%
- mutate(age_group = factor(case_when(
- age >= 19 & age <= 40 ~ "<40 years",
- age >= 41 & age <= 60 ~ "40-60 years",
- age >= 61 ~ ">60 years"
- ), levels = c("<40 years", "40-60 years", ">60 years")))
- # Create a new column for sex as a factor
- df_clean <- df_clean %>%
- mutate(sex = factor(female_sex, levels = c(0, 1), labels = c("Men", "Women"))) %>%
- mutate(panic_cat = factor(panic_cat, labels = c("no", "yes")))
- df_ct <- df_ct %>% mutate(across(starts_with("a_emo_cts"), ~ factor(.x, labels = c("no", "yes")))) %>%
- mutate(age_group =
- cut(age,
- breaks =c(18,29, 39, 49, 59,
- max(df$age)),
- labels = c("18-29", "30-39", "40-49", "50-59", "60-74")),
- n = factor("n"))
- # sex differences
- doc <- read_docx()
- (demo_table <- df_ct %>%
- arrange(sex) %>%
- crosstable(
- cols = c(
- "Number of Participants" = n,
- "Age" = age,
- " " = age_group,
- "GAD-7" = gad,
- "GAD-7 ≥ 10" = gad_cat,
- "Lifetime Panic Attacks" = panic_cat,
- "Lifetime Cigarettes" = rauch_life,
- "Depressive Symptoms (PHQ-9)" = phq,
- "Stress" = phq_stress,
- "Childhood Trauma Sum Score (CT-S)" = trauma,
- # "Emotional neglect" = a_emo_cts_1_kat,
- # "Physical abuse" = a_emo_cts_2_kat,
- # "Emotional abuse" = a_emo_cts_3_kat,
- # "Sexual abuse" = a_emo_cts_4_kat,
- # "Physical neglect" = a_emo_cts_5_kat,
- ),
- by = c(sex),
- showNA = "ifany",
- funs = list("mean (SD)" = meansd),
- test = F,
- test_args = crosstable_test_args(show_method = F, plim = 3),
- percent_pattern = "{n} \n ({p_col})",
- percent_digits = 1,
- total = "row")%>%
- mutate(variable = ifelse(variable == "NA", "Missing", variable)) %>%
- as_flextable(remove_header_keys = T)
- )
- doc <- body_add_flextable(doc, value = demo_table)
- print(doc, target = here("results/demo_table.docx"))
- gad_pa_doc <- read_docx()
- # gad & PA comparison
- (gad_ct <- df_ct %>%
- arrange(gad_cat) %>%
- crosstable(
- cols = c(
- "Number of Participants" = n,
- "Sex" = sex,
- "Age" = age,
- " " = age_group,
- "GAD-7" = gad,
- "GAD-7 ≥ 10" = gad_cat,
- "Lifetime Panic Attacks" = panic_cat,
- "Lifetime Cigarettes" = rauch_life,
- "Depressive Symptoms (PHQ-9)" = phq,
- "Stress" = phq_stress,
- "Childhood Trauma Sum Score (CT-S)" = trauma,
- # "Emotional neglect" = a_emo_cts_1_kat,
- # "Physical abuse" = a_emo_cts_2_kat,
- # "Emotional abuse" = a_emo_cts_3_kat,
- # "Sexual abuse" = a_emo_cts_4_kat,
- # "Physical neglect" = a_emo_cts_5_kat,
- ),
- by = c(gad_cat),
- showNA = "ifany",
- funs = list("mean (SD)" = meansd),
- test = F,
- test_args = crosstable_test_args(show_method = F, plim = 3),
- percent_pattern = "{n} \n ({p_col})",
- percent_digits = 1,
- total = "row")%>%
- mutate(variable = ifelse(variable == "NA", "Missing", variable)) %>%
- as_flextable(remove_header_keys = T)
- )
- gad_pa_doc <- body_add_flextable(gad_pa_doc, value = gad_ct)
- print(gad_pa_doc, target = here("results/gad_pa_table.docx"))
- # panic comparison
- (pa_ct <- df_ct %>%
- arrange(panic_cat) %>%
- crosstable(
- cols = c(
- "Number of Participants" = n,
- "Sex" = sex,
- "Age" = age,
- " " = age_group,
- "GAD-7" = gad,
- "GAD-7 ≥ 10" = gad_cat,
- "Lifetime Panic Attacks" = panic_cat,
- "Lifetime Cigarettes" = rauch_life,
- "Depressive Symptoms (PHQ-9)" = phq,
- "Stress" = phq_stress,
- "Childhood Trauma Sum Score (CT-S)" = trauma,
- # "Emotional neglect" = a_emo_cts_1_kat,
- # "Physical abuse" = a_emo_cts_2_kat,
- # "Emotional abuse" = a_emo_cts_3_kat,
- # "Sexual abuse" = a_emo_cts_4_kat,
- # "Physical neglect" = a_emo_cts_5_kat,
- ),
- by = c(panic_cat),
- showNA = "ifany",
- funs = list("mean (SD)" = meansd),
- test = F,
- test_args = crosstable_test_args(show_method = F, plim = 3),
- percent_pattern = "{n} \n ({p_col})",
- percent_digits = 1,
- total = "row")%>%
- mutate(variable = ifelse(variable == "NA", "Missing", variable)) %>%
- as_flextable(remove_header_keys = T)
- )
- gad_pa_doc <- body_add_flextable(gad_pa_doc, value = pa_ct)
- print(gad_pa_doc, target = here("results/gad_pa_table.docx"))
- # Calculate summary statistics
- summary_table <- df_clean %>%
- group_by(sex, age_group) %>%
- summarise(
- Age = mean(age, na.rm = TRUE),
- GAD_Mean = mean(gad, na.rm = TRUE),
- Panic_Attacks_Percent = mean(panic_cat, na.rm = TRUE) * 100,
- .groups = 'drop'
- ) %>%
- ungroup() %>%
- mutate(age_group = factor(age_group, levels = c("<40 years", "40-60 years", ">60 years"))) %>%
- pivot_wider(names_from = age_group, values_from = c(Age, GAD_Mean, Panic_Attacks_Percent)) %>%
- adorn_totals("row") %>%
- adorn_totals("col", name = "Complete Sample")
- # Print the summary table
- print(summary_table)
- #### simpsons paradox? ####
- #ma_n_l_morbfron_vo
- df_plot <- df_cleaned_gad %>% mutate(across(everything(), as.numeric)) %>%
- select(-phq,
- -phq_cat,
- -phq_stress,
- -trauma,
- -rauch_life,
- -age,
- -site,
- -ID,
- -tiv) %>%
- mutate(gad_cat = gad_cat - 1) %>%
- identity()
- p <- ggplot(df_plot %>% mutate(female_sex = as.factor(female_sex)), aes(x = ma_n_l_morbfron_vo, y = gad_cat,
- fill = female_sex, color = female_sex)) +
- geom_jitter(height = 0.1, alpha=.3, size = .3) +
- geom_smooth(method = "lm") +
- geom_smooth(method = "lm", aes(group = 1, color = "all", fill = "all")) +
- theme_bw() +
- scale_fill_discrete(name = "Sex", labels = c("male", "female", "all")) +
- scale_color_discrete(name = "Sex", labels = c("male", "female", "all")) +
- labs(x = "Gray matter volume of the left medial orbitofrontal cortex", y = "GAD-7 (cat, jittered)")+
- NULL
- p
- ggsave(here("plots/simpsons_paradoxon.png"), p)
- gad_fem <- df_plot$gad_cat[df$female_sex == 1]
- vol_fem <- df_plot$ma_n_ldmn_a_pfcd1[df$female_sex == 1]
- cor(gad_fem, vol_fem, use = "complete.obs")
- gad_mal <- df_plot$gad_cat[df$female_sex == 0]
- vol_mal <- df_plot$ma_n_ldmn_a_pfcd1[df$female_sex == 0]
- cor(gad_mal, vol_mal, use = "complete.obs")
- cor(df_plot$gad_cat, df_plot$ma_n_ldmn_a_pfcd1, use = "complete.obs")
- #ma_n_r_insula_vo
- gad_cor_female %>% filter(variable == "ma_n_ldmn_a_pfcd1")
- cor_mat = matrix(c(1, -0.3, -0.3, 1), nrow = 2)
- outcome <- as.data.frame(MASS::mvrnorm(100, mu = c("a" = 0, "b" =1),
- Sigma = cor_mat))
- outcome$gender <- "female"
- outcome_2 <- as.data.frame(MASS::mvrnorm(100, mu = c("a" = 2, "b" =3),
- Sigma = cor_mat))
- outcome_2$gender <- "male"
- df <- rbind(outcome, outcome_2)
- library(tidyverse)
- df %>% ggplot(aes(x = a, y = b, color = gender)) + geom_point()+geom_smooth(method = "lm") +
- geom_smooth(method = "lm", aes(group = 1, color = "Total"))
correlations_and_descriptives.R, no license · at the source
Overview
and 13 other authors
Thoralf Niendorf33, Michael F Leitzmann34, Patricia Bohmann34,35, Kerstin Wirkner36, Lilian Krist21, Yanding Wang16,37, Klaus Berger38, Sebastian Walther1, Hans J Grabe4,39, Jürgen Deckert1,22, Svenja Caspers9,10, Grit Hein1, Angelika Erhardt-Lehmann1,4040 affiliations
- Department of Psychiatry, Psychosomatic and Psychotherapy, Center of Mental Health, University Hospital Würzburg, Würzburg, Germany
- Department of Psychology III, University of Würzburg, Würzburg, Germany
- Department of Psychology I, University of Würzburg, Würzburg, Germany
- Department of Psychiatry and Psychotherapy, University Medicine Greifswald, Greifswald, Germany
- Department of Genetic Epidemiology in Psychiatry, Central Institute of Mental Health, University of Heidelberg, Medical Faculty Mannheim, Mannheim, Germany
- Department of Psychiatry and Psychotherapy, Central Institute of Mental Health, Medical Faculty Mannheim, University of Heidelberg, Mannheim, Germany
- Hector Institute for Artificial Intelligence in Psychiatry, Central Institute of Mental Health, Medical Faculty Mannheim, University of Heidelberg, Mannheim, Germany
- German Center for Mental Health (DZPG), Partner Site Mannheim, Heidelberg - Ulm, Germany
- Institute for Anatomy I, Medical Faculty & Hospital Düsseldorf, Heinrich-Heine-University, Düsseldorf, Germany
- Institute of Neuroscience and Medicine (INM-1), Research Centre Jülich, Jülich, Germany
- Leibniz Institute for Prevention Research and Epidemiology—BIPS, Bremen, Germany
- Faculty of Mathematics and Computer Science, University of Bremen, Bremen, Germany
- Department of Public Health, University of Copenhagen, Copenhagen, Denmark
- University Hospital Essen, Institute for Medical Informatics, Biometry and Epidemiology (IMIBE), Essen, Germany
- University of Applied Sciences and Arts Dortmund (FH Dortmund), Department of Computer Science, Dortmund, Germany
- Institute of Epidemiology, Helmholtz Zentrum München, German Research Center for Environmental Health (GmbH), Neuherberg, Germany
- Department of Psychiatry and Psychotherapy, LMU University Hospital, LMU Munich, Munich, Germany
- Institute of Medical Epidemiology, Biometrics and Informatics, Medical Faculty of the Martin-Luther University Halle-Wittenberg, Halle, Wittenberg, Germany
- German Center for Mental Health (DZPG), Site Halle-Jena-Magdeburg, Halle (Saale), Germany
- Center for Intervention and Research on adaptive and maladaptive brain - Circuits underlying mental health (C-I-R-C), Halle-Jena-Magdeburg, Halle (Saale), Germany
- Institute of Social Medicine, Epidemiology and Health Economics, Charité-Universitätsmedizin Berlin, Berlin, Germany
- Institute of Clinical Epidemiology and Biometry, University of Würzburg, Würzburg, Germany
- State Institute of Health I, Bavarian Health and Food Safety Authority, Erlangen, Germany
- Department for Epidemiology, Helmholtz Centre for Infection Research (HZI), Brunswick, Germany
- Department of Diagnostic and Interventional Radiology, Medical Center–University of Freiburg, Faculty of Medicine, University of Freiburg, Freiburg, Germany
- Heidelberg Institute of Global Health (HIGH), Medical Faculty and University Hospital, Heidelberg University, Heidelberg, Germany
- Department of Global Health and Population, Harvard T.H. Chan School of Public Health, Harvard University, Boston, USA
- Africa Health Research Institute (AHRI), Somkhele and Durban, Durban, South Africa
- Fraunhofer Institute for Digital Medicine MEVIS, Bremen, Germany
- Max-Delbrück-Center for Molecular Medicine in the Helmholtz Association (MDC), Molecular Epidemiology Research Group, Berlin, Germany
- Max-Delbrück-Center for Molecular Medicine in the Helmholtz Association (MDC) Biobank Technology Platform, Berlin, Germany
- Charité – Universitätsmedizin Berlin, corporate member of Freie Universität Berlin and Humboldt-Universität zu Berlin, Berlin, Germany
- Berlin Ultrahigh Field Facility (B.U.F.F.), Max Delbrück Center for Molecular Medicine in the Helmholtz Association, Berlin, Germany
- Institute for Epidemiology and Preventive Medicine, University of Regensburg, Regensburg, Germany
- Department of Neurology, medbo District Hospital and University Hospital of Regensburg, Regensburg, Germany
- Leipzig Research Centre for Civilization Diseases, Leipzig University, Leipzig, Germany
- Institute for Medical Information Processing, Biometry, and Epidemiology (IBE), Faculty of Medicine, LMU Munich, Pettenkofer School of Public Health, Munich, Germany
- Institute of Epidemiology and Social Medicine, University of Münster, Münster, Germany
- German Centre for Neurodegenerative Diseases (DZNE), Site Rostock/Greifswald, Greifswald, Germany
- Max Planck Institute of Psychiatry, Munich, Germany
Abstract
Anxiety disorders are common and impairing mental health conditions. Using data from 26,378 adults in the German National Cohort Study (NAKO), we investigated psychosocial and neuroimaging predictors of generalized anxiety disorder (GAD) symptoms and panic attacks. We conducted machine-learning analyses of 246 regions of interest from whole-brain imaging data in combination with psychosocial variables. Neuroimaging data alone showed suboptimal classification performance, whereas psychosocial variables alone - particularly depressive symptoms, stress, and childhood trauma - achieved the strongest discrimination for GAD symptoms and panic attacks. Adding neuroimaging features to psychosocial models modestly improved unbalanced accuracy and specificity by reducing false-positive classifications, indicating a conditional and complementary contribution of neuroanatomical information. Within the multivariate models, features from anxiety-related circuits, including the amygdala and superior parietal lobule, were consistently selected. Overall, these findings suggest that psychosocial factors dominate classification of anxiety outcomes, while structural MRI measures may provide complementary information within multimodal frameworks aimed at refining classification and supporting the development of individualized risk profiles to guide tailored therapeutic and preventive strategies.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 3 matches between paragraphs and lines of code.
OSF wt9yf
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
- 28 September 2026: the link answers (HTTP 200)
7 files
- check_models.R, R, 476 lines
- correlations_and_descrip
tives.R , R, 688 lines, 2 matches - helper_functions.R, R, 787 lines
- neuro.R, R, 451 lines, 1 match
- neuro_psycho.R, R, 397 lines
- psycho.R, R, 320 lines
- readme.md, Text, 32 lines
Code availability
Analysis code is available at https://
Reproduced under the paper's license (CC BY), from the paper cited above.
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;
- 3 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.
Data availability
The data that support the findings of this study are part of the German National Cohort (NAKO Gesundheitsstudie). NAKO data are subject to the EU / EEA General Data Protection Regulation and to the NAKO Terms of Use. They can therefore not be deposited in a public repository. Qualified researchers affiliated to EU or EEA institutions may apply for access through the NAKO TransferHub (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 2, 28 September 2026
- Funding: added Bundesministerium für Bildung und Forschung: 01ER1511D, 01ER2301A, 01ER2301 A/B/C, 01ER1301A / B / C, 01ER1801A/B/C/D, 01ER1301A, 01ER1801A, 01EE2303E; Siemens Healthineers; Servier; Neuraxpharm; Hector Stiftung; Hector Stiftung II; Leibniz-Gemeinschaft; Cilag
Version 1, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 33 authors, 3 keywords, 16 MeSH terms, 86 references.
Cite
This paper
Gutzeit, J., Weiß, M., Kuhn, T., Klinger-König, J., Streit, F., Jockwitz, C., Brandes, B., Wright, M. N., Friedrich, C. M., Woeckel, M., Mikolajczyk, R., Keil, T., Castell, S., Betker, P., Schlett, C. L., Bärnighausen, T. W., Bamberg, F., Günther, M., Hirsch, J. G., . . . Erhardt-Lehmann, A. (2026). Multimodal phenotypic classification of generalized anxiety and panic using structural MRI data and psychosocial factors: machine learning results from the German National Cohort (NAKO) study. Translational psychiatry, 16(1), 287. https://
BibTeX
@article{gutzeit2026mult
author = {Gutzeit, Julian and Weiß, Martin and Kuhn, Tierney and Klinger-König, Johanna and Streit, Fabian and Jockwitz, Christiane and Brandes, Berit and Wright, Marvin N and Friedrich, Christoph M and Woeckel, Margarethe and Mikolajczyk, Rafael and Keil, Thomas and Castell, Stefanie and Betker, Philine and Schlett, Christopher L and Bärnighausen, Till W and Bamberg, Fabian and Günther, Matthias and Hirsch, Jochen G and Pischon, Tobias and Niendorf, Thoralf and Leitzmann, Michael F and Bohmann, Patricia and Wirkner, Kerstin and Krist, Lilian and Wang, Yanding and Berger, Klaus and Walther, Sebastian and Grabe, Hans J and Deckert, Jürgen and Caspers, Svenja and Hein, Grit and Erhardt-Lehmann, Angelika},
title = {{Multimodal phenotypic classification of generalized anxiety and panic using structural MRI data and psychosocial factors: machine learning results from the German National Cohort (NAKO) study}},
journal = {Translational psychiatry},
year = {2026},
month = may,
volume = {16},
number = {1},
pages = {287},
publisher = {Nature Publishing Group},
issn = {2158-3188},
doi = {10.1038/
url = {https://
pmid = {42209472},
pmcid = {PMC13219414}
}
RIS
TY - JOUR
AU - Gutzeit, Julian
AU - Weiß, Martin
AU - Kuhn, Tierney
AU - Klinger-König, Johanna
AU - Streit, Fabian
AU - Jockwitz, Christiane
AU - Brandes, Berit
AU - Wright, Marvin N
AU - Friedrich, Christoph M
AU - Woeckel, Margarethe
AU - Mikolajczyk, Rafael
AU - Keil, Thomas
AU - Castell, Stefanie
AU - Betker, Philine
AU - Schlett, Christopher L
AU - Bärnighausen, Till W
AU - Bamberg, Fabian
AU - Günther, Matthias
AU - Hirsch, Jochen G
AU - Pischon, Tobias
AU - Niendorf, Thoralf
AU - Leitzmann, Michael F
AU - Bohmann, Patricia
AU - Wirkner, Kerstin
AU - Krist, Lilian
AU - Wang, Yanding
AU - Berger, Klaus
AU - Walther, Sebastian
AU - Grabe, Hans J
AU - Deckert, Jürgen
AU - Caspers, Svenja
AU - Hein, Grit
AU - Erhardt-Lehmann, Angelika
TI - Multimodal phenotypic classification of generalized anxiety and panic using structural MRI data and psychosocial factors: machine learning results from the German National Cohort (NAKO) study
T2 - Translational psychiatry
J2 - Transl Psychiatry
PY - 2026
DA - 2026/
VL - 16
IS - 1
SP - 287
SN - 2158-3188
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Multimodal phenotypic classification of generalized anxiety and panic using structural MRI data and psychosocial factors: machine learning results from the German National Cohort (NAKO) study",
"container-title": "Translational psychiatry",
"author": [
{
"family": "Gutzeit",
"given": "Julian"
},
{
"family": "Weiß",
"given": "Martin"
},
{
"family": "Kuhn",
"given": "Tierney"
},
{
"family": "Klinger-König",
"given": "Johanna"
},
{
"family": "Streit",
"given": "Fabian"
},
{
"family": "Jockwitz",
"given": "Christiane"
},
{
"family": "Brandes",
"given": "Berit"
},
{
"family": "Wright",
"given": "Marvin N"
},
{
"family": "Friedrich",
"given": "Christoph M"
},
{
"family": "Woeckel",
"given": "Margarethe"
},
{
"family": "Mikolajczyk",
"given": "Rafael"
},
{
"family": "Keil",
"given": "Thomas"
},
{
"family": "Castell",
"given": "Stefanie"
},
{
"family": "Betker",
"given": "Philine"
},
{
"family": "Schlett",
"given": "Christopher L"
},
{
"family": "Bärnighausen",
"given": "Till W"
},
{
"family": "Bamberg",
"given": "Fabian"
},
{
"family": "Günther",
"given": "Matthias"
},
{
"family": "Hirsch",
"given": "Jochen G"
},
{
"family": "Pischon",
"given": "Tobias"
},
{
"family": "Niendorf",
"given": "Thoralf"
},
{
"family": "Leitzmann",
"given": "Michael F"
},
{
"family": "Bohmann",
"given": "Patricia"
},
{
"family": "Wirkner",
"given": "Kerstin"
},
{
"family": "Krist",
"given": "Lilian"
},
{
"family": "Wang",
"given": "Yanding"
},
{
"family": "Berger",
"given": "Klaus"
},
{
"family": "Walther",
"given": "Sebastian"
},
{
"family": "Grabe",
"given": "Hans J"
},
{
"family": "Deckert",
"given": "Jürgen"
},
{
"family": "Caspers",
"given": "Svenja"
},
{
"family": "Hein",
"given": "Grit"
},
{
"family": "Erhardt-Lehmann",
"given": "Angelika"
}
],
"container-title-short":
"volume": "16",
"issue": "1",
"page": "287",
"DOI": "10.1038/
"PMID": "42209472",
"PMCID": "PMC13219414",
"ISSN": "2158-3188",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
28
]
]
}
}
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/s41380-026-03691-4 [code]
- Breaking the norm: population-scale deviations of brain structure in depression and anxiety.Journal: Molecular psychiatryIn common: structural MRI / diffusion, clinical / translational, other condition, 2 references, 4 authors
- [2] doi:10.1101/2025.09.26.25336528 [code]
- Breaking the Norm: Population-Scale Deviations of Brain Structure in Depression and AnxietyJournal: medRxiv (preprint)In common: other condition, 1 reference, 4 authors
- [3] doi:10.1038/s41588-025-02485-8 [code]
- Genome-wide association study of major anxiety disorders in 122,341 European-ancestry cases identifies 58 loci and highlights GABAergic signaling.Journal: Nature geneticsIn common: psych, data.table, ggplot2, 1 other tool, other condition, 3 references, author Jürgen Deckert
- [4] doi:10.1126/sciadv.aec9291 [code]
- Computational mechanisms of perception in autism revealed using games inspired by rodent operant tasks.Journal: Science advancesIn common: pROC, caret, broom, 6 other tools
- [5] doi:10.1038/s43856-026-01722-3 [code]
- Local and global patterns support medical imaging as a biomarker of ageing.Journal: Communications medicineIn common: clinical / translational, 1 reference, 2 authors
- [6] doi:10.1038/s41598-025-17894-2 [code]
- Multimodal predictors of disability progression and processing speed decline in relapsing-remitting multiple sclerosis.Journal: Scientific reportsIn common: pROC, broom, rstatix, 5 other tools, structural MRI / diffusion, clinical / translational
- [7] doi:10.1093/braincomms/fcag146 [code]
- Convergent structural brain alterations in chronic pain: a multi-metric individual participant data meta-analysis.Journal: Brain communicationsIn common: pROC, caret, broom, 5 other tools, structural MRI / diffusion
- [8] doi:10.1038/s41380-025-03376-4 [code]
- Structural brain differences associated with panic disorder: an ENIGMA-Anxiety Working Group mega-analysis of 4924 individuals worldwide.Journal: Molecular psychiatryIn common: car, data.table, ggplot2, 1 other tool, other condition, 4 references
- [9] doi:10.1038/s41562-026-02476-7 [code]
- Genome-wide meta-analysis of quantitatively measured generalized anxiety symptoms in individuals of European ancestry.Journal: Nature human behaviourIn common: psych, data.table, tidyverse, clinical / translational, other condition, 1 reference, author Jürgen Deckert
- [10] doi:10.1093/braincomms/fcaf493 [code]
- Subcortical correlates of developmental language disorder: more than the neostriatum.Journal: Brain communicationsIn common: pROC, caret, broom, 4 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: 1 repository of the authors' code, each at its verified commit and with its license, 6 scripts, and 3 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:5fbd516909c823d1…
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.1038/s41398-026-04131-1)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s41398-026-04131-1.svg
:target: https://openscicode.org/badge/doi/10.1038/s41398-026-04131-1
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41398-026-04131-1"><img src="https://openscicode.org/badge/doi/10.1038/s41398-026-04131-1.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.
