OSCR

Unraveling the Dynamics of Oxytocin in Hypothalamic Neurons.

Code ↔ Paper

9 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 9 matches · 5 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § Materials and Methods › Trajectory Analysis and Machine Learning Classification › Machine Learning Models ↔ step_CNN.m, lines 64–92 · score 0.89 · fully connected layer, softmax layer, CNN architecture, batch normalization, ReLU, Convolutional
  2. [2] § Materials and Methods › Trajectory Analysis and Machine Learning Classification › Synthetic Dataset ↔ generate_fgn_daviesharte.m, the whole file · a weak match · score 0.78 · fractional Gaussian noise, Hurst exponent, Davies Harte, correlated
  3. [3] § Materials and Methods › Trajectory Analysis and Machine Learning Classification › Synthetic Dataset ↔ generate_synthetic_trajectories.m, the whole file · a weak match · score 0.76 · fractional Brownian Motion, physical constraints, anomalous diffusion, position, matrix, superdiffusion
  4. [4] § Materials and Methods › Trajectory Analysis and Machine Learning Classification ↔ MSD.m, the whole file · a weak match · score 0.76 · power law relationship, Squared Displacement, MSD curve, lag, fitting, particle
  5. [5] § Materials and Methods › Trajectory Analysis and Machine Learning Classification › Synthetic Dataset ↔ generate_synthetic_trajectories.m, the whole file · a weak match · score 0.72 · Davies Harte algorithm, Hurst exponent, Gaussian, fractional, noise, motion
  6. [6] § Materials and Methods › Trajectory Analysis and Machine Learning Classification ↔ MSD.m, the whole file · a weak match · score 0.64 · generalized diffusion coefficient, log fit, intercept, particle, Trajectory
  7. [7] § Results › Machine Learning Classification ↔ main.m, lines 1–9 · score 0.59 · Convolutional Neural Network, Random Forest, machine learning, RF, synthetic, trained
  8. [8] § Materials and Methods › Trajectory Analysis and Machine Learning Classification › Machine Learning Models ↔ main.m, lines 86–106 · score 0.56 · Random Forest, RF model, ensemble, trees, Machine, trained
  9. [9] § Results › Machine Learning Classification ↔ main.m, lines 86–106 · score 0.55 · OOB error, RF model, Bag, prediction, Machine, trained

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

MATLAB · 150 lines · 5.5 KB · no license · 3 matches

  1. %% Analysis of Oxytocin (OT) Vesicle Dynamics via Machine Learning
  2. % This script:
  3. % 1. Preprocesses experimental trajectories.
  4. % 2. Generates synthetic trajectories (fBM) for training.
  5. % 3. Trains and evaluates a Random Forest (RF) classifier.
  6. % 4. Trains and evaluates a 1D Convolutional Neural Network (CNN).
  7. % 5. Classifies experimental data and evaluates model consensus.
  8. clearvars; close all; clc;
  9. %% 0. Configuration & Parameters
  10. % Define global parameters
  11. params.numSteps = 80; % Number of frames per trajectory
  12. params.timeStep = 1; % Seconds per frame
  13. params.numTrees = 300; % RF ensemble size
  14. params.numSynthetic = 1e5; % Size of synthetic training set
  15. params.rngSeed = 1; % For reproducibility
  16. % Global parameters used by synthetic generation and training
  17. N_synthetic = 1e5; % Total number of synthetic trajectories
  18. numSteps = 80; % Frames per trajectory
  19. timestep = 1; % Seconds per frame (Delta T)
  20. % Target proportions for training (must sum to 1)
  21. N_nd = 0.35; % 35% Normal Diffusion
  22. N_sub = 0.40; % 40% Subdiffusion
  23. N_sup = 0.25; % 25% Superdiffusion
  24. params.numTrees = 300; % RF ensemble size
  25. params.rngSeed = 1; % For reproducibility
  26. % Create directories if they don't exist
  27. if ~exist('results', 'dir'), mkdir('results'); end
  28. %% 1. Data Loading and Preprocessing
  29. fprintf('--- Step 1: Experimental Data Preparation ---\n');
  30. dataPath = fullfile('data', 'prepared_data.mat');
  31. dimPath = fullfile('data', 'T_dim.mat');
  32. if exist(dataPath, 'file')
  33. fprintf('Loading prepared experimental data...\n');
  34. load(dataPath);
  35. else
  36. fprintf('Running data preparation pipeline...\n');
  37. data_preparation;
  38. end
  39. % Load diameter information (for the size-impact analysis)
  40. if exist(dimPath, 'file')
  41. load(dimPath);
  42. else
  43. error('Vesicle diameter data (T_dim.mat) not found.');
  44. end
  45. valid_D_indices = ~isnan(T.D) & T.D > 0;
  46. logD_real = log10(T.D(valid_D_indices));
  47. logD_mean_real = mean(logD_real);
  48. logD_std_real = std(logD_real);
  49. % Summary Statistics
  50. fprintf('Experimental Dataset: %d trajectories\n', height(T));
  51. fprintf('Mean Alpha: %.3f | Mean D: %.3f\n', mean(T.Alpha, 'omitnan'), mean(T.D, 'omitnan'));
  52. %% 2. Synthetic Data Generation
  53. fprintf('\n--- Step 2: Generating Synthetic Training Set ---\n');
  54. % Target proportions for training: 35% Normal, 40% Subdiffusive, 25% Superdiffusive
  55. propND = 0.35;
  56. propSub = 0.40;
  57. propSup = 0.25;
  58. % Generate fBM trajectories using the Davies-Harte algorithm
  59. % This call assumes 'step_synthetic' uses the proportions and params defined above
  60. step_synthetic;
  61. % --- Step 2.1: Integrate Vesicle Diameter into Training Data ---
  62. % To test if diameter influences classification, we bootstrap real
  63. % diameters into the synthetic training set (size-independent control)
  64. validDiameters = T_dim.diameter(~isnan(T_dim.diameter) & T_dim.diameter > 0);
  65. numSyntheticTotal = height(Training_T);
  66. rng(params.rngSeed);
  67. Training_T.Diameter = randsample(validDiameters, numSyntheticTotal, true);
  68. fprintf('Synthetic training set ready with %d samples.\n', numSyntheticTotal);
  69. %% 3. Machine Learning: Random Forest (RF)
  70. fprintf('\n--- Step 3: Training Random Forest Classifier ---\n');
  71. % Feature Matrix: [Alpha, log10(K_alpha), R-squared, Diameter]
  72. featuresTrain = [Training_T.Alpha, log10(Training_T.D), Training_T.Rsqrt, Training_T.Diameter];
  73. labelsTrain = Training_T.Label;
  74. % Train Random Forest (Bagged Trees)
  75. RF_Model = fitcensemble(featuresTrain, labelsTrain, ...
  76. 'Method', 'Bag', ...
  77. 'NumLearningCycles', params.numTrees, ...
  78. 'Learners', 'Tree');
  79. % Evaluate Out-of-Bag Error
  80. oobError = oobLoss(RF_Model, 'Mode', 'ensemble');
  81. fprintf('RF Out-of-Bag Classification Error: %.2f%%\n', oobError * 100);
  82. % Predict on Experimental Data
  83. % Note: Using T_dim.diameter for consistency with Training_T
  84. featuresReal = [T.Alpha, log10(T.D), T.R2, T_dim.diameter];
  85. T.Predicted_Label_RF = predict(RF_Model, featuresReal);
  86. %% 4. Deep Learning: 1D CNN
  87. fprintf('\n--- Step 4: Training 1D CNN Pipeline ---\n');
  88. % Training logic resides in step_CNN (processes raw MSD curves)
  89. step_CNN;
  90. % Predict experimental trajectories using CNN
  91. step_classification;
  92. %% 5. Results Visualization
  93. fprintf('\n--- Step 5: Generating Publication Figures ---\n');
  94. % Figure A: Alpha Distributions
  95. figure('Name', 'Trajectory Characteristics', 'Color', 'w');
  96. subplot(1,2,1);
  97. histogram(T.Alpha, 20, 'FaceColor', [0.2 0.4 0.6]);
  98. title('Experimental \alpha Distribution');
  99. xlabel('Anomalous Exponent (\alpha)'); ylabel('Frequency');
  100. grid on; axis square;
  101. % Figure B: Predictor Importance (Crucial for the "Size doesn't matter" finding)
  102. subplot(1,2,2);
  103. imp = predictorImportance(RF_Model);
  104. b = bar(imp, 'FaceAlpha', 0.8);
  105. b.FaceColor = 'flat';
  106. b.CData(4,:) = [0.8 0.2 0.2]; % Highlight Diameter in red
  107. set(gca, 'XTickLabel', {'\alpha', 'log_{10}(K_\alpha)', 'R^2', 'Diameter'});
  108. title('Predictor Importance Scores');
  109. ylabel('Importance Score');
  110. grid on; axis square;
  111. % Figure C: Model Consensus (Confusion Matrix)
  112. figure('Name', 'Model Comparison', 'Color', 'w');
  113. cc = confusionchart(categorical(T.Predicted_Label_RF), categorical(T.Predicted_Label_CNN), ...
  114. 'Title', 'Classification Consensus: RF vs. CNN', ...
  115. 'XLabel', 'CNN Prediction', 'YLabel', 'RF Prediction');
  116. cc.DiagonalColor = [0 0.45 0.74];
  117. set(gca, 'FontSize', 11);
  118. %% 6. Data Export
  119. outputFile = fullfile('results', 'classified_trajectories.mat');
  120. save(outputFile, 'T', 'RF_Model', 'params', '-v7.3');
  121. fprintf('\nAnalysis Complete. Results saved to: %s\n', outputFile);

main.m at commit 64345ee, no license · at the source

Overview

Authors: Beatriz Aznar‐Escolano1, Vera Egorova2, José Villanueva1, Luis Miguel Gutiérrez1, Virginia González‐Vélez3, Amparo Gil2, Sandra Jurado1
  1. Instituto de Neurociencias, CSIC‐UMH, San Juan de Alicante, Spain
  2. Depto. de Matemática Aplicada y Ciencias de la Computación, Universidad de Cantabria, Santander, Spain
  3. Departamento de Ciencias Básicas, UAM Azcapotzalco, Mexico City, Mexico
Journal: Traffic (Copenhagen, Denmark), volume 27, issue 2, article e70034
Dates: received 7 November 2025; accepted 26 March 2026; published online 6 April 2026; in print June 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1111/tra.70034 · PMID 41942291 · PMCID PMC13053160 · OpenAlex W7151044107
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: cellular / molecular (subfield)
Methods: Machine learning, Complexity, Statistics, fMRI & imaging, Single-unit activity, calcium imaging, Spectral & time-frequency
Keywords: anomalous diffusion, hypothalamic neurons, large dense‐core vesicles (LDCVs), machine learning, neuropeptide trafficking, oxytocin, single‐particle tracking (SPT)
MeSH: Hypothalamus*, Neurons*, Oxytocin*, Animals, Dense Core Vesicles, Machine Learning, Protein Transport (* major topic)
Topic: Neuroendocrine regulation and behavior (Social Psychology, Psychology), according to OpenAlex
Funding: CONAHCyT-Mexico (CVU 202622); Ministerio de Ciencia Innovación y Universidades (PID2020-113878RB-I00/AEI/10.13039/501100011033, PID2020-114824GB-I00, PID2020‐114824GB‐I00, PID2023-146390NB-I00, PID2020‐113878RB‐I00/AEI/10.13039/501100011033, PID2023‐146390NB‐I00)
Citations: not cited yet (Europe PMC); 67 references in the paper
Research resources: RRID:SCR_001622

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

ComputBio/oxytocin-dynamics-analysis

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 64345ee151a46bf138c12facde7ecf7faea69554, 6 April 2026
Languages: MATLAB (9)
Size: 11 files, 9 scripts
Software Heritage: not archived
Found in: “Data Availability Statement”
Holds: README
Not found: license file, 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
10 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;
  • 9 scripts, each with its path and the digest of its content;
  • 9 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:

Read it in the paper: doi.org/10.1111/tra.70034.

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 → Wiley

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 7 authors, 7 keywords, 7 MeSH terms, 2 funders, 61 references, 1 RRID.

Cite

This paper

Aznar‐Escolano, B., Egorova, V., Villanueva, J., Gutiérrez, L. M., González‐Vélez, V., Gil, A., & Jurado, S. (2026). Unraveling the Dynamics of Oxytocin in Hypothalamic Neurons. Traffic (Copenhagen, Denmark), 27(2), e70034. https://doi.org/10.1111/tra.70034

BibTeX

@article{aznarescolano2026unraveling,
author = {Aznar‐Escolano, Beatriz and Egorova, Vera and Villanueva, José and Gutiérrez, Luis Miguel and González‐Vélez, Virginia and Gil, Amparo and Jurado, Sandra},
title = {{Unraveling the Dynamics of Oxytocin in Hypothalamic Neurons}},
journal = {Traffic (Copenhagen, Denmark)},
year = {2026},
month = jun,
volume = {27},
number = {2},
pages = {e70034},
publisher = {Wiley},
issn = {1398-9219},
doi = {10.1111/tra.70034},
url = {https://doi.org/10.1111/tra.70034},
pmid = {41942291},
pmcid = {PMC13053160}
}

RIS

TY - JOUR
AU - Aznar‐Escolano, Beatriz
AU - Egorova, Vera
AU - Villanueva, José
AU - Gutiérrez, Luis Miguel
AU - González‐Vélez, Virginia
AU - Gil, Amparo
AU - Jurado, Sandra
TI - Unraveling the Dynamics of Oxytocin in Hypothalamic Neurons
T2 - Traffic (Copenhagen, Denmark)
J2 - Traffic
PY - 2026
DA - 2026/06/01
VL - 27
IS - 2
SP - e70034
SN - 1398-9219
PB - Wiley
DO - 10.1111/tra.70034
UR - https://doi.org/10.1111/tra.70034
LA - en
ER -

CSL-JSON

{
"id": "10.1111/tra.70034",
"type": "article-journal",
"title": "Unraveling the Dynamics of Oxytocin in Hypothalamic Neurons",
"container-title": "Traffic (Copenhagen, Denmark)",
"author": [
{
"family": "Aznar‐Escolano",
"given": "Beatriz"
},
{
"family": "Egorova",
"given": "Vera"
},
{
"family": "Villanueva",
"given": "José"
},
{
"family": "Gutiérrez",
"given": "Luis Miguel"
},
{
"family": "González‐Vélez",
"given": "Virginia"
},
{
"family": "Gil",
"given": "Amparo"
},
{
"family": "Jurado",
"given": "Sandra"
}
],
"container-title-short": "Traffic",
"volume": "27",
"issue": "2",
"page": "e70034",
"DOI": "10.1111/tra.70034",
"PMID": "41942291",
"PMCID": "PMC13053160",
"ISSN": "1398-9219",
"publisher": "Wiley",
"URL": "https://doi.org/10.1111/tra.70034",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
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.1038/s41467-026-71458-0 [code]
Early differential impact of MeCP2 mutations on functional networks in Rett syndrome patient-derived human cortical organoids.
Journal: Nature communications
In common: Deep Learning Toolbox, Parallel Computing Toolbox, Statistics and Machine Learning Toolbox, cellular / molecular
[2] doi:10.1002/hbm.70553 [code]
Axon Diameter Mapping in the Living Human Brain with Ultra-High-Gradient Diffusion MRI at 500 mT/m Gradient Strength.
Journal: Human brain mapping
In common: Deep Learning Toolbox, Parallel Computing Toolbox, Statistics and Machine Learning Toolbox
[3] doi:10.7554/elife.109539 [code]
Computational mechanisms for temporal integration in the anterior claustrum.
Journal: eLife
In common: Deep Learning Toolbox, Parallel Computing Toolbox, Statistics and Machine Learning Toolbox
[4] doi:10.1002/advs.202518450 [code]
A Brain-Wide Atlas of Astrocytic Oxytocin Receptors Reveals a Glial Basis for Nucleus Accumbens Modulation of Affiliative Behavior.
Journal: Advanced science (Weinheim, Baden-Wurttemberg, Germany)
In common: cellular / molecular, 2 references
[5] doi:10.1038/s41467-026-76581-6 [code]
Thalamocortical bursts encode reward contingencies and drive associative learning.
Journal: Nature communications
In common: Deep Learning Toolbox, Statistics and Machine Learning Toolbox
[6] doi:10.7554/elife.107661 [code]
In vivo mapping of striatal neurodegeneration in Huntington's disease with Soma and Neurite Density Imaging.
Journal: eLife
In common: Deep Learning Toolbox, Statistics and Machine Learning Toolbox
[7] doi:10.3389/fpsyt.2026.1737357 [code]
A computational pipeline for a neurotransmitter-centric analysis of the effects of psychiatric medication on EEG spectral power.
Journal: Frontiers in psychiatry
In common: Deep Learning Toolbox, Statistics and Machine Learning Toolbox
[8] doi:10.1016/j.crmeth.2026.101480 [code]
DeepFaceMouse enables scalable prediction of large-scale brain activity from facial dynamics in mice.
Journal: Cell reports methods
In common: Deep Learning Toolbox, Statistics and Machine Learning Toolbox
[9] doi:10.1073/pnas.2535986123 [code]
The colors of images preferred by individual voxels can be used to delineate functionally distinct visually responsive brain areas.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: Deep Learning Toolbox, Statistics and Machine Learning Toolbox
[10] doi:10.1038/s41598-026-47179-1 [code]
Wavelet-enhanced autoencoder based image denoising with CNN fusion.
Journal: Scientific reports
In common: Deep Learning Toolbox, Statistics and Machine Learning Toolbox

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.