OSCR

Graph theory identifies altered prefrontal microcircuit organization in Shank3 mice, a mouse Model of autism.

Code ↔ Paper

4 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 4 matches
  1. [1] § STAR★METHODS › METHOD DETAILS › Machine learning analysis to predict mouse genotype and behavioral outcomes › Cross-validation and enumeration ↔ machine_learning_R_code/BaseModels/PrLrfRFE.Rmd, lines 103–176 · score 0.55 · outer loop, RFE, inner, training, tuning, CV
  2. [2] § STAR★METHODS › METHOD DETAILS › Machine learning analysis to predict mouse genotype and behavioral outcomes › Cross-validation and enumeration ↔ machine_learning_R_code/BaseModels/PrL_Savg_TCthresh_RfRFE.Rmd, lines 105–192 · score 0.54 · outer loop, RFE, inner, training, tuning, CV
  3. [3] § STAR★METHODS › METHOD DETAILS › Cell maps, network construction, and hub neurons ↔ matlab_graph_theory_code/scripts/calculate_PrL_behavior_AUC_poking_others.m, lines 1–65 · score 0.53 · SB1 SB5, SB SN, social behavior, neurons, AUC, calcium
  4. [4] § STAR★METHODS › METHOD DETAILS › Machine learning analysis to predict mouse genotype and behavioral outcomes › Preprocessing and feature reduction ↔ machine_learning_R_code/BaseModels/OutlierAnalysisWinsorizePrL.Rmd, lines 6–20 · score 0.50 · multivariate outliers, highly correlated, winsorized, machine learning, subset, variables

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 Markdown · 209 lines · 6.8 KB · CC-BY-4.0 · 1 match

  1. ---
  2. title: "K group fold ML winsorized w/grid tuning"
  3. output: html_notebook
  4. ---
  5. This script is for Model 1, predicting genotype. Hyperparameter tuning will be employed for the mtry parameter.
  6. ```{r, warning=FALSE, message=FALSE}
  7. library(tidyverse)
  8. library(caret)
  9. library(randomForest)
  10. library(beepr)
  11. library(tictoc)
  12. prl <- read.csv("winsorizedOutliersRemoved.csv", stringsAsFactors = T)
  13. ```
  14. # Pre-processing
  15. The following features will be used: area H, area SB, area SN, normDiff_H_SB, normDiff_H_SN, Lg_SB, Cl_SB, Cl_SN, Cg_H, Cg_SB, Cg_SN.
  16. ```{r}
  17. # Select variables for ML.
  18. mlVars <- prl %>%
  19. select(-c(totalNeurons, Session))
  20. ```
  21. Convert ID variable to factor.
  22. ```{r}
  23. # Convert ID to factor.
  24. mlVars$ID <- as.factor(mlVars$ID)
  25. ```
  26. We will be performing nested cross-validation. An outer loop will use leave two-out grouped cross-validation to determine the model error. An inner loop will use leave-one-out grouped CV for model training and validation.
  27. # Functions for cross-validation
  28. We want to create testing and validation sets that contain mice from both the WT and SHANK3 genotypes. To start, there are 11 WT mice and 9 SHANK3 mice. For the outer loop, we want to select 2 mice from each genotype. For the inner loop, we want to select 1 mouse from each genotype. For both loops, we want to iterate over all possible combinations of selecting mice for testing/validation from each genotype.
  29. From a technical perspective, we want to create cv splits for tuning by index, similar to the output seen from caret's groupKfold(). This requires us to create a list of indices indicating the training set.
  30. The following function will identify all possible combinations of testing/validation mice, based on how many mice will be selected from each genotype, and split the data for each combination into lists of indices indicating an observation's place in either the training or testing set.
  31. ```{r}
  32. # Create CV folds, sampling mice for validation.
  33. cvFolds <- function(df, numMice){
  34. # Subset WT mice and SHANK3 mice.
  35. wt <- df %>% filter(gt == "WT") %>% pull(ID) %>% unique()
  36. shank3 <- df %>% filter(gt == "SHANK3") %>% pull(ID) %>% unique()
  37. # Define all possible combinations given the number of mice
  38. # to select for each genotype.
  39. # All ways to selecting WT mice.
  40. wtTest <- combn(wt, numMice, simplify = FALSE)
  41. # All ways to select SHANK3 mice.
  42. shank3Test <- combn(shank3, numMice, simplify = FALSE)
  43. # All ways to combine WT and SHANK3 mice.
  44. # Output is a dataframe with two columns: WT & SHANK3.
  45. validationMice <- expand.grid(wt = wtTest,
  46. shank3 = shank3Test)
  47. # Convert to list.
  48. testMiceList <- lapply(1:nrow(validationMice),
  49. function(x) c(unlist(validationMice[x, 1]),
  50. unlist(validationMice[x, 2])))
  51. # Get row index for sampling.
  52. folds <- lapply(1:length(testMiceList), function(x) df %>%
  53. rowid_to_column("index") %>%
  54. filter(!ID %in% testMiceList[[x]]) %>%
  55. pull(index))
  56. # Name folds to match groupKfold()
  57. names(folds) <- paste0("Fold", 1:length(testMiceList))
  58. return(folds)
  59. }
  60. ```
  61. ```{r}
  62. # Start timer for tracking how long the code runs.
  63. tic()
  64. ```
  65. ```{r}
  66. # Create outer loop folds.
  67. outerFolds <- cvFolds(df = mlVars, numMice = 2)
  68. # Define number of outer fold iterations.
  69. it <- length(outerFolds)
  70. # Create list for storing results.
  71. resultsList <- vector(mode = 'list', length = it)
  72. # Create list for optimal variables.
  73. optVariablesList <- vector(mode = 'list', length = it)
  74. # Create list for storing confusion matrix from test results.
  75. confMatList <- vector(mode = 'list', length = it)
  76. # Create list for storing ROC curve information.
  77. rocList <- vector(mode = 'list', length = it)
  78. ```
  79. Run nested CV procedure:
  80. ```{r}
  81. set.seed(33)
  82. for(i in 1:it){
  83. # Subset outer loop training data.
  84. train <- mlVars[outerFolds[[i]], ]
  85. # Subset outer loop testing data.
  86. test <- mlVars[-outerFolds[[i]], ]
  87. # Specify inner loop folds.
  88. folds <- cvFolds(df = train, numMice = 1)
  89. # Specify details for RFE.
  90. ctrl <- rfeControl(functions = rfFuncs,
  91. method = "cv",
  92. index = folds,
  93. number = length(folds),
  94. saveDetails = T)
  95. # Train.
  96. rfFit <- rfe(gt ~ ., data = train %>% select(-c(ID)),
  97. sizes = c(1:(ncol(train) - 2)), rfeControl = ctrl)
  98. # Store results.
  99. resultsList[[i]] <- cbind(rfFit$results, cv = i)
  100. # Store optimal variables.
  101. optVariablesList[[i]] <- rfFit$optVariables
  102. # Subset training data to only include gt and optimal variables from rfe.
  103. optTrain <- train %>% select(c(gt, rfFit$optVariables))
  104. # Find max mtry.
  105. maxMtry <- (ncol(optTrain) - 1) %>% sqrt() %>% ceiling()
  106. # Re-fit model with optimal variables.
  107. rfFitOpt <- train(gt ~ ., data = optTrain,
  108. tuneGrid = data.frame(mtry = c(1:maxMtry)),
  109. trControl = trainControl(index = folds,
  110. method = "cv",
  111. number = length(folds)))
  112. # Predict test data.
  113. preds <- predict(rfFitOpt,
  114. newdata = test %>%
  115. select(rfFit$optVariables))
  116. # ROC information.
  117. # Grab probabilities.
  118. probs <- predict(rfFitOpt,
  119. newdata = test %>%
  120. select(rfFit$optVariables), type = "prob")
  121. # Create data.frame of probabilities, true class, and iteration.
  122. rocDat <- data.frame(trueClass = test$gt, probSHANK3 = probs$SHANK3,
  123. cv = i)
  124. # Add to rocList.
  125. rocList[[i]] <- rocDat
  126. # Performance table.
  127. confusion <- confusionMatrix(preds, test$gt)
  128. tableStats <- data.frame(tp = confusion$table[1, 1],
  129. fn = confusion$table[2, 1],
  130. fp = confusion$table[1, 2],
  131. tn = confusion$table[2, 2])
  132. # Store performance results.
  133. confMatList[[i]] <- c(confusion$overall, confusion$byClass, tableStats)
  134. print(i)
  135. }
  136. ```
  137. ```{r}
  138. # Audible cue letting user know cv is finished
  139. beep('coin')
  140. ```
  141. ```{r}
  142. # Stop timer and return time it took to run code.
  143. toc()
  144. ```
  145. ```{r}
  146. # Turn confusion matrix list into a data.frame.
  147. confDF <- bind_rows(lapply(confMatList, as.data.frame.list))
  148. # Turn results list into a data.frame.
  149. resultsDF <- bind_rows(lapply(resultsList, as.data.frame.list))
  150. # Turn optimal variables into a data.frame.
  151. optVarsDF <- bind_rows(lapply(optVariablesList, as.data.frame.list))
  152. # Turn rocList into a data.rame
  153. rocDF <- bind_rows(lapply(rocList, as.data.frame.list))
  154. ```
  155. Save dataframes.
  156. ```{r}
  157. write.csv(confDF, "PrLwinsConfMatrix.csv", row.names = F)
  158. write.csv(resultsDF, "PrLwinsResults.csv", row.names = F)
  159. write.csv(optVarsDF, "PrLwinsOptVars.csv", row.names = F)
  160. write.csv(rocDF, "PrLwinsROC.csv", row.names = F)
  161. ```

PrLrfRFE.Rmd, under CC-BY-4.0 · at the source

Overview

Authors: Rongsong Liu1,2,3, Yan Zhang4,3, Mallory Lai1, Viyaleta Davydzenka2, Casey Moffitt4, Nathaniel England2, Giovanni Barbera4, Rong Chen5, Da-Ting Lin4,6, Yun Li2,7
ORCID iDs: Yun Li
  1. Department of Mathematics and Statistics, University of Wyoming, 1000 E. University Ave, Laramie, WY 82071, USA
  2. Department of Zoology and Physiology, University of Wyoming, 1000 E. University Ave, Laramie, WY 82071, USA
  3. These authors contributed equally
  4. Intramural Research Program, National Institute on Drug Abuse, National Institutes of Health, 333 Cassell Drive, Baltimore, MD 21224, USA
  5. Department of Diagnostic Radiology and Nuclear Medicine, University of Maryla6nd School of Medicine, 100 N. Greene Street, Baltimore, MD 21201, USA
  6. The Solomon H. Snyder Department of Neuroscience, Johns Hopkins University School of Medicine, 725 N. Wolfe Street, Baltimore, MD 21205, USA
  7. Lead contact
Institutions: University of Wyoming (United States); National Institutes of Health (United States); National Institute on Drug Abuse (United States); Johns Hopkins University (United States)
Journal: Cell reports, volume 45, issue 8, article 117852
Dates: published online 14 August 2026; in print August 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1016/j.celrep.2026.117852 · PMID 42599799 · PMCID PMC13585029 · OpenAlex W7203486857
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: optical imaging (calcium, voltage, 2-photon) (modality), mouse (organism), autism (population), computational (subfield)
Methods: Statistics, Machine learning, Graphs, fMRI & imaging, Single-unit activity, calcium imaging, Smoothing, state filtering, decompositions
Keywords: Social behavior, Graph theory, Calcium imaging, prefrontal cortex, Autism, Machine Learning, Network Topology, Cp: Neuroscience
Topic: Autism Spectrum Disorder Research (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: NIA NIH HHS (R33 AG087909, R21 AG087909); Intramural Research Program; National Institute on Drug Abuse; NIGMS NIH HHS (P20 GM121310); National Institute on Aging (R21AG087909); National Institute of Neurological Disorders and Stroke (RF1NS129878-01); National Institutes of Health; NINDS NIH HHS (RF1 NS129878); National Institute of General Medical Sciences (5P20GM121310)
Citations: not cited yet (Europe PMC); 55 references in the paper

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.

Repositories

Its files are read in the Code ↔ Paper reader above, with 4 matches between paragraphs and lines of code.

Zenodo 21490732

License: CC-BY-4.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: “Data and code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: tidyverse (24 files), Plotly (18 files), caret (13 files), randomForest (12 files), pROC (5 files), easystats (2 files), Image Processing Toolbox (1 file), Statistics and Machine Learning Toolbox (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
46 files

liang-bo/AutoStereota

License: MIT
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 235aec16eb47a88d09cbd01f88369a2ad4d959bc, 25 April 2019
Languages: MATLAB (13), C/C++ (1)
Size: 36 files, 14 scripts
Software Heritage: not archived
Found in: the text, “Gradient-index (GRIN) lens implantation”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
16 files

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;
  • 59 scripts, each with its path and the digest of its content;
  • 4 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Code and data availability statement

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

  • it points to the authors' code: Zenodo 21490732
  • it says that the data are available on request
  • it says that the code is available on request

Read it in the paper: doi.org/10.1016/j.celrep.2026.117852.

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

  • Publisher: n/a → Cell Press

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 10 authors, 8 keywords, 9 funders, 51 references.

Cite

This paper

Liu, R., Zhang, Y., Lai, M., Davydzenka, V., Moffitt, C., England, N., Barbera, G., Chen, R., Lin, D.-T., & Li, Y. (2026). Graph theory identifies altered prefrontal microcircuit organization in Shank3 mice, a mouse Model of autism. Cell reports, 45(8), 117852. https://doi.org/10.1016/j.celrep.2026.117852

BibTeX

@article{liu2026graph,
author = {Liu, Rongsong and Zhang, Yan and Lai, Mallory and Davydzenka, Viyaleta and Moffitt, Casey and England, Nathaniel and Barbera, Giovanni and Chen, Rong and Lin, Da-Ting and Li, Yun},
title = {{Graph theory identifies altered prefrontal microcircuit organization in Shank3 mice, a mouse Model of autism}},
journal = {Cell reports},
year = {2026},
month = aug,
volume = {45},
number = {8},
pages = {117852},
publisher = {Cell Press},
issn = {2211-1247},
doi = {10.1016/j.celrep.2026.117852},
url = {https://doi.org/10.1016/j.celrep.2026.117852},
pmid = {42599799},
pmcid = {PMC13585029}
}

RIS

TY - JOUR
AU - Liu, Rongsong
AU - Zhang, Yan
AU - Lai, Mallory
AU - Davydzenka, Viyaleta
AU - Moffitt, Casey
AU - England, Nathaniel
AU - Barbera, Giovanni
AU - Chen, Rong
AU - Lin, Da-Ting
AU - Li, Yun
TI - Graph theory identifies altered prefrontal microcircuit organization in Shank3 mice, a mouse Model of autism
T2 - Cell reports
J2 - Cell Rep
PY - 2026
DA - 2026/08/14
VL - 45
IS - 8
SP - 117852
SN - 2211-1247
PB - Cell Press
DO - 10.1016/j.celrep.2026.117852
UR - https://doi.org/10.1016/j.celrep.2026.117852
LA - en
ER -

CSL-JSON

{
"id": "10.1016/j.celrep.2026.117852",
"type": "article-journal",
"title": "Graph theory identifies altered prefrontal microcircuit organization in Shank3 mice, a mouse Model of autism",
"container-title": "Cell reports",
"author": [
{
"family": "Liu",
"given": "Rongsong"
},
{
"family": "Zhang",
"given": "Yan"
},
{
"family": "Lai",
"given": "Mallory"
},
{
"family": "Davydzenka",
"given": "Viyaleta"
},
{
"family": "Moffitt",
"given": "Casey"
},
{
"family": "England",
"given": "Nathaniel"
},
{
"family": "Barbera",
"given": "Giovanni"
},
{
"family": "Chen",
"given": "Rong"
},
{
"family": "Lin",
"given": "Da-Ting"
},
{
"family": "Li",
"given": "Yun"
}
],
"container-title-short": "Cell Rep",
"volume": "45",
"issue": "8",
"page": "117852",
"DOI": "10.1016/j.celrep.2026.117852",
"PMID": "42599799",
"PMCID": "PMC13585029",
"ISSN": "2211-1247",
"publisher": "Cell Press",
"URL": "https://doi.org/10.1016/j.celrep.2026.117852",
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
14
]
]
}
}

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.1093/braincomms/fcag236 [code]
Dynamic, state-dependent characteristics of cognitive fluctuations in Lewy body dementia: a magnetoencephalography study.
Journal: Brain communications
In common: randomForest, pROC, caret, 3 other tools
[2] doi:10.1016/j.xpro.2026.104769
Protocol to improve gradient-index lens implantation in the mouse medial prefrontal cortex using NeuralGlider-assisted insertion.
Journal: STAR protocols
In common: mouse, 2 references, author Yun Li
[3] doi:10.1038/s42003-026-10957-8 [code]
Brain defence by the extracellular matrix protein Cochlin.
Journal: Communications biology
In common: randomForest, caret, Plotly, 2 other tools, mouse
[4] doi:10.7717/peerj.21426 [code]
Integrated transcriptomic identification and validation reveal key autophagy-associated biomarkers in sleep deprivation.
Journal: PeerJ
In common: randomForest, pROC, caret, 1 other tool, mouse
[5] doi:10.1126/sciadv.aec9291 [code]
Computational mechanisms of perception in autism revealed using games inspired by rodent operant tasks.
Journal: Science advances
In common: pROC, caret, easystats, 1 other tool, autism
[6] doi:10.1038/s41598-026-58505-y [code]
Remoteness sensitive theta network dynamics during early autobiographical memory access.
Journal: Scientific reports
In common: pROC, caret, Statistics and Machine Learning Toolbox, 1 other tool, 1 reference
[7] doi:10.1038/s41467-026-77170-3 [code]
DNA methylation profiling identifies long-range epigenetic silencing of clustered protocadherins as a key determinant of meningioma progression.
Journal: Nature communications
In common: randomForest, pROC, caret, 1 other tool
[8] doi:10.3390/ijms27156925 [code]
XGBoost-SHAP Interpretable Modeling Identifies and Validates an Eight-Gene Biomarker for Hepatic Encephalopathy Risk Prediction in Cirrhosis.
Journal: International journal of molecular sciences
In common: randomForest, pROC, caret, 1 other tool
[9] doi:10.1177/13872877261471049 [code]
Predicting future brain atrophy based on longitudinal MRI.
Journal: Journal of Alzheimer's disease : JAD
In common: randomForest, pROC, caret, 1 other tool
[10] doi:10.3390/ijms27125533 [code]
Discovery-Driven Plasma Proteomics Identifies a Multi-Protein Signature for Amyloid PET Positivity: A Machine Learning Analysis of the Bio-Hermes Cohort.
Journal: International journal of molecular sciences
In common: randomForest, pROC, caret, 1 other tool

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.