OSCR

Brain extraction for fixed tissue banking: a technical report.

Code ↔ Paper

The paper beside its authors' code: matches between them have not been computed for this paper yet.

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 · 208 lines · 8 KB · MIT

  1. # Load required libraries
  2. library(ggplot2)
  3. library(readr)
  4. library(dplyr)
  5. library(tidyr)
  6. cbPalette <- c("#999999", "#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7")
  7. # Load data
  8. df <- read_tsv("Brain Extraction Data and Stats - Raw Data Updated Anonymized.tsv")
  9. # Clean up column names
  10. names(df)[names(df) == "Case ID"] <- "Case_ID"
  11. names(df)[names(df) == "Perfusion?"] <- "Perfusion"
  12. names(df)[names(df) == "PMI (hours)"] <- "PMI_hours"
  13. names(df)[names(df) == "Soft Tissue Removal Time (minutes)"] <- "Soft_Tissue_Time"
  14. names(df)[names(df) == "Craniectomy Time (minutes)"] <- "Craniectomy_Time"
  15. names(df)[names(df) == "Dura Removal Time (minutes)"] <- "Dura_Time"
  16. names(df)[names(df) == "Brain Isolation Time (minutes)"] <- "Brain_Isolation_Time"
  17. names(df)[names(df) == "Total Removal Time (minutes)"] <- "Total_Time"
  18. names(df)[names(df) == "Traction Injury Count"] <- "Traction_Injuries"
  19. names(df)[names(df) == "Laceration Count"] <- "Lacerations"
  20. names(df)[names(df) == "Total Injuries"] <- "Total_Injuries"
  21. names(df)[names(df) == "Injury Level"] <- "Injury_Level"
  22. names(df)[names(df) == "PMI Length"] <- "PMI_Length"
  23. # Check it loaded correctly
  24. head(df)
  25. names(df)
  26. # ===== FIGURE Procedure Time Distribution =====
  27. # Reshape the data
  28. timing_long <- df %>%
  29. select(Case_ID, Soft_Tissue_Time, Craniectomy_Time, Dura_Time, Brain_Isolation_Time) %>%
  30. pivot_longer(cols = c(Soft_Tissue_Time, Craniectomy_Time, Dura_Time, Brain_Isolation_Time),
  31. names_to = "Step",
  32. values_to = "Time") %>%
  33. mutate(Step = case_when(
  34. Step == "Soft_Tissue_Time" ~ "Soft Tissue",
  35. Step == "Craniectomy_Time" ~ "Craniectomy",
  36. Step == "Dura_Time" ~ "Dura Removal",
  37. Step == "Brain_Isolation_Time" ~ "Brain Isolation"
  38. )) %>%
  39. mutate(Step = factor(Step, levels = c("Soft Tissue", "Craniectomy", "Dura Removal", "Brain Isolation"))) %>%
  40. filter(Time <= 75)
  41. # Create the plot
  42. ggplot(timing_long, aes(x = Step, y = Time, fill = Step, color = Step)) +
  43. geom_violin(alpha = 0.7) +
  44. geom_jitter(width = 0.2, alpha = 0.5) +
  45. stat_summary(fun = mean, geom = "crossbar", width = 0.5, color = "#FF7F7F", linewidth = 0.3) +
  46. labs(
  47. title = "Time Distribution by Procedure Step",
  48. x = "Procedure Step",
  49. y = "Time (minutes)"
  50. ) +
  51. scale_fill_manual(values = cbPalette[1:4]) +
  52. scale_color_manual(values = cbPalette[1:4]) +
  53. theme_bw() +
  54. theme(
  55. plot.title = element_text(face = "bold", hjust = 0.5),
  56. axis.text.x = element_text(angle = 45, hjust = 1, size = 10),
  57. axis.text.y = element_text(size = 11),
  58. legend.position = "none"
  59. )
  60. ggplot(df, aes(x = PMI_hours, y = Total_Time)) +
  61. geom_point(alpha = 0.6, size = 2, color = "darkblue") +
  62. geom_smooth(method = "lm", se = TRUE, color = "#FF7F7F", linewidth = 1) +
  63. labs(
  64. x = "Post-Mortem Interval (Hours)",
  65. y = "Total Removal Time (Minutes)"
  66. ) +
  67. scale_x_log10() + # This creates the log scale
  68. theme_bw()
  69. ## Learning curve analysis
  70. # Filter out Tech 4 (who had significant experience), keep techs with 10+ cases, and create sequential case numbers
  71. df_sequential <- df %>%
  72. filter(Tech != "Tech 4") %>%
  73. group_by(Tech) %>%
  74. filter(n() >= 10) %>%
  75. arrange(Tech, Case_ID) %>%
  76. mutate(Case_Number = row_number()) %>%
  77. ungroup() %>%
  78. # Assign anonymous tech numbers
  79. mutate(Tech_Number = paste0("Tech ", as.numeric(factor(Tech, levels = unique(Tech)))))
  80. # Plot learning curves - cleaner version with facets
  81. ggplot(df_sequential, aes(x = Case_Number, y = Total_Time)) +
  82. geom_point(alpha = 0.5, size = 1.5) +
  83. geom_smooth(method = "loess", se = TRUE, color = "#0072B2", fill = "#0072B2", alpha = 0.2) +
  84. facet_wrap(~Tech_Number, scales = "free_x") +
  85. labs(
  86. x = "Sequential Case Number",
  87. y = "Total Removal Time (minutes)"
  88. ) +
  89. scale_x_continuous(limits = c(0, NA), expand = expansion(mult = c(0, 0.05))) +
  90. theme_minimal() +
  91. theme(
  92. panel.spacing = unit(1.5, "lines"),
  93. strip.text = element_text(face = "bold")
  94. )
  95. # Sample size
  96. cat("Total cases: n =", nrow(df), "\n\n")
  97. # Craniectomy Time
  98. cat("CRANIECTOMY TIME:\n")
  99. cat(" Mean:", round(mean(df$Craniectomy_Time), 1), "minutes\n")
  100. cat(" SD:", round(sd(df$Craniectomy_Time), 1), "minutes\n")
  101. cat(" Range:", min(df$Craniectomy_Time), "-", max(df$Craniectomy_Time), "minutes\n")
  102. # Soft Tissue Removal Time
  103. cat("SOFT TISSUE REMOVAL TIME:\n")
  104. cat(" Mean:", round(mean(df$Soft_Tissue_Time), 1), "minutes\n")
  105. cat(" SD:", round(sd(df$Soft_Tissue_Time), 1), "minutes\n")
  106. cat(" Range:", min(df$Soft_Tissue_Time), "-", max(df$Soft_Tissue_Time), "minutes\n\n")
  107. # Dura Removal Time
  108. cat("DURA REMOVAL TIME:\n")
  109. cat(" Mean:", round(mean(df$Dura_Time), 1), "minutes\n")
  110. cat(" SD:", round(sd(df$Dura_Time), 1), "minutes\n")
  111. cat(" Range:", min(df$Dura_Time), "-", max(df$Dura_Time), "minutes\n\n")
  112. # Brain Isolation Time
  113. cat("BRAIN ISOLATION TIME:\n")
  114. cat(" Mean:", round(mean(df$Brain_Isolation_Time), 1), "minutes\n")
  115. cat(" SD:", round(sd(df$Brain_Isolation_Time), 1), "minutes\n")
  116. cat(" Range:", min(df$Brain_Isolation_Time), "-", max(df$Brain_Isolation_Time), "minutes\n\n")
  117. # Total Procedure Time
  118. cat("TOTAL PROCEDURE TIME:\n")
  119. cat(" Mean:", round(mean(df$Total_Time), 1), "minutes\n")
  120. cat(" SD:", round(sd(df$Total_Time), 1), "minutes\n")
  121. cat(" Range:", min(df$Total_Time), "-", max(df$Total_Time), "minutes\n\n")
  122. # PMI statistics
  123. cat("PMI STATISTICS:\n")
  124. cat(" Mean:", round(mean(df$PMI_hours), 1), "hours\n")
  125. cat(" Median:", round(median(df$PMI_hours), 1), "hours\n")
  126. cat(" Range:", round(min(df$PMI_hours), 1), "-", round(max(df$PMI_hours), 1), "hours\n\n")
  127. cor.test(df$Total_Time, df$PMI_hours, method = "spearman")
  128. cat("=== TISSUE DAMAGE STATISTICS ===\n\n")
  129. # Lacerations
  130. cat("LACERATIONS:\n")
  131. cat(" Mean:", round(mean(df$Lacerations), 2), "\n")
  132. cat(" SD:", round(sd(df$Lacerations), 2), "\n")
  133. cat(" Range:", min(df$Lacerations), "-", max(df$Lacerations), "\n")
  134. cat(" Cases with 1+:", sum(df$Lacerations > 0),
  135. "(", round(100*sum(df$Lacerations > 0)/nrow(df), 1), "%)\n")
  136. # Traction Injuries
  137. cat("TRACTION INJURIES:\n")
  138. cat(" Mean:", round(mean(df$Traction_Injuries), 2), "\n")
  139. cat(" SD:", round(sd(df$Traction_Injuries), 2), "\n")
  140. cat(" Range:", min(df$Traction_Injuries), "-", max(df$Traction_Injuries), "\n")
  141. cat(" Cases with 1+:", sum(df$Traction_Injuries >= 1),
  142. "(", round(100*sum(df$Traction_Injuries >= 1)/nrow(df), 1), "%)\n")
  143. # ===== TECHNICIAN SUMMARY TABLE =====
  144. cat("=== TECHNICIAN COMPARISON: TIME AND LACERATIONS ===\n\n")
  145. tech_summary <- df %>%
  146. group_by(Tech) %>%
  147. summarise(
  148. N_Cases = n(),
  149. Time_Mean = mean(Total_Time),
  150. Time_Median = median(Total_Time),
  151. Time_SD = sd(Total_Time),
  152. Lac_Mean = mean(Lacerations),
  153. Lac_Total = sum(Lacerations),
  154. Trac_Mean = mean(Traction_Injuries),
  155. TotInj_Mean = mean(Total_Injuries),
  156. PMI_Median = median(PMI_hours)
  157. ) %>%
  158. arrange(desc(N_Cases))
  159. print(tech_summary, n = Inf)
  160. # ===== STATISTICAL TESTS =====
  161. cat("\n\n=== STATISTICAL TESTS ===\n\n")
  162. # Filter to technicians with >= 5 cases
  163. techs_5plus <- tech_summary %>% filter(N_Cases >= 5) %>% pull(Tech)
  164. df_filtered <- df %>% filter(Tech %in% techs_5plus)
  165. # Kruskal-Wallis test for lacerations across technicians
  166. kw_lac <- kruskal.test(Lacerations ~ Tech, data = df_filtered)
  167. cat("Kruskal-Wallis test for lacerations across technicians (n>=5):\n")
  168. cat(sprintf(" H = %.2f, p = %.4f\n", kw_lac$statistic, kw_lac$p.value))
  169. # Kruskal-Wallis test for total time across technicians
  170. kw_time <- kruskal.test(Total_Time ~ Tech, data = df_filtered)
  171. cat("\nKruskal-Wallis test for total time across technicians (n>=5):\n")
  172. cat(sprintf(" H = %.2f, p = %.4f\n", kw_time$statistic, kw_time$p.value))
  173. # ===== TECH 4 =====
  174. tech4 <- df %>% filter(Tech == "Tech 4")
  175. cat(sprintf("Tech 4 (n=%d):\n", nrow(tech4)))
  176. cat(sprintf(" Time: mean=%.1f, median=%.1f\n", mean(tech4$Total_Time), median(tech4$Total_Time)))
  177. cat(sprintf(" Lacerations: mean=%.2f, total=%d\n", mean(tech4$Lacerations), sum(tech4$Lacerations)))

figures_code.R at commit 937e25d, under MIT · at the source

Overview

Authors: Mads Wolf1, Autumn Beck1, Laura Paredes1, Sarah Darcy1, Alexander Parra1, Gabriel A. Taylor1, Macy Garrood1, Emma L. Thorn2,3, Claudia De Sanctis2,3, John F. Crary2,3, Kurt Farrell2,3, Andrew T. McKenzie1
  1. Apex Neuroscience, Salem, Oregon, USA
  2. Friedman Brain Institute, Departments of Pathology, Neuroscience, and Artificial Intelligence & Human Health, Icahn School of Medicine at Mount Sinai, New York, New York, USA
  3. Neuropathology Brain Bank & Research Core and Ronald M. Loeb Center for Alzheimer's Disease, Icahn School of Medicine at Mount Sinai, New York, New York, USA
Institutions: Icahn School of Medicine at Mount Sinai (United States)
Journal: Free neuropathology, volume 7, article 11
Dates: received 2 March 2026; accepted 15 May 2026; published online 26 May 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.17879/freeneuropathology-2026-9411 · PMID 42222515 · PMCID PMC13217454 · OpenAlex W7162530775
Open access: green, a free copy (OpenAlex)
Status: code verified
Categories: histology / microscopy (modality)
Keywords: Brain extraction, Tissue preservation, Brain banking, Immersion fixation, Postmortem changes
Topic: Anatomy and Medical Technology (Biomedical Engineering, Engineering), according to OpenAlex
Citations: not cited yet (Europe PMC); 33 references in the paper

Abstract

Brain banking enables the study of human neural tissue and is essential for research on disease, physiology, and neuroanatomy. An essential step for whole brain studies is the extraction of the brain from the skull. Yet detailed technical descriptions of brain removal are rare, perhaps contributing to the artifactual tissue disruption sometimes observed as a result of the procedure. Here, we describe a method for whole brain extraction that could be implemented in the context of a whole-body donation, focused on the use case of fixed tissue banking. The method involves a sequential craniectomy that uses both circumferential and midline sagittal cuts, followed by a posterior approach to cutting the dura. We report the application of this protocol across n = 105 human whole-body donors. We document the time required for each procedural step and the frequency of craniectomy artifacts and skull edge artifacts at the brain surface. When the brain tissue is particularly soft, we also describe the potential use of in situ immersion fixation to increase tissue stiffness before removal, finding however that this also slows the diffusion of chemicals into the interior of the brain. Our experience suggests that the effectiveness of brain extraction can be improved via procedural optimizations. Technicians can become comfortable with the method after approximately 5–10 cases. We anticipate that improving brain extraction quality may support downstream work in the development of diagnostics and treatments for neurological and psychiatric disease.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above.

andymckenzie/Brain_extraction

License: MIT
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: 937e25d1c7fe9618be2d342d1994bae33bbf8eef, 2 March 2026
Languages: R (1)
Size: 3 files, 1 script
Software Heritage: not archived
Found in: “Data availability”
Holds: license file
Not found: README, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: ggplot2 (1 file), tidyverse (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
2 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:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 1 script, each with its path and the digest of its content;
  • no match between paragraphs and code yet;
  • 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

Data availability

Whole slide image data can be accessed in a public repository on Zenodo, available here: https://zenodo.org/communities/brainextraction. Code and data is available at https://github.com/andymckenzie/Brain_extraction.

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, 28 September 2026: the first record

Recorded: type, language, journal, volume, pages, dates, 12 authors, 5 keywords, 32 references.

Cite

This paper

Wolf, M., Beck, A., Paredes, L., Darcy, S., Parra, A., Taylor, G. A., Garrood, M., Thorn, E. L., Sanctis, C. D., Crary, J. F., Farrell, K., & McKenzie, A. T. (2026). Brain extraction for fixed tissue banking: a technical report. Free neuropathology, 7, 11. https://doi.org/10.17879/freeneuropathology-2026-9411

BibTeX

@article{wolf2026brain,
author = {Wolf, Mads and Beck, Autumn and Paredes, Laura and Darcy, Sarah and Parra, Alexander and Taylor, Gabriel A. and Garrood, Macy and Thorn, Emma L. and Sanctis, Claudia De and Crary, John F. and Farrell, Kurt and McKenzie, Andrew T.},
title = {{Brain extraction for fixed tissue banking: a technical report}},
journal = {Free neuropathology},
year = {2026},
month = may,
volume = {7},
pages = {11},
publisher = {Free Neuropathology General Assembly},
issn = {2699-4445},
doi = {10.17879/freeneuropathology-2026-9411},
url = {https://doi.org/10.17879/freeneuropathology-2026-9411},
pmid = {42222515},
pmcid = {PMC13217454}
}

RIS

TY - JOUR
AU - Wolf, Mads
AU - Beck, Autumn
AU - Paredes, Laura
AU - Darcy, Sarah
AU - Parra, Alexander
AU - Taylor, Gabriel A.
AU - Garrood, Macy
AU - Thorn, Emma L.
AU - Sanctis, Claudia De
AU - Crary, John F.
AU - Farrell, Kurt
AU - McKenzie, Andrew T.
TI - Brain extraction for fixed tissue banking: a technical report
T2 - Free neuropathology
J2 - Free Neuropathol
PY - 2026
DA - 2026/05/26
VL - 7
SP - 11
SN - 2699-4445
PB - Free Neuropathology General Assembly
DO - 10.17879/freeneuropathology-2026-9411
UR - https://doi.org/10.17879/freeneuropathology-2026-9411
LA - en
ER -

CSL-JSON

{
"id": "10.17879/freeneuropathology-2026-9411",
"type": "article-journal",
"title": "Brain extraction for fixed tissue banking: a technical report",
"container-title": "Free neuropathology",
"author": [
{
"family": "Wolf",
"given": "Mads"
},
{
"family": "Beck",
"given": "Autumn"
},
{
"family": "Paredes",
"given": "Laura"
},
{
"family": "Darcy",
"given": "Sarah"
},
{
"family": "Parra",
"given": "Alexander"
},
{
"family": "Taylor",
"given": "Gabriel A."
},
{
"family": "Garrood",
"given": "Macy"
},
{
"family": "Thorn",
"given": "Emma L."
},
{
"family": "Sanctis",
"given": "Claudia De"
},
{
"family": "Crary",
"given": "John F."
},
{
"family": "Farrell",
"given": "Kurt"
},
{
"family": "McKenzie",
"given": "Andrew T."
}
],
"container-title-short": "Free Neuropathol",
"volume": "7",
"page": "11",
"DOI": "10.17879/freeneuropathology-2026-9411",
"PMID": "42222515",
"PMCID": "PMC13217454",
"ISSN": "2699-4445",
"publisher": "Free Neuropathology General Assembly",
"URL": "https://doi.org/10.17879/freeneuropathology-2026-9411",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
26
]
]
}
}

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.1371/journal.pone.0344932 [code]
Cryopreservation of aldehyde-fixed whole brains.
Journal: PloS one
In common: ggplot2, 4 references
[2] doi:10.3390/brainsci16080882 [code]
How Long Is the Brain Perfusable After Global Ischemia? A Systematic Review.
Journal: Brain sciences
In common: ggplot2, tidyverse, 3 references
[3] doi:10.17879/freeneuropathology-2026-9593
Expansion microscopy of banked brain tissue.
Journal: Free neuropathology
In common: histology / microscopy, 2 references
[4] doi:10.1038/s41467-026-72845-3 [code]
The membrane-to-cortex distance regulates mDia1 activity to control cortical mechanics.
Journal: Nature communications
In common: ggplot2, tidyverse, histology / microscopy
[5] doi:10.1093/neuonc/noag119 [code]
Single-nucleus profiling of postmortem diffuse midline gliomas identifies mitochondrial biogenesis as a resistance mechanism to imipridone therapy.
Journal: Neuro-oncology
In common: ggplot2, tidyverse, histology / microscopy
[6] doi:10.1038/s41588-026-02722-8 [code]
A multiancestry polygenic risk score for Alzheimer's disease is associated with cognitive decline and neuropathological hallmarks in diverse populations.
Journal: Nature genetics
In common: ggplot2, tidyverse, histology / microscopy
[7] doi:10.1038/s41467-026-76688-w [code]
Transcriptome profiling of human hypothalamic agouti-related protein and proopiomelanocortin neurons regulating energy homeostasis.
Journal: Nature communications
In common: ggplot2, tidyverse, histology / microscopy
[8] doi:10.1093/braincomms/fcag239 [code]
Extracellular matrix remodelling in degenerative cervical myelopathy.
Journal: Brain communications
In common: ggplot2, tidyverse, histology / microscopy
[9] doi:10.1371/journal.pone.0353790 [code]
Do common dopaminergic variants modulate processing speed in cognitive aging? A longitudinal candidate gene study.
Journal: PloS one
In common: ggplot2, tidyverse, histology / microscopy
[10] doi:10.1093/braincomms/fcag272 [code]
Strenuous physical activity is associated with a younger age of amyotrophic lateral sclerosis onset in two independent cohorts.
Journal: Brain communications
In common: ggplot2, tidyverse, histology / microscopy

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.