Experimental quality control induces changes in Allen mouse brain connectomes.
The 15 matches · 3 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
- [1] § Methods › Defining injection density and projection density ↔ before_manual_qc/download_knox_conn_data.sh, the whole file · a weak match · score 0.79 · injection fraction, WT experiments, injection density, Allen API, projection density, downloaded
- [2] § Methods › Defining injection density and projection density ↔ before_manual_qc/multiply_threshold_inj_proj.sh, the whole file · a weak match · score 0.77 · injection fraction, WT experiments, injection density, Allen API, projection density, tracer
- [3] § Methods › Nested leave-one-out cross-validation analysis ↔ run-all-after-manual-QC.sh, lines 46–123 · score 0.70 · nested homogeneous, nested voxel, compile, connectivity models, sensitivity, py
- [4] § Methods › Automated quality control ↔ before_manual_qc/create_automated_qc_csv.R, lines 48–94 · score 0.67 · cerebral aqueduct, injection density, thin, misalignment, ventricular, manual QC
- [5] § Methods › Manual quality control ↔ before_manual_qc/make_qc_images_bin_threshold.sh, lines 41–122 · score 0.64 · QC images, slice images, projection densities, sh, cropping, manual QC
- [6] § Methods › Defining injection density and projection density ↔ before_manual_qc/multiply_threshold_inj_proj.sh, the whole file · a weak match · score 0.61 · injection fraction, injection density, projection density, segmented, connectomes
- [7] § Methods › Automated quality control ↔ after_manual_qc/overall_qc_exclusion.R, lines 1–43 · score 0.61 · robust outlier filtering, ventricular voxels, skewness, threshold, injection
- [8] § Methods › Rebuilding the regionalized voxel and homogeneous model connectomes ↔ after_manual_qc/build_model_new_excluded.py, lines 47–151 · score 0.59 · build model, normalized connection strengths, hyperparameter, weights, fitted, rebuilt
- [9] § Methods › Rebuilding the regionalized voxel and homogeneous model connectomes ↔ run-all-after-manual-QC.sh, lines 1–44 · score 0.58 · mouse_connectivity_models, Allen API, Knox connectome, rebuild, rebuilt, QC
- [10] § Methods › Nested leave-one-out cross-validation analysis ↔ after_manual_qc/run_nested_homogeneous_new_excluded.py, lines 35–48 · score 0.57 · nested homogeneous, cross validation, error, models, QC
- [11] § Methods › Rich club and community detection analysis ↔ graph_theory/rich_club_connectome_bin.m, lines 1–5 · score 0.57 · Brain Connectivity Toolbox, Rich Club, MATLAB
- [12] § Methods › Rebuilding the regionalized voxel and homogeneous model connectomes ↔ run-all-after-manual-QC.sh, lines 46–123 · score 0.51 · hyperparameter selection, py, homogeneous, Rebuilding, rebuilt, model
- [13] § Results › Manual QC reveals spatially and qualitatively diverse failures ↔ after_manual_qc/overall_qc_exclusion.R, lines 181–257 · score 0.51 · cortical leaking, Manual QC, nonspecific, misaligned, removal, injections
- [14] § Methods › Nested leave-one-out cross-validation analysis ↔ after_manual_qc/run_hyperparameter_selection_new_excluded.py, lines 35–56 · score 0.51 · voxel model, optimal, hyperparameter, fitted, kernel, Nested
- [15] § Methods › Rich club and community detection analysis ↔ visualizations/figure_5.R, lines 297–353 · score 0.51 · Louvain community assignments, rich club, connections
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
Shell · 123 lines · 5.5 KB · no license · 3 matches
- #!/bin/bash
- source load-all-modules.sh
- set -euo pipefail
- ##################################################################################################
- cd after_manual_qc
- #### NOTE: All scripts here run with injection thresholds of 0.5 and projection thresholds of 0.1###
- #####THIS STEP REQUIRES RATINGS. Can skip and using ratings from Nathan et al., 2026, which are in harmonized_ratings
- #../derivatives/knox_inj/bin0.5/; ../derivatives/knox_proj/bin0.5/;
- #./derivatives/knox_proj/bin0.5/allen_api_not_in_knox; ../derivatives/knox_proj/bin0.5/allen_api_not_in_knox
- #Rscript compare_manual_qc_both_raters.R
- ###############START HERE########################################
- #################################################################
- #####run with different binarization thresholds (for automated QC)##
- Rscript overall_qc_exclusion.R 0.4 0.05
- Rscript overall_qc_exclusion.R 0.5 0.1
- Rscript overall_qc_exclusion.R 0.6 0.2
- ##################################################################################################
- ###very slight modifications needed to mouse_connectivity_models to get things running (legacy python)
- ###single change to line 5 of scorers.py
- cp scorers_updated.py ../mouse_connectivity_models/paper/figures/model_comparison/helpers/scorers.py
- ./patch_api_timeout.sh ###increase time limits for file loads to allow download of all conn. files
- oh_rgn_list="../../preprocessed/allen_template_inputs/oh_connectome_rgn_numbers_ccfv3.txt"
- knox_region_list="../../preprocessed/allen_template_inputs/knox_connectome_rgn_numbers_ccfv3.txt"
- ###rebuild connectomes with the original list of experiments to exclude from Knox et al., 2018
- source ../.venv/bin/activate
- ./rebuild_oh_connectome.sh "experiments_exclude.json" ${oh_rgn_list} "original"
- ./rebuild_oh_connectome.sh "experiments_exclude.json" ${knox_region_list} "original_291"
- ./rebuild_knox_connectome.sh "experiments_exclude.json" "original"
- ./rebuild_knox_connectome.sh "experiments_exclude.json" "original_oh_211_regions"
- ###rebuild connectomes with increased list of experiments to exclude post-QC
- ./rebuild_oh_connectome.sh "experiments_exclude_updated.json" ${oh_rgn_list} "rebuilt"
- ./rebuild_oh_connectome.sh "experiments_exclude_updated.json" ${knox_region_list} "rebuilt_291"
- ./rebuild_knox_connectome.sh "experiments_exclude_updated.json" "rebuilt" ##automatically writes out 291 regions
- ./rebuild_knox_connectome.sh "experiments_exclude_updated.json" "rebuilt_oh_211_regions" ##automatically writes out 211 rgns from Oh et al.
- ##################SENSITIVITY ANALYSES############################
- ###rebuild connectomes with automated-only experiment inclusions
- ./rebuild_oh_connectome.sh "experiments_exclude_updated_automated_only.json" ${oh_rgn_list} "rebuilt_auto"
- ./rebuild_knox_connectome.sh "experiments_exclude_updated_automated_only.json" "rebuilt_auto"
- ##rebuild connectomes with different number of automated lower outliers for inj/proj voxel counts###
- ./rebuild_oh_connectome.sh "experiments_exclude_updated_auto_inj0.5_proj0.1_lower_outliers_6.json" ${oh_rgn_list} "rebuilt_lo_6"
- ./rebuild_knox_connectome.sh "experiments_exclude_updated_auto_inj0.5_proj0.1_lower_outliers_6.json" "rebuilt_lo_6"
- ./rebuild_oh_connectome.sh "experiments_exclude_updated_auto_inj0.5_proj0.1_lower_outliers_8.json" ${oh_rgn_list} "rebuilt_lo_8"
- ./rebuild_knox_connectome.sh "experiments_exclude_updated_auto_inj0.5_proj0.1_lower_outliers_8.json" "rebuilt_lo_8"
- ############Leave-One-Out Cross-Validation Analyses from Knox et al.##############
- ###this step will take a while
- python run_hyperparameter_selection_new_excluded.py
- python run_nested_voxel_new_excluded.py
- python run_nested_homogeneous_new_excluded.py
- ###move old table (if it hasn't already been moved)
- if [ ! -f "../mouse_connectivity_models/paper/figures/model_comparison/output/cv_results_voxel-standard_homogeneous-standard-original.csv" ]; then
- mv ../mouse_connectivity_models/paper/figures/model_comparison/output/cv_results_voxel-standard_homogeneous-standard.csv \
- ../mouse_connectivity_models/paper/figures/model_comparison/output/cv_results_voxel-standard_homogeneous-standard-original.csv
- fi
- python ../mouse_connectivity_models/paper/figures/model_comparison/compile_table.py
- #################################################
- #############graph theory analyses###############
- cd ..
- mkdir -p ../derivatives/regionalized_connectomes/
- mkdir -p ../derivatives/rich_club/
- mkdir -p ../derivatives/community_louvain/
- cd graph_theory
- Rscript process_flip_regionalized_connectomes.R
- matlab -batch "dbstop if error; rich_club_connectome_bin"
- matlab -batch "dbstop if error; community_connectome_bin"
- ###########visualizations##########################
- cd ..
- mkdir -p figures
- mkdir -p figures/oh/
- mkdir -p "../derivatives/excluded_tracer_aggregate_volumes/"
- cd visualizations/
- ###misc - manually fill in experiments in query.csv with missing injection regions (available on website)
- Rscript fill_in_missing_knox_tracer_regions.R
- Rscript figure_1_workflow.R
- Rscript figure_2.R
- Rscript figure_3.R
- ##visualize each combination of thresholds and connectome models
- Rscript supp_fig_major_div_connectomes.R "knox" 0.2
- Rscript supp_fig_major_div_connectomes.R "knox" 0.05
- Rscript supp_fig_major_div_connectomes.R "oh" 0.2
- Rscript supp_fig_major_div_connectomes.R "oh" 0.05
- Rscript figure_4.R "knox" 0.2
- Rscript figure_4.R "oh" 0.2
- Rscript figure_4.R "knox" 0.05
- Rscript figure_4.R "oh" 0.05
- Rscript figure_5.R
- ####compare LOOCV tables (Knox et al. vs. post-QC)####
- Rscript compare_error_tables.R
- ###additional sensitivity analyses added
- Rscript sensitivity_analysis.R
run-all-after-manual-QC.sh at commit df87f4e, no license · at the source
Overview
- Cerebral Imaging Center, Douglas Mental Health University Institute, Montréal, QC, Canada
- Integrated Program in Neuroscience, McGill University, Montréal, QC, Canada
- Department of Psychiatry, McGill University, Montréal, Canada
- Department of Radiology, Cumming School of Medicine, University of Calgary, Calgary, AB, Canada
- Experimental Imaging Centre, Cumming School of Medicine, University of Calgary, Calgary, AB, Canada
- Department of Biological & Biomedical Engineering, McGill University, Montréal, Canada
Abstract
The Allen Mouse Brain Connectivity Atlas (AMBCA) is widely used to represent structural connectivity in the mouse brain. The AMBCA consists of tracer injection experiments where neuronal projections axonally connected to the initial injection site are labeled. The resulting whole-brain structural connectomes, derived from a subset of these experiments in C57BL/
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 15 matches between paragraphs and lines of code.
vik16nathan/allen_connectome_qc
df87f4e22d1c1b8407fc2d5bfc6c781e93c8a243, 10 August 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
40 files
- after_manual_qc/
build_homogeneous_model_ , Python, 111 linesnew_excluded.py - after_manual_qc/
build_model_new_excluded , Python, 155 lines, 1 match.py - after_manual_qc/
compare_manual_qc_both_r , R, 97 linesaters.R - after_manual_qc/
model_data_updated.py , Python, 86 lines - after_manual_qc/
overall_qc_exclusion.R , R, 405 lines, 2 matches - after_manual_qc/
patch_api_timeout.sh , Shell, 37 lines - after_manual_qc/
rebuild_knox_connectome. , Shell, 13 linessh - after_manual_qc/
rebuild_oh_connectome.sh , Shell, 14 lines - after_manual_qc/
run_hyperparameter_selec , Python, 90 lines, 1 matchtion_new_excluded.py - after_manual_qc/
run_nested_homogeneous_n , Python, 92 lines, 1 matchew_excluded.py - after_manual_qc/
run_nested_voxel_new_exc , Python, 93 linesluded.py - after_manual_qc/
scorers_updated.py , Python, 129 lines - before_manual_qc/
create_automated_qc_csv. , R, 199 lines, 1 matchR - before_manual_qc/
download_knox_conn_data. , Shell, 78 lines, 1 matchsh - before_manual_qc/
download_process_allen_t , Shell, 20 linesemplate_inputs.sh - before_manual_qc/
make_qc_images_bin_thres , Shell, 122 lines, 1 matchhold.sh - before_manual_qc/
make_slice_images.sh , Shell, 470 lines - before_manual_qc/
multiply_threshold_inj_p , Shell, 58 lines, 2 matchesroj.sh - before_manual_qc/
patch_api_timeout.sh , Shell, 36 lines - before_manual_qc/
transform_space.py , Python, 203 lines - graph_theory/
call_randind.py , Python, 91 lines - graph_theory/
community_connectome_bin , MATLAB, 237 lines.m - graph_theory/
process_flip_regionalize , R, 204 linesd_connectomes.R - graph_theory/
rich_club_connectome_bin , MATLAB, 141 lines, 1 match.m - load-all-modules.sh, Shell, 7 lines
- make_slice_images.sh, Shell, 470 lines
- run-all-after-manual-QC.
sh , Shell, 123 lines, 3 matches - run-all-before-manual-QC
.sh , Shell, 31 lines - set-up-environment-dnp.s
h , Shell, 43 lines - transform_space.py, Python, 203 lines
- visualizations/
compare_error_tables.R , R, 53 lines - visualizations/
figure_1_workflow.R , R, 237 lines - visualizations/
figure_2.R , R, 472 lines - visualizations/
figure_3.R , R, 678 lines - visualizations/
figure_4.R , R, 445 lines - visualizations/
figure_5.R , R, 507 lines, 1 match - visualizations/
fill_in_missing_knox_tra , R, 35 linescer_regions.R - visualizations/
sensitivity_analysis.R , R, 563 lines - visualizations/
supp_fig_major_div_conne , R, 787 linesctomes.R - README.md, Text, 74 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 39 scripts, each with its path and the digest of its content;
- 15 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 and Code Availability
All code is stored on 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 Douglas Foundation; Canadian Institutes of Health Research; Fonds de Recherche du Québec - Santé
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 6 authors, 4 keywords, 72 references.
Cite
This paper
Nathan, V., Tullo, S., Herrera-Portillo, L., Devenyi, G. A., Yee, Y., & Chakravarty, M. M. (2026). Experimental quality control induces changes in Allen mouse brain connectomes. Imaging neuroscience (Cambridge, Mass.), 4, IMAG.a.1310. https://
BibTeX
@article{nathan2026exper
author = {Nathan, Vikram and Tullo, Stephanie and Herrera-Portillo, Lizette and Devenyi, Gabriel A and Yee, Yohan and Chakravarty, M Mallar},
title = {{Experimental quality control induces changes in Allen mouse brain connectomes}},
journal = {Imaging neuroscience (Cambridge, Mass.)},
year = {2026},
month = jul,
volume = {4},
pages = {IMAG.a.1310},
publisher = {MIT Press},
issn = {2837-6056},
doi = {10.1162/
url = {https://
pmid = {42529501},
pmcid = {PMC13417618}
}
RIS
TY - JOUR
AU - Nathan, Vikram
AU - Tullo, Stephanie
AU - Herrera-Portillo, Lizette
AU - Devenyi, Gabriel A
AU - Yee, Yohan
AU - Chakravarty, M Mallar
TI - Experimental quality control induces changes in Allen mouse brain connectomes
T2 - Imaging neuroscience (Cambridge, Mass.)
J2 - Imaging Neurosci (Camb)
PY - 2026
DA - 2026/
VL - 4
SP - IMAG.a.1310
SN - 2837-6056
PB - MIT Press
DO - 10.1162/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1162/
"type": "article-journal",
"title": "Experimental quality control induces changes in Allen mouse brain connectomes",
"container-title": "Imaging neuroscience (Cambridge, Mass.)",
"author": [
{
"family": "Nathan",
"given": "Vikram"
},
{
"family": "Tullo",
"given": "Stephanie"
},
{
"family": "Herrera-Portillo",
"given": "Lizette"
},
{
"family": "Devenyi",
"given": "Gabriel A"
},
{
"family": "Yee",
"given": "Yohan"
},
{
"family": "Chakravarty",
"given": "M Mallar"
}
],
"container-title-short":
"volume": "4",
"page": "IMAG.a.1310",
"DOI": "10.1162/
"PMID": "42529501",
"PMCID": "PMC13417618",
"ISSN": "2837-6056",
"publisher": "MIT Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
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/s41593-026-02253-9 [code]
- Genoarchitecture and input-output organization of the mouse basal ganglia and thalamic parafascicular nucleus.Journal: Nature neuroscienceIn common: AllenSDK, scikit-learn, pandas, 2 other tools, mouse, 5 references
- [2] doi:10.1038/s41467-026-75723-0 [code]
- Spatial transcriptomics reveals distinct cell type dynamics following opioid dependence in female mice with the common human μ-opioid receptor variant Oprm1 A118G.Journal: Nature communicationsIn common: AllenSDK, pheatmap, patchwork, 6 other tools, mouse, 1 reference
- [3] doi:10.1038/s41467-026-76812-w [code]
- Assessing molecular, cellular and transcriptomic bases of laminar perfusion and cytoarchitecture coupling in the human cortex.Journal: Nature communicationsIn common: Brain Connectivity Toolbox, ANTs, pheatmap, 7 other tools
- [4] doi:10.3389/fnins.2026.1843319 [code]
- Humanized APOE mouse brain volume increases over age irrespective of sex and APOE genotype: implications for translational validity to the human.Journal: Frontiers in neuroscienceIn common: ANTs, SciPy, NumPy, mouse, 5 references
- [5] doi:10.1162/netn.a.546 [code]
- Cortical similarity networks in the rat brain: Postnatal development and sensitivity to early life stress.Journal: Network neuroscience (Cambridge, Mass.)In common: patchwork, tidyverse, pandas, 2 other tools, 4 references
- [6] doi:10.1038/s41593-026-02205-3 [code]
- Competitive interactions shape mammalian brain network dynamics and computation.Journal: Nature neuroscienceIn common: Brain Connectivity Toolbox, ANTs, scikit-learn, 3 other tools, mouse, 2 references
- [7] doi:10.1126/sciadv.adq6577 [code]
- Autism-like phenotypes and increased NMDAR2D expression in mice with KDM5B histone lysine demethylase deficiency.Journal: Science advancesIn common: pandas, SciPy, NumPy, mouse, 5 references
- [8] doi:10.1038/s41467-026-76939-w [code]
- HIPPIE: a generative model for electrophysiological analysis across species, technologies, and modalities.Journal: Nature communicationsIn common: AllenSDK, patchwork, ggplot2, 5 other tools, methods / tools, mouse
- [9] doi:10.1038/s41467-026-72161-w [code]
- Temporal heterogeneity shapes diffusion dynamics in complex networks.Journal: Nature communicationsIn common: Brain Connectivity Toolbox, ggplot2, tidyverse, 3 other tools, mouse, 2 references
- [10] doi:10.1038/s41586-026-10629-x [code]
- Whole-genome duplication shaped cell-type evolution in the vertebrate brain.Journal: NatureIn common: pheatmap, patchwork, ggplot2, 5 other tools, mouse, 1 reference
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, 39 scripts, and 15 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:83e42c34877d2fd0…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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.
