OSCR

Deltas' and spindles' cross-area synchronization and ripple subtypes.

Code ↔ Paper

15 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.

13 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.

The 15 matches · 9 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
  1. [1] § Materials and methods › Detection of spindles and delta waves ↔ nonrem_oscillations/Required_Functions/FindDeltaWavesRGS14.m, lines 1 to 47 · score 0.75 · FindDeltaWaves, sleep periods, 1–6 Hz, threshold, channel, Matlab · block oscr:b:VE1AEYBC583E5-Q · Report a mismatch
  2. [2] § Materials and methods › Time–frequency Granger causality ↔ nonrem_oscillations/Spectrograms&GrangerCausality/functions/createauto_timefreq.m, the whole file · a weak match · score 0.70 · ft_connectivityanalysis, ft_freqanalysis, Granger Causality, Hanning, Fourier, FieldTrip · block oscr:b:BJ56HQ21VAKN4-K · Report a mismatch
  3. [3] § Materials and methods › Time–frequency Granger causality ↔ nonrem_oscillations/Spectrograms&GrangerCausality/functions/stats_high_granger.m, the whole file · a weak match · score 0.70 · randomized trials, frequency matrix, Granger Causality, pixel, transform, permutation · block oscr:b:534GFASMW81JW-9 · Report a mismatch
  4. [4] § Materials and methods › Dimensionality reduction of ripple features and ripple clustering › Number of peaks ↔ Adrian/c3split_sweep_analysis.m, the whole file · a weak match · score 0.64 · Akaike information criterion, Bayesian information criterion, AIC, BIC, clustered · block oscr:b:DZJN3NCF54M90-P · Report a mismatch
  5. [5] § Materials and methods › Time–frequency spectrograms ↔ nonrem_oscillations/Spectrograms&GrangerCausality/spectrogram_automation.m, the whole file · a weak match · score 0.58 · notch filter, ft_preprocessing, spectrograms, FieldTrip, channels · block oscr:b:CCVDN7KFNHK8H-1 · Report a mismatch
  6. [6] § Materials and methods › Time–frequency spectrograms ↔ Pelin/spectrogram_automation.m, the whole file · a weak match · score 0.58 · notch filter, ft_preprocessing, spectrograms, FieldTrip, channels · block oscr:b:SSXAV1C4T8QNA-4 · Report a mismatch
  7. [7] § Materials and methods › Dimensionality reduction of ripple features and ripple clustering › Peak-to-peak distance ↔ nonrem_oscillations/Spectrograms&GrangerCausality/functions/delta_specs.m, the whole file · a weak match · score 0.57 · peak distance, peak2peak, amplitude · block oscr:b:2M3NMMCS9D1EH-P · Report a mismatch
  8. [8] § Materials and methods › Dimensionality reduction of ripple features and ripple clustering › Peak-to-peak distance ↔ Pelin/functions/delta_specs.m, the whole file · a weak match · score 0.57 · peak distance, peak2peak, amplitude · block oscr:b:1ZYY3FW76SWRQ-0 · Report a mismatch
  9. [9] § Results › Hippocampal-cortical oscillation interactions during ripple types ↔ Pelin/revision2025/extract_values_from_figFiles_Vehicle.m, lines 1 to 44 · score 0.57 · 0–20 Hz, Extracted Granger, PFC HPC, cluster · block oscr:b:QBSJ93A8R6Z67-E · Report a mismatch
  10. [10] § Materials and methods › Ripple detection ↔ spiking_activity/Required_Functions/Ripple_Analysis_All.m, the whole file · a weak match · score 0.55 · post trials, workspace, offset, presleep, split, treatment · block oscr:b:9JQCB8683AQN1-T · Report a mismatch
  11. [11] § Materials and methods › Detection of oscillation sequences ↔ nonrem_oscillations/Required_Functions/FindDeltaWavesRGS14.m, lines 1 to 47 · score 0.55 · find delta waves, find ripples, duration, NonREM, sleep, peaks · block oscr:b:VE1AEYBC583E5-Q · Report a mismatch
  12. [12] § Materials and methods › Cortical activity during ripples ↔ spiking_activity/Required_Functions/Ripple_Analysis_All.m, the whole file · a weak match · score 0.53 · firing activity, vector, spike, window, neuron, timestamps · block oscr:b:9JQCB8683AQN1-T · Report a mismatch
  13. [13] § Materials and methods › Dimensionality reduction of ripple features and ripple clustering › Number of peaks ↔ Adrian/CBD_Main_script.m, lines 26 to 57 · score 0.52 · CovarianceType, fitgmdist, diagonal, GMM, vehicle, clustered · block oscr:b:EM941K72NC1CD-T · Report a mismatch
  14. [14] § Materials and methods › Ripple detection ↔ nonrem_oscillations/Required_Functions/swr_check_thr.m, lines 1 to 97 · score 0.51 · 100–300 Hz, consecutive, epochs, detection, thresholding, bandpass · block oscr:b:2QS96VBYCD4CS-6 · Report a mismatch
  15. [15] § Materials and methods › Slow oscillation phase ↔ nonrem_oscillations/Spindle_analysis_Kopal.m, lines 93 to 202 · score 0.51 · 0.5–4 Hz, angle, phase, 360 deg, Hilbert, bandpass · block oscr:b:BS4DFBG60400M-Y · Report a mismatch

Paper

Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

MATLAB · 156 lines · 5.8 KB · GPL-3.0 · 2 matches

  1. function delta = FindDeltaWavesRGS14(filtered,k)
  2. %FindDeltaWaves - Find cortical delta waves (1-6Hz waves).
  3. %
  4. % USAGE
  5. %
  6. % delta = FindDeltaWaves(filtered,<options>)
  7. %
  8. % filtered delta-band filtered LFP <a href="matlab:help samples">samples</a> (one channel). This must
  9. % be restricted to slow wave sleep periods for the algorithm
  10. % to perform best.
  11. % <options> optional list of property-value pairs (see table below)
  12. %
  13. % =========================================================================
  14. % Properties Values
  15. % -------------------------------------------------------------------------
  16. % 'thresholds' thresholds for z-scored minimum peak and trough amplitudes
  17. % (default = [1 2 0 1.5], see NOTE below)
  18. % 'durations' min and max wave durations in ms (default = [150 500])
  19. % =========================================================================
  20. %
  21. % OUTPUT
  22. %
  23. % delta for each delta wave, times and z-scored amplitudes of
  24. % the beginning, peak and trough of the wave, in a Nx6
  25. % matrix [start_t peak_t end_t start_z peak_z end_z]
  26. %
  27. % NOTE
  28. %
  29. % To be selected, candidate delta waves must fulfill one of two amplitude
  30. % conditions. The peak and trough must both exceed a threshold, but one can
  31. % compensate for the other, i.e. a large peak requires a smaller trough and
  32. % vice versa.
  33. %
  34. % More precisely, there are two thresholds for the peak, p and P (p<P), and
  35. % two for the trough, t and T (t<T). The amplitude must fulfill one of the
  36. % following conditions:
  37. %
  38. % peak > p and trough > T
  39. % or peak > P and trough > t
  40. %
  41. % Thresholds are given in SDs, and the above conditions relate to absolute
  42. % values.
  43. %
  44. % SEE
  45. %
  46. % See also FilterLFP, FindRipples.
  47. % Copyright (C) 2012-2017 Michaël Zugaro, 2012-2015 Nicolas Maingret,
  48. %
  49. % This program is free software; you can redistribute it and/or modify
  50. % it under the terms of the GNU General Public License as published by
  51. % the Free Software Foundation; either version 3 of the License, or
  52. % (at your option) any later version.
  53. % Default values
  54. if ~isempty(find(k==[2,3,6],1))
  55. highPeak = 2; % Threshold for filtered signal (number of SDs)
  56. lowPeak = 1;
  57. elseif ~isempty(find(k==[1,4,8],1))
  58. highPeak = 2.15;
  59. lowPeak = 1.15;
  60. elseif k==5
  61. highPeak = 1.75;
  62. lowPeak = 0.75;
  63. else
  64. highPeak = 1.8;
  65. lowPeak = 0.8;
  66. end
  67. if k==5
  68. highTrough = 1.3;
  69. else
  70. highTrough = 1.5;
  71. end
  72. lowTrough = 0;
  73. minDuration = 150; % min time between successive zero crossings (in ms)
  74. maxDuration = 450; % max time between successive zero crossings (in ms)
  75. % % Check number of parameters
  76. % if nargin < 1 | mod(length(varargin),2) ~= 0,
  77. % error('Incorrect number of parameters (type ''help <a href="matlab:help FindDeltaWaves">FindDeltaWaves</a>'' for details).');
  78. % end
  79. %
  80. % % Check parameter sizes
  81. % if ~isdmatrix(filtered,'@2'),
  82. % error('Parameter ''filtered'' is not a Nx2 matrix (type ''help <a href="matlab:help FindDeltaWaves">FindDeltaWaves</a>'' for details).');
  83. % end
  84. %
  85. % % Parse parameter list
  86. % for i = 1:2:length(varargin),
  87. % if ~ischar(varargin{i}),
  88. % error(['Parameter ' num2str(i+2) ' is not a property (type ''help <a href="matlab:help FindDeltaWaves">FindDeltaWaves</a>'' for details).']);
  89. % end
  90. % switch(lower(varargin{i})),
  91. % case {'thresholds','amplitudes'},
  92. % thresholds = varargin{i+1};
  93. % if ~isdvector(thresholds,'#4'),
  94. % error('Incorrect value for property ''thresholds'' (type ''help <a href="matlab:help FindDeltaWaves">FindDeltaWaves</a>'' for details).');
  95. % end
  96. % lowPeak = thresholds(1);
  97. % highPeak = thresholds(2);
  98. % lowTrough = thresholds(3);
  99. % highTrough = thresholds(4);
  100. % if lowPeak > highPeak || lowTrough > highTrough,
  101. % error('Inconsistent amplitude thresholds (type ''help <a href="matlab:help FindDeltaWaves">FindDeltaWaves</a>'' for details).');
  102. % end
  103. % case 'durations',
  104. % durations = varargin{i+1};
  105. % if ~isdvector(durations,'#2','<','>0'),
  106. % error('Incorrect value for property ''durations'' (type ''help <a href="matlab:help FindDeltaWaves">FindDeltaWaves</a>'' for details).');
  107. % end
  108. % if durations(2) < 1,
  109. % warning('Delta wave min and max durations are less than 1 ms, assuming seconds.');
  110. % durations = durations * 1000;
  111. % end
  112. % minDuration = durations(1); maxDuration = durations(2);
  113. % otherwise,
  114. % error(['Unknown property ''' num2str(varargin{i}) ''' (type ''help <a href="matlab:help FindDeltaWaves">FindDeltaWaves</a>'' for details).']);
  115. % end
  116. % end
  117. % Find local minima and maxima corresponding to beginning, peak and end of delta waves
  118. % This is done by finding zero crossings of the (z-scored) derivative of the signal
  119. % Differentiate, filter and z-score signal
  120. z = filtered;
  121. z(:,2) = [diff(filtered(:,2));0];
  122. z = FilterLFP(z,'passband',[0 6],'order',8);
  123. z(:,2) = zscore(z(:,2));
  124. % Find positions (in # samples) of zero crossings
  125. [up,down] = ZeroCrossings(z);
  126. down = find(down);
  127. up = find(up);
  128. if down(1) < up(1), down(1) = []; end
  129. % List positions (in # samples) of successive up,down,up crossings in an Nx3 matrix
  130. n = length(up);
  131. where = [up(1:n-1) down(1:n-1) up(2:n)];
  132. % List positions but also z-scored amplitudes in an Nx6 matrix (positions then amplitudes)
  133. z = filtered;
  134. z(:,2) = zscore(filtered(:,2));
  135. delta = z(where,:);
  136. delta = reshape(delta,size(where,1),6);
  137. % Discard waves that are too long or too short
  138. duration = delta(:,3) - delta(:,1);
  139. delta(duration<minDuration/1000|duration>maxDuration/1000,:) = [];
  140. % Threshold z-scored peak and trough amplitudes
  141. peak = delta(:,5);
  142. trough = delta(:,6);
  143. case1 = peak > highPeak & trough <= -lowTrough;
  144. case2 = peak >= lowPeak & trough < -highTrough;
  145. delta = delta(case1|case2,:);

FindDeltaWavesRGS14.m at commit 95cc6cb, under GPL-3.0 · at the source

Overview

Authors: Adrian Aleman-Zapata1, Yixiao Zhang1, Pelin Özsezer1, Kopal Agarwal1, Abdelrahman Rayan1, Irene Navarro-Lobato1, Lisa Genzel1
  1. Donders Institute for Brain, Cognition and Behaviour, Radboud University, Postbus 9010, 6500GL Nijmegen, The Netherlands
Journal: Sleep, volume 49, issue 9, article zsag168
Dates: received 10 December 2025; accepted 27 May 2026; published online 19 June 2026; in print September 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1093/sleep/zsag168 · PMID 42319042 · PMCID PMC13553294 · OpenAlex W7165142621
Open access: hybrid, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: EEG (modality), rat (organism)
Methods: Spectral & time-frequency, Preprocessing, Connectivity, Statistics, Smoothing, state filtering, decompositions, Machine learning, Evoked potentials, Single-unit activity, calcium imaging
Keywords: hippocampal ripples, memory consolidation, sleep, prefrontal cortex, delta waves, spindles, neural synchronization
MeSH: Cortical Synchronization*, Delta Rhythm*, Hippocampus*, Memory Consolidation*, Sleep*, Animals, Electroencephalography, Male, Prefrontal Cortex, Rats (* major topic)
Topic: Sleep and Wakefulness Research (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: NWO-VIDI
Citations: not cited yet (Europe PMC); 65 references in the paper

Abstract

Hippocampal ripples, critical for sleep-related memory consolidation, are heterogeneous events with various sources and functions. However, their specific roles in supporting different forms of memory remain poorly understood. Here, we applied principal component analysis to identify ripple sub-types and relate them to hippocampal–cortical interactions, as well as their role in consolidating simple and complex semantic-like memories in rats. Three main ripple types were identified: medium-sized, large-sized, and small-sized ripples. Small-sized ripples were associated with increased prefrontal cortex to hippocampus connectivity, followed hippocampal delta waves, and were related to simple learning. In contrast, large-sized ripples exhibited increased hippocampus to prefrontal cortex connectivity, occurred during hippocampal spindles together as a doublet with a small-sized ripple, and were related to complex memory consolidation. Finally, learning induced heightened coupling between hippocampal delta and spindle oscillations and their cortical counterparts, consequently leading to an increased synchronization of ripples with cortical oscillations. Together, these results underscore that distinct ripple subtypes and their specific patterns of hippocampal–cortical coordination during sleep underpin different memory consolidation processes.

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

Repositories

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

genzellab/RGS14

License: GPL-3.0
State: the link answers, verified on 4 November 2026
Evidence: files inventoried
Commit: 95cc6cb5785a15a3e65ae80fd40fe7cad5ed9039, 8 May 2025
Languages: MATLAB (50)
Size: 69 files, 50 scripts
Software Heritage: not archived
Found in: “Data availability”
Holds: README, license file, CITATION.cff
Not found: environment file, tests, continuous integration, documentation
Availability: 2 checks, the latest on 4 November 2026: the link answers
  • 4 November 2026: the link answers
  • 26 September 2026: the link answers
52 files

genzellab/RGS14_clusters

License: none: the authors keep all their rights
State: the link answers, verified on 26 September 2026
Evidence: files inventoried
Commit: 4a287c820deb2c24743d1d8dad522ef3e4d5916e, 3 April 2026
Languages: MATLAB (135), Python (6)
Size: 205 files, 141 scripts
Software Heritage: not archived
Found in: “Data availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: FieldTrip (13 files), Statistics and Machine Learning Toolbox (13 files), Signal Processing Toolbox (7 files), Matplotlib (5 files), SciPy (5 files), NumPy (4 files), Image Processing Toolbox (2 files), Parallel Computing Toolbox (1 file), Plotly (1 file), scikit-learn (1 file)
Availability: 1 check, the latest on 26 September 2026: the link answers
  • 26 September 2026: the link answers
142 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;
  • 191 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

Datasets cited

Data availability

All data are available at https://osf.io/7xw43/ . Code can be found on the following GitHub links: https://github.com/genzellab/RGS14 and https://github.com/genzellab/RGS14_clusters

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

Recorded: type, language, journal, volume, issue, pages, dates, 7 authors, 7 keywords, 10 MeSH terms, 1 funder, 64 references.

Cite

This paper

Aleman-Zapata, A., Zhang, Y., Özsezer, P., Agarwal, K., Rayan, A., Navarro-Lobato, I., & Genzel, L. (2026). Deltas' and spindles' cross-area synchronization and ripple subtypes. Sleep, 49(9), zsag168. https://doi.org/10.1093/sleep/zsag168

BibTeX

@article{alemanzapata2026deltas,
author = {Aleman-Zapata, Adrian and Zhang, Yixiao and Özsezer, Pelin and Agarwal, Kopal and Rayan, Abdelrahman and Navarro-Lobato, Irene and Genzel, Lisa},
title = {{Deltas' and spindles' cross-area synchronization and ripple subtypes}},
journal = {Sleep},
year = {2026},
month = sep,
volume = {49},
number = {9},
pages = {zsag168},
publisher = {Oxford University Press},
issn = {0161-8105},
doi = {10.1093/sleep/zsag168},
url = {https://doi.org/10.1093/sleep/zsag168},
pmid = {42319042},
pmcid = {PMC13553294}
}

RIS

TY - JOUR
AU - Aleman-Zapata, Adrian
AU - Zhang, Yixiao
AU - Özsezer, Pelin
AU - Agarwal, Kopal
AU - Rayan, Abdelrahman
AU - Navarro-Lobato, Irene
AU - Genzel, Lisa
TI - Deltas' and spindles' cross-area synchronization and ripple subtypes
T2 - Sleep
J2 - Sleep
PY - 2026
DA - 2026/09/01
VL - 49
IS - 9
SP - zsag168
SN - 0161-8105
PB - Oxford University Press
DO - 10.1093/sleep/zsag168
UR - https://doi.org/10.1093/sleep/zsag168
LA - en
ER -

CSL-JSON

{
"id": "10.1093/sleep/zsag168",
"type": "article-journal",
"title": "Deltas' and spindles' cross-area synchronization and ripple subtypes",
"container-title": "Sleep",
"author": [
{
"family": "Aleman-Zapata",
"given": "Adrian"
},
{
"family": "Zhang",
"given": "Yixiao"
},
{
"family": "Özsezer",
"given": "Pelin"
},
{
"family": "Agarwal",
"given": "Kopal"
},
{
"family": "Rayan",
"given": "Abdelrahman"
},
{
"family": "Navarro-Lobato",
"given": "Irene"
},
{
"family": "Genzel",
"given": "Lisa"
}
],
"container-title-short": "Sleep",
"volume": "49",
"issue": "9",
"page": "zsag168",
"DOI": "10.1093/sleep/zsag168",
"PMID": "42319042",
"PMCID": "PMC13553294",
"ISSN": "0161-8105",
"publisher": "Oxford University Press",
"URL": "https://doi.org/10.1093/sleep/zsag168",
"language": "en",
"issued": {
"date-parts": [
[
2026,
9,
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.7554/elife.84911 [code]
Increased cortical plasticity leads to memory interference and enhanced hippocampal-cortical interactions.
Journal: eLife
In common: Open Ephys analysis tools, boundedline, FieldTrip, 4 other tools, OSF 7xw43, rat, 22 references, author Adrian Aleman-Zapata
[2] doi:10.1016/j.isci.2025.111782 [code]
Differential contributions of CA3 and entorhinal cortex inputs to ripple patterns in the hippocampus.
Journal: iScience
In common: Open Ephys analysis tools, boundedline, FieldTrip, 7 other tools, 19 references, author Kopal Agarwal
[3] doi:10.1016/j.isci.2023.108327 [code]
CBD lengthens sleep but shortens ripples and leads to intact simple but worse cumulative memory.
Journal: iScience
In common: Open Ephys analysis tools, boundedline, FieldTrip, 7 other tools, 14 references, 2 authors
[4] doi:10.1038/s41467-025-66562-6 [code]
Spatiotemporal patterns differentiate hippocampal sharp-wave ripples from interictal epileptiform discharges in mice and humans.
Journal: Nature communications
In common: boundedline, FieldTrip, Plotly, 8 other tools, EEG, 13 references
[5] doi:10.1016/j.neuron.2025.09.012 [code]
Hippocampal ripple diversity organizes neuronal reactivation dynamics in the offline brain.
Journal: Neuron
In common: SciPy, Matplotlib, NumPy, 18 references
[6] doi:10.1073/pnas.2123424119 [code]
Sleep deprivation and hippocampal ripple disruption after one-session learning eliminate memory expression the next day.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: FieldTrip, Signal Processing Toolbox, Image Processing Toolbox, 4 other tools, EEG, 11 references, author Adrian Aleman-Zapata
[7] doi:10.1038/s41467-022-33536-x [code]
A consensus statement on detection of hippocampal sharp wave ripples and differentiation from other fast oscillations.
Journal: Nature communications
In common: boundedline, FieldTrip, Parallel Computing Toolbox, 6 other tools, 12 references
[8] doi:10.1101/lm.053834.123 [code]
Hippocampal memory reactivation during sleep is correlated with specific cortical states of the retrosplenial and prefrontal cortices.
Journal: Learning & memory (Cold Spring Harbor, N.Y.)
In common: 17 references
[9] doi:10.1073/pnas.2200931119 [code]
Brain-wide interactions during hippocampal sharp wave ripples.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: boundedline, FieldTrip, Parallel Computing Toolbox, 6 other tools, 9 references
[10] doi:10.1016/j.celrep.2025.115808 [code]
Spatio-temporal organization of network activity patterns in the hippocampus.
Journal: Cell reports
In common: scikit-learn, SciPy, Matplotlib, 1 other tool, 14 references

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.

Add the badge to the code's README

OSCR: the badge of this paper

If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.

Markdown
<!-- oscr-badge:start -->
[![OSCR](https://openscicode.org/badge/doi/10.1093/sleep/zsag168.svg)](https://openscicode.org/badge/doi/10.1093/sleep/zsag168)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1093/sleep/zsag168.svg
   :target: https://openscicode.org/badge/doi/10.1093/sleep/zsag168
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1093/sleep/zsag168"><img src="https://openscicode.org/badge/doi/10.1093/sleep/zsag168.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge 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: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Report a mismatch between the code and the paper · Report a code error (signed in)

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Report a reproduction failure (signed in)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

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