OSCR

The EDC mixture "NeuroMix" alters neuroendocrine physiology, fatty food preference, and the central reward transcriptome.

Code ↔ Paper

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

The 2 matches
  1. [1] § Materials and methods › Statistical analyses › Eigengene generation and trait prediction ↔ NMXseq_EigengeneAnalysis_2026.R, lines 212–299 · score 0.62 · Module membership, matrix, gene expression, Pearson, prcomp, Eigengenes
  2. [2] § Materials and methods › Statistical analyses › Enrichment analysis ↔ NMXseq_EigengeneAnalysis_2026.R, lines 2–43 · score 0.54 · Gene Ontology, FDR, gene expression, matching, GO term, clustering

Paper

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

The paper is loaded when this pane is shown.

The authors' code

R · 300 lines · 9.9 KB · no license · 2 matches

  1. ################################################################################
  2. # Gene Ontology Eigengene Scores
  3. ################################################################################
  4. # Emily N. Hilz, Phd.
  5. # The University of Texas at Austin
  6. # [email hidden]
  7. # please reference https://doi.org/10.1210/endocr/bqag084 when using this code
  8. ################################################################################
  9. # PCA by sample - loop using linear mixed model - individual GO terms
  10. ################################################################################
  11. # The following code provides example flow for one sex and brain region.
  12. library(dplyr)
  13. library(tidyr)
  14. library(lme4)
  15. library(lmerTest)
  16. library(ggplot2)
  17. # Step 1: Load normalized gene expression and GO data files
  18. IDs <- read.csv("NMXseq_IDs.csv")
  19. norm <- read.csv("NMXseq_NormalizedGenes.csv")
  20. geneGOs <- read.csv("GeneGOs.csv") # Derived from Msibdbr package version 7.1
  21. GOresults <- read.csv("GOall_Fem_OFC.csv") %>% filter(fdr < 0.05)
  22. # Step 2: Match genes to GO terms and clusters
  23. matched_genes <- GOresults %>%
  24. inner_join(geneGOs, by = c("id" = "GO")) %>%
  25. select(name, gene) # Keep only relevant columns
  26. matched_summary <- matched_genes %>%
  27. group_by(name) %>%
  28. summarise(Matching_Genes = list(unique(gene)), # Store genes as a list
  29. Gene_Count = n()) # Count matching genes per summary
  30. # Step 3: Initialize lists for results
  31. lmm_results_list <- list()
  32. pca_plots <- list()
  33. pc_results_list <- list() # Stores PC1 & PC2 results for all
  34. # Step 4: Loop through each unique name (i.e., GO term)
  35. for (summary_category in unique(matched_genes$name)) {
  36. # Filter genes for the current summary category
  37. summary_genes <- matched_genes %>%
  38. filter(name == summary_category) %>%
  39. distinct(gene) %>%
  40. pull(gene) # Extract gene names as a vector
  41. # Filter expression data for relevant genes; mind the filter
  42. filtered_norm_expr <- norm %>%
  43. filter(gene %in% summary_genes, Sex == "Female", Brain_Region == "OFC")
  44. # Aggregate duplicate genes per Sample.ID
  45. filtered_genes <- filtered_norm_expr %>%
  46. group_by(gene, Sample.ID) %>%
  47. summarize(Expression = mean(Expression, na.rm = TRUE), .groups = "drop")
  48. # Transform to wide format
  49. filtered_wide <- filtered_genes %>%
  50. pivot_wider(names_from = gene, values_from = Expression) %>%
  51. column_to_rownames(var = "Sample.ID")
  52. # Skip if not enough genes for PCA
  53. if (ncol(filtered_wide) < 2) next
  54. # Perform PCA
  55. pca_results <- prcomp(filtered_wide, scale. = F, center = TRUE)
  56. # Convert PCA results to dataframe
  57. pca_df <- as.data.frame(pca_results$x) %>%
  58. rownames_to_column(var = "Sample.ID") %>%
  59. left_join(IDs, by = "Sample.ID") # Add Treatment info
  60. # Skip if fewer than 2 PCs
  61. if (ncol(pca_df) < 3) next
  62. # Fit Linear Model for PC1
  63. lm_PC1 <- lm(PC1 ~ Treatment, data = pca_df)
  64. # Fit Linear Model for PC2
  65. lm_PC2 <- lm(PC2 ~ Treatment, data = pca_df)
  66. # Store LMM results
  67. lmm_results_list[[summary_category]] <- list(
  68. PC1_LM = summary(lm_PC1),
  69. PC2_LM = summary(lm_PC2)
  70. )
  71. # Store PCA results with name
  72. pc_results_list[[summary_category]] <- pca_df %>%
  73. select(ID, Brain_Region, Sex, Treatment, PC1, PC2) %>%
  74. mutate(name = summary_category, # Add cluster name
  75. ID = paste0("MDR ", ID)) # Modify ID
  76. # Generate PCA plot
  77. p <- ggplot(pca_df, aes(x = PC1, y = PC2, label = Sample.ID, color = Treatment)) +
  78. geom_point(size = 4, alpha = 0.8, show.legend = TRUE) +
  79. geom_text(vjust = 1.5, size = 3, check_overlap = TRUE, color = "black") +
  80. labs(title = paste("PCA of", summary_category, "cluster"),
  81. x = "PC1",
  82. y = "PC2",
  83. color = "GO Term") +
  84. theme_classic()
  85. # Store the plot in a list
  86. pca_plots[[summary_category]] <- p
  87. }
  88. # Optional: Print LMM results to look at treatment effects on PC scores per term
  89. lmm_results_list
  90. # Optional: Check for outliers by viewing PCA plots, perform exclusion as needed
  91. pca_plots
  92. # Step 5: Combine all PC1 & PC2 results into one dataframe
  93. PCS <- bind_rows(pc_results_list)
  94. # Step 6: Save PCA results as a CSV file
  95. write.csv(PCS, "FemOFC_PCA_results_IndvGO.csv", row.names = FALSE)
  96. #Optional: Filter and view significant models and plots
  97. extract_significant_models <- function(lmm_results, threshold = 0.05) {
  98. significant_results <- list()
  99. for (cluster in names(lmm_results)) {
  100. model_PC1 <- lmm_results[[cluster]]$PC1_LM
  101. model_PC2 <- lmm_results[[cluster]]$PC2_LM
  102. # Extract p-values from coefficients
  103. pvals_PC1 <- coef(model_PC1)[, "Pr(>|t|)"]
  104. pvals_PC2 <- coef(model_PC2)[, "Pr(>|t|)"]
  105. # Check if any term in PC1 or PC2 is below threshold
  106. if (any(pvals_PC1 < threshold, na.rm = TRUE) || any(pvals_PC2 < threshold, na.rm = TRUE)) {
  107. significant_results[[cluster]] <- lmm_results[[cluster]]
  108. }
  109. }
  110. return(significant_results)
  111. }
  112. significant_lmm_results <- extract_significant_models(lmm_results_list, threshold = 0.055)
  113. print(significant_lmm_results)
  114. # Create an empty list to store plots
  115. significant_lm_plots <- list()
  116. # Extract only significant clusters
  117. significant_clusters <- names(significant_lmm_results)
  118. # Loop through each significant cluster and generate regression plots
  119. for (cluster in significant_clusters) {
  120. # Retrieve PCA scores for this cluster
  121. cluster_data <- data %>% filter(name == cluster)
  122. # Skip if not enough data
  123. if (nrow(cluster_data) < 5) next
  124. # Generate regression plot for PC1
  125. p1 <- ggplot(pca_df, aes(x = PC1, y = PC2, label = Sample.ID, color = Treatment)) +
  126. geom_point(size = 4, alpha = 0.8, show.legend = TRUE) +
  127. geom_text(vjust = 1.5, size = 3, check_overlap = TRUE, color = "black") +
  128. labs(title = paste("PCA of", summary_category, "cluster"),
  129. x = "PC1",
  130. y = "PC2",
  131. color = "GO Term") +
  132. theme_classic() +
  133. scale_color_manual(values = c("NMX" = "orange",
  134. "Veh" = "cornflowerblue"))
  135. # Store only the plots from significant models
  136. significant_lm_plots[[paste(cluster, "PC1")]] <- p1
  137. }
  138. # View only significant model plots
  139. significant_lm_plots
  140. ################################################################################
  141. # PCA by GO term for module membership
  142. ################################################################################
  143. library(dplyr)
  144. library(tidyr)
  145. library(tibble)
  146. # Step 1: Load data files
  147. IDs <- read.csv("NMXseq_IDs.csv")
  148. norm <- read.csv("NMXseq_NormalizedGenes.csv")
  149. geneGOs <- read.csv("GeneGOs.csv")
  150. GOresults <- read.csv("GOall_Fem_NAC.csv") %>% na.omit()
  151. # Step 2: Match genes to GO terms and clusters
  152. matched_genes <- GOresults %>%
  153. inner_join(geneGOs, by = c("id" = "GO")) %>%
  154. select(name, gene) # Keep only relevant columns
  155. matched_summary <- matched_genes %>%
  156. group_by(name) %>%
  157. summarise(Matching_Genes = list(unique(gene)), # Store genes as a list
  158. Gene_Count = n()) # Count matching genes per summary
  159. run_go_pca <- function(go_name,
  160. sex = "Female",
  161. brain_region = "NAC",
  162. pc_keep = 1:2,
  163. scale = FALSE,
  164. center = TRUE,
  165. membership_pc = 1, # <-- which PC defines "eigengene"
  166. membership_method = "pearson",
  167. membership_use = "pairwise.complete.obs") {
  168. summary_genes <- matched_genes %>%
  169. filter(name == go_name) %>%
  170. distinct(gene) %>%
  171. pull(gene)
  172. filtered_norm_expr <- norm %>%
  173. filter(gene %in% summary_genes,
  174. Sex == sex,
  175. Brain_Region == brain_region)
  176. filtered_genes <- filtered_norm_expr %>%
  177. group_by(gene, Sample.ID) %>%
  178. summarize(Expression = mean(Expression, na.rm = TRUE), .groups = "drop")
  179. filtered_wide <- filtered_genes %>%
  180. pivot_wider(names_from = gene, values_from = Expression) %>%
  181. column_to_rownames("Sample.ID")
  182. if (ncol(filtered_wide) < 2) return(NULL)
  183. if (nrow(filtered_wide) < 3) return(NULL)
  184. pca <- prcomp(filtered_wide, scale. = scale, center = center)
  185. # ---- Loadings ----
  186. loadings <- as.data.frame(pca$rotation) %>%
  187. rownames_to_column("gene")
  188. pcs_exist <- paste0("PC", pc_keep)
  189. pcs_exist <- pcs_exist[pcs_exist %in% colnames(loadings)]
  190. loadings <- loadings %>%
  191. select(gene, all_of(pcs_exist)) %>%
  192. mutate(go_name = go_name,
  193. sex = sex,
  194. brain_region = brain_region)
  195. # ---- Variance explained ----
  196. var_explained <- (pca$sdev^2 / sum(pca$sdev^2)) * 100
  197. var_explained <- tibble(
  198. go_name = go_name,
  199. sex = sex,
  200. brain_region = brain_region,
  201. PC = paste0("PC", seq_along(var_explained)),
  202. pct = var_explained
  203. )
  204. # ---- Module membership (kME-like): cor(gene expression, eigengene) ----
  205. eigengene <- pca$x[, paste0("PC", membership_pc)]
  206. # Make sure columns are genes
  207. expr_mat <- as.matrix(filtered_wide) # rows=samples, cols=genes
  208. kME <- apply(expr_mat, 2, function(gene_vec) {
  209. cor(gene_vec, eigengene,
  210. method = membership_method,
  211. use = membership_use)
  212. })
  213. membership <- tibble(
  214. gene = names(kME),
  215. kME = unname(kME),
  216. abs_kME = abs(kME),
  217. go_name = go_name,
  218. sex = sex,
  219. brain_region = brain_region
  220. ) %>%
  221. arrange(desc(abs_kME))
  222. list(
  223. pca = pca,
  224. loadings = loadings,
  225. var_explained = var_explained,
  226. membership = membership,
  227. eigengene = tibble(Sample.ID = rownames(filtered_wide),
  228. eigengene = as.numeric(eigengene),
  229. go_name = go_name,
  230. sex = sex,
  231. brain_region = brain_region)
  232. )
  233. }

NMXseq_EigengeneAnalysis_2026.R at commit fe24150, no license · at the source

Overview

Authors: Emily N Hilz1, Nicholas R Gonzalez1, Elena Morales-Grahl1, Jahnabi Deka1, Dana L Sheinhaus1, Lindsay M Thompson1, Christopher D Kassotis2, Andrea C Gore1
  1. Department of Pharmacy, Division of Pharmacology and Toxicology, The University of Texas at Austin, Austin, TX 78712, USA
  2. Institute of Environmental Health Sciences and Department of Pharmacology, Wayne State University, Detroit, MI 48202, USA
Institutions: The University of Texas at Austin (United States); Wayne State University (United States)
Journal: Endocrinology, volume 167, issue 9, article bqag084
Dates: received 22 April 2026; accepted 24 July 2026; published online 1 August 2026; in print August 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1210/endocr/bqag084 · PMID 42538733 · PMCID PMC13490871 · OpenAlex W7172112851
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: genetics / omics (modality), rat (organism), cellular / molecular (subfield)
Methods: Statistics, Smoothing, state filtering, decompositions, Preprocessing, Connectivity
Keywords: endocrine-disrupting chemicals, obesogens, nucleus accumbens, appetitive behavior, thyroid, transcriptome
MeSH: Endocrine Disruptors*, Food Preferences*, Neurosecretory Systems*, Reward*, Transcriptome*, Animals, Female, Male, Obesity, Pregnancy, Rats, Rats, Sprague-Dawley, Thyroid Hormone Receptors beta, Thyroid Hormones (* major topic)
Topic: Effects and risks of endocrine disrupting chemicals (Health, Toxicology and Mutagenesis, Environmental Science), according to OpenAlex
Funding: NIH (K99 ES037720, R35 ES035024); ACG
Citations: not cited yet (Europe PMC); 102 references in the paper
Research resources: RRID:AB_2868475

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 2 matches between paragraphs and lines of code.

emilyhilz/NeuroMix-2026

License: none: the authors keep all their rights
State: the link answers, verified on 26 September 2026
Evidence: files inventoried
Commit: fe24150f45328c13f0ebface0a30a763a7cebc5c, 13 August 2026
Languages: R (2)
Size: 3 files, 2 scripts
Software Heritage: not archived
Found in: the text, “Eigengene generation and trait prediction”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: ggplot2 (2 files), tidyverse (2 files), car (1 file), lme4 (1 file), lmerTest (1 file), reshape2 (1 file)
Availability: 1 check, the latest on 26 September 2026: the link answers
  • 26 September 2026: the link answers
3 files

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;
  • 2 scripts, each with its path and the digest of its content;
  • 2 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 statement

The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

  • it says that the data are available on request

Read it in the paper: doi.org/10.1210/endocr/bqag084.

Versions

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

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 8 authors, 6 keywords, 14 MeSH terms, 2 funders, 96 references, 1 RRID.

Cite

This paper

Hilz, E. N., Gonzalez, N. R., Morales-Grahl, E., Deka, J., Sheinhaus, D. L., Thompson, L. M., Kassotis, C. D., & Gore, A. C. (2026). The EDC mixture "NeuroMix" alters neuroendocrine physiology, fatty food preference, and the central reward transcriptome. Endocrinology, 167(9), bqag084. https://doi.org/10.1210/endocr/bqag084

BibTeX

@article{hilz2026edc,
author = {Hilz, Emily N and Gonzalez, Nicholas R and Morales-Grahl, Elena and Deka, Jahnabi and Sheinhaus, Dana L and Thompson, Lindsay M and Kassotis, Christopher D and Gore, Andrea C},
title = {{The EDC mixture "NeuroMix" alters neuroendocrine physiology, fatty food preference, and the central reward transcriptome}},
journal = {Endocrinology},
year = {2026},
month = aug,
volume = {167},
number = {9},
pages = {bqag084},
publisher = {The Endocrine Society},
issn = {0013-7227},
doi = {10.1210/endocr/bqag084},
url = {https://doi.org/10.1210/endocr/bqag084},
pmid = {42538733},
pmcid = {PMC13490871}
}

RIS

TY - JOUR
AU - Hilz, Emily N
AU - Gonzalez, Nicholas R
AU - Morales-Grahl, Elena
AU - Deka, Jahnabi
AU - Sheinhaus, Dana L
AU - Thompson, Lindsay M
AU - Kassotis, Christopher D
AU - Gore, Andrea C
TI - The EDC mixture "NeuroMix" alters neuroendocrine physiology, fatty food preference, and the central reward transcriptome
T2 - Endocrinology
J2 - Endocrinology
PY - 2026
DA - 2026/08/01
VL - 167
IS - 9
SP - bqag084
SN - 0013-7227
PB - The Endocrine Society
DO - 10.1210/endocr/bqag084
UR - https://doi.org/10.1210/endocr/bqag084
LA - en
ER -

CSL-JSON

{
"id": "10.1210/endocr/bqag084",
"type": "article-journal",
"title": "The EDC mixture \"NeuroMix\" alters neuroendocrine physiology, fatty food preference, and the central reward transcriptome",
"container-title": "Endocrinology",
"author": [
{
"family": "Hilz",
"given": "Emily N"
},
{
"family": "Gonzalez",
"given": "Nicholas R"
},
{
"family": "Morales-Grahl",
"given": "Elena"
},
{
"family": "Deka",
"given": "Jahnabi"
},
{
"family": "Sheinhaus",
"given": "Dana L"
},
{
"family": "Thompson",
"given": "Lindsay M"
},
{
"family": "Kassotis",
"given": "Christopher D"
},
{
"family": "Gore",
"given": "Andrea C"
}
],
"container-title-short": "Endocrinology",
"volume": "167",
"issue": "9",
"page": "bqag084",
"DOI": "10.1210/endocr/bqag084",
"PMID": "42538733",
"PMCID": "PMC13490871",
"ISSN": "0013-7227",
"publisher": "The Endocrine Society",
"URL": "https://doi.org/10.1210/endocr/bqag084",
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
1
]
]
}
}

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.1016/j.xcrm.2026.102766 [code]
A longitudinal single-cell and spatial multiomic atlas of pediatric high-grade glioma.
Journal: Cell reports. Medicine
In common: car, lmerTest, lme4, 3 other tools, genetics / omics, cellular / molecular
[2] doi:10.1093/schbul/sbaf091 [code]
Setd1a Loss-of-function Disrupts Epigenetic Regulation of Ribosomal Genes via Altered DNA Methylation.
Journal: Schizophrenia bulletin
In common: car, lmerTest, lme4, 3 other tools, genetics / omics, cellular / molecular
[3] doi:10.1093/braincomms/fcag279 [code]
Network flexibility facilitates treatment-induced recovery in post-stroke aphasia.
Journal: Brain communications
In common: car, lmerTest, lme4, 3 other tools
[4] doi:10.1162/imag.a.1363 [code]
Social approach-avoidance conflict: Behavioural, emotional, and neural correlates along a depression-social anxiety spectrum.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: car, lmerTest, lme4, 3 other tools
[5] doi:10.1371/journal.pone.0353990 [code]
Positive mood enhances accessibility of unrelated concepts in the first language but not in the foreign language.
Journal: PloS one
In common: car, lmerTest, lme4, 3 other tools
[6] doi:10.1038/s41467-026-76132-z [code]
ATP13A4 gates extracellular polyamine levels to control excitatory synaptogenesis.
Journal: Nature communications
In common: car, lmerTest, lme4, 3 other tools
[7] doi:10.1016/j.neuroimage.2026.122115 [code]
Midfrontal theta power relates to response speeding following frustrative nonreward.
Journal: NeuroImage
In common: car, lmerTest, lme4, 3 other tools
[8] doi:10.1073/pnas.2606871123 [code]
Oxytocin modulates the neurocomputational mechanisms engaged in learning rank relationships in social networks.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: car, lmerTest, lme4, 3 other tools
[9] doi:10.1016/j.celrep.2026.117505 [code]
Impaired spatial coding and neuronal hyperactivity in the medial entorhinal cortex of aged APP knock-in mice.
Journal: Cell reports
In common: car, lmerTest, lme4, 3 other tools
[10] doi:10.1016/j.nicl.2026.104012 [code]
Structural-functional multilayer brain network properties and outcome of combined repetitive transcranial magnetic stimulation and psychotherapy for obsessive-compulsive disorder.
Journal: NeuroImage. Clinical
In common: car, lmerTest, lme4, 3 other tools

Contribute

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

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

Request its removal

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

Discussion, reproductions, activity

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

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

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