OSCR

An automated EEG–ECG framework for CAP–HRV analysis: enabling brain–heart coupling studies in sleep disorders

Code ↔ Paper

8 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 8 matches · 2 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
  1. [1] § Materials and methods › ECG preprocessing and HRV feature extraction ↔ worked_example.m, lines 1 to 72 · score 0.81 · SampEn, mhrv toolbox directly, PhysioZoo, RMSSD, AVNN, HF · Report a mismatch
  2. [2] § Materials and methods › Control reference cohort and A1-event HRV ↔ validate_CAP_A1.m, lines 1 to 100 · score 0.78 · CAP Sleep Database, expert annotated, CAP A1 events, n16, capslpdb, channel · Report a mismatch
  3. [3] § Materials and methods › Control reference cohort and A1-event HRV ↔ Shaween_HRV_Features_w_CAP.m, lines 1 to 35 · score 0.76 · n1 n16, CAP Sleep Database, Pan Tompkins, HRV feature, CAP A1, healthy · Report a mismatch
  4. [4] § Materials and methods › CAP A1 detection (rule-based implementation) ↔ validate_CAP_A1.m, lines 1 to 100 · score 0.72 · expert annotated, CAP A1 events, validated, Cohen, sensitivity, module · Report a mismatch
  5. [5] § Materials and methods › EEG preprocessing ↔ validate_CAP_A1.m, lines 113 to 127 · score 0.71 · 0.5–4 Hz, delta band, morphology, CAP A1, channel, bandpass · Report a mismatch
  6. [6] § Materials and methods › ECG preprocessing and HRV feature extraction ↔ worked_example.m, lines 1 to 72 · score 0.66 · Pan Tompkins, peak detection, ECG epochs, fallback, SDNN, bpm · Report a mismatch
  7. [7] § Materials and methods › ECG preprocessing and HRV feature extraction ↔ ShaweenHRV_mhrv.m, the whole file · a weak match · score 0.65 · Pan Tompkins, peak detection, ECG epochs, fallback, intervals, nonlinear · Report a mismatch
  8. [8] § Materials and methods › ECG preprocessing and HRV feature extraction ↔ ShaweenHRV_mhrv.m, the whole file · a weak match · score 0.61 · mhrv toolbox directly, PhysioZoo, power, DFA, HRV features, Lomb · 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 · 186 lines · 7.6 KB · CC-BY-4.0 · 3 matches

  1. function results = validate_CAP_A1(dbDir, records, outCsv)
  2. % VALIDATE_CAP_A1 Benchmark YOUR rule-based CAP A1 detector against the
  3. % expert annotations of the PhysioNet CAP Sleep Database (capslpdb v1.0.0).
  4. %
  5. % Addresses Reviewer 1, Comment 1 (and the Editor note): reports sensitivity,
  6. % specificity, PPV, F1, and Cohen's kappa for CAP A1 detection vs. expert
  7. % scoring, at both 1-second and event levels, restricted to SWS (S3/S4).
  8. %
  9. % This version uses PhysioNet's own ScoringReader.m (shipped with the
  10. % database), so you do NOT parse the .txt files yourself.
  11. %
  12. % USAGE
  13. % r = validate_CAP_A1('capslpdb/', {'n1','n2','sdb1','sdb2'}, 'cap_a1_val.csv')
  14. % r = validate_CAP_A1('capslpdb/', [], 'cap_a1_val.csv') % uses RECORDS file
  15. %
  16. % INPUTS
  17. % dbDir folder holding the downloaded capslpdb files (*.edf, *.txt,
  18. % ScoringReader.m, RECORDS). Put this .m file there or add to path.
  19. % records cell array of record names WITHOUT extension, e.g. {'n1','sdb1'}.
  20. % If empty, all names in the RECORDS file are used.
  21. % RECOMMENDED for a CAP-A1/SWS benchmark: the 16 controls
  22. % {'n1'..'n16'} (clean SWS) plus the 4 SDB records {'sdb1'..'sdb4'}.
  23. % outCsv path for the per-record results table.
  24. %
  25. % >>> THE ONLY LINE YOU MUST EDIT is marked "WIRE HERE": call your detector. <<<
  26. % Your detector must return Nx2 [onset_sec offset_sec] of detected A1 events.
  27. %
  28. % REQUIREMENTS
  29. % - MATLAB R2023b+ (edfread/edfinfo), or replace local_load_eeg with your reader
  30. % - ScoringReader.m from the database (on the MATLAB path)
  31. % - Your CAP A1 module
  32. %
  33. % Author: prepared for the Frontiers in Physiology revision. CC-BY 4.0.
  34. if nargin < 3 || isempty(outCsv), outCsv = 'cap_a1_validation.csv'; end
  35. if nargin < 2 || isempty(records)
  36. records = local_read_records(fullfile(dbDir,'RECORDS'));
  37. end
  38. assert(exist('ScoringReader','file')==2, ...
  39. 'ScoringReader.m not found on path. Add the capslpdb folder to the MATLAB path.');
  40. rows = {}; allTP=0; allFP=0; allTN=0; allFN=0;
  41. for i = 1:numel(records)
  42. rec = records{i};
  43. txt = fullfile(dbDir,[rec '.txt']);
  44. edf = fullfile(dbDir,[rec '.edf']);
  45. if ~isfile(txt) || ~isfile(edf)
  46. warning('Missing files for %s, skipping.', rec); continue;
  47. end
  48. % ---- 1. Expert annotations via PhysioNet's ScoringReader.m -----------
  49. % ScoringReader returns the macrostructure hypnogram (0=W,1..4=S1..S4,5=REM)
  50. % and three arrays for the CAP A phases: start time (s), duration (s),
  51. % subtype (1=A1, 2=A2, 3=A3). Adjust the output order if your copy differs.
  52. [hypno, capStart, capDur, capType] = ScoringReader(txt); % see note above
  53. hypno = hypno(:);
  54. isA1 = (capType(:) == 1);
  55. a1_exp = [capStart(isA1), capStart(isA1)+capDur(isA1)]; % Nx2 sec
  56. % ---- 2. Load the central EEG derivation -----------------------------
  57. [eeg, fs, chan] = local_load_eeg(edf);
  58. % ---- 3. Run YOUR detector (WIRE HERE) -------------------------------
  59. caps_det = detect_cap_a1(eeg, fs, hypno); % <<< WIRE HERE: your A1 module
  60. % ---- 4. Build 1-second SWS masks (gold vs detected) -----------------
  61. T = max([numel(hypno)*30, ceil(max([a1_exp(:);0])), ...
  62. ceil(max([caps_det(:);0]))]);
  63. sws = local_stage_mask(hypno, T, [3 4]); % S3/S4 only
  64. gold = local_events_to_mask(a1_exp, T) & sws;
  65. pred = local_events_to_mask(caps_det,T) & sws;
  66. TP=sum(pred&gold); FP=sum(pred&~gold); FN=sum(~pred&gold); TN=sum(~pred&~gold);
  67. [se,sp,f1,kap,ppv] = local_metrics(TP,FP,TN,FN);
  68. [evSe,evPpv,evF1] = local_event_match(caps_det, a1_exp, sws, T, 0.5);
  69. rows(end+1,:) = {rec, char(chan), sum(isA1 & local_onset_in_sws(capStart,hypno,[3 4])),...
  70. size(caps_det,1), se, sp, ppv, f1, kap, evSe, evPpv, evF1}; %#ok<AGROW>
  71. allTP=allTP+TP; allFP=allFP+FP; allTN=allTN+TN; allFN=allFN+FN;
  72. fprintf('%-8s [%s] Se=%.3f Sp=%.3f F1=%.3f kappa=%.3f (eventF1=%.3f)\n',...
  73. rec, chan, se, sp, f1, kap, evF1);
  74. end
  75. [se,sp,f1,kap,ppv] = local_metrics(allTP,allFP,allTN,allFN);
  76. fprintf('\nPOOLED (1-s, SWS): Se=%.3f Sp=%.3f PPV=%.3f F1=%.3f Cohen kappa=%.3f\n',...
  77. se,sp,ppv,f1,kap);
  78. V = cell2table(rows,'VariableNames',{'record','channel','n_expert_A1_SWS',...
  79. 'n_detected','sensitivity','specificity','PPV','F1','kappa',...
  80. 'event_sensitivity','event_PPV','event_F1'});
  81. writetable(V,outCsv);
  82. results = struct('perRecord',V,'pooled',...
  83. struct('Se',se,'Sp',sp,'PPV',ppv,'F1',f1,'kappa',kap));
  84. fprintf('Per-record results written to %s\n', outCsv);
  85. fprintf(['\nReport in the manuscript (Section 2.4 / 3): pooled Se, Sp, F1 and ' ...
  86. 'Cohen''s kappa above, plus the per-record table as supplementary.\n']);
  87. end
  88. % ============================ helpers ===================================
  89. function recs = local_read_records(f)
  90. recs = {};
  91. if isfile(f)
  92. fid=fopen(f); c=textscan(fid,'%s'); fclose(fid); recs=c{1};
  93. else
  94. % default: controls + SDB
  95. recs = [arrayfun(@(k)sprintf('n%d',k),1:16,'uni',0), ...
  96. arrayfun(@(k)sprintf('sdb%d',k),1:4,'uni',0)];
  97. warning('RECORDS file not found; defaulting to controls n1-n16 + sdb1-4.');
  98. end
  99. end
  100. function [eeg, fs, chan] = local_load_eeg(edfPath)
  101. info = edfinfo(edfPath);
  102. labels = string(info.SignalLabels);
  103. pick = find(contains(labels,["C4-A1","C3-A2","C4A1","C3A2"],'IgnoreCase',true),1);
  104. if isempty(pick), pick = find(contains(labels,["C4","C3"],'IgnoreCase',true),1); end
  105. if isempty(pick), pick = find(contains(labels,"EEG",'IgnoreCase',true),1); end
  106. if isempty(pick), pick = 1; end
  107. chan = labels(pick);
  108. fs = double(info.NumSamples(pick))/seconds(info.DataRecordDuration);
  109. tt = edfread(edfPath,'SelectedSignals',cellstr(chan));
  110. eeg = cell2mat(tt.(matlab.lang.makeValidName(chan)));
  111. eeg = double(eeg(:));
  112. [b,a]= butter(4,[0.5 4]/(fs/2),'bandpass'); % delta band, matches A1 morphology
  113. eeg = filtfilt(b,a,eeg);
  114. end
  115. function m = local_events_to_mask(ev, T)
  116. m = false(1,T);
  117. for k=1:size(ev,1)
  118. a=max(1,floor(ev(k,1))+1); b=min(T,ceil(ev(k,2)));
  119. if b>=a, m(a:b)=true; end
  120. end
  121. end
  122. function msk = local_stage_mask(hypno, T, stages)
  123. msk = false(1,T);
  124. for e=1:numel(hypno)
  125. if any(hypno(e)==stages)
  126. a=(e-1)*30+1; b=min(T,e*30); msk(a:b)=true;
  127. end
  128. end
  129. if ~any(msk), msk=true(1,T); end % if hypnogram empty, do not gate
  130. end
  131. function tf = local_onset_in_sws(starts, hypno, stages)
  132. tf = false(numel(starts),1);
  133. for k=1:numel(starts)
  134. e=floor(starts(k)/30)+1;
  135. if e>=1 && e<=numel(hypno) && any(hypno(e)==stages), tf(k)=true; end
  136. end
  137. end
  138. function [se,sp,f1,kap,ppv] = local_metrics(TP,FP,TN,FN)
  139. se =TP/max(TP+FN,1); sp =TN/max(TN+FP,1); ppv=TP/max(TP+FP,1);
  140. f1 =2*ppv*se/max(ppv+se,eps);
  141. N=TP+FP+TN+FN; po=(TP+TN)/max(N,1);
  142. pe=((TP+FP)*(TP+FN)+(TN+FN)*(TN+FP))/max(N^2,1);
  143. kap=(po-pe)/max(1-pe,eps);
  144. end
  145. function [se,ppv,f1] = local_event_match(det, exp, sws, T, ovl)
  146. det=local_restrict(det,sws,T); exp=local_restrict(exp,sws,T);
  147. mE=false(size(exp,1),1);
  148. for i=1:size(det,1)
  149. for j=1:size(exp,1)
  150. if mE(j), continue; end
  151. o=min(det(i,2),exp(j,2))-max(det(i,1),exp(j,1));
  152. if o<=0, continue; end
  153. shorter=min(diff(det(i,:)),diff(exp(j,:)));
  154. if o/max(shorter,eps)>=ovl, mE(j)=true; break; end
  155. end
  156. end
  157. TP=sum(mE); se=TP/max(size(exp,1),1); ppv=TP/max(size(det,1),1);
  158. f1=2*ppv*se/max(ppv+se,eps);
  159. end
  160. function ev = local_restrict(ev, sws, T)
  161. keep=false(size(ev,1),1);
  162. for k=1:size(ev,1)
  163. a=max(1,floor(ev(k,1))+1); b=min(T,ceil(ev(k,2)));
  164. if b>=a && any(sws(a:b)), keep(k)=true; end
  165. end
  166. ev=ev(keep,:);
  167. end

validate_CAP_A1.m at commit 49885ef, under CC-BY-4.0 · at the source

Overview

Authors: Shaween Shukir1, Mostafa Moussa1, Yahya AlZaabi1, Ahsan Khandoker1, Zbigniew R Struzik2
  1. Healthcare Engineering Innovation Group (HEIG), Department of Biomedical Engineering and Biotechnology, Khalifa University, Abu Dhabi, United Arab Emirates
  2. Graduate School of Education, University of Tokyo, Bunkyo-ku, Tokyo, Japan
Journal: Frontiers in physiology, volume 17, article 1864664
Dates: received 24 April 2026; accepted 7 September 2026; published online 16 October 2026
Type: Methods article · Language: English
License: CC BY
Identifiers: DOI · PMCID PMC13719611
Status: code verified (how the code is found and verified)
Categories: EEG (modality), other (modality), depression (population), sleep disorders (population), methods / tools (subfield)
Methods: Spectral & time-frequency, Preprocessing, Connectivity, Statistics, Complexity, Evoked potentials, Physiology & signal measures
Keywords: cyclic alternating pattern (CAP), ECG, heart rate variability (HRV), major depressive disorder, sleep, obstructive sleep apnea
Citations: not cited yet (Europe PMC); 29 references in the paper

Abstract

Background: Multimodal sleep analysis typically requires separate processing pipelines for electroencephalography (EEG) and electrocardiography (ECG), which complicates joint investigation of sleep microstructure and autonomic regulation. Cyclic alternating pattern (CAP) scoring and heart rate variability (HRV) analysis are routinely performed in different software environments, limiting temporal alignment, reproducibility, and scalability.

Methods: We present an open-source MATLAB framework that integrates rule-based CAP A1 detection and HRV feature extraction within a single, time-synchronized workflow. The pipeline performs standardized EEG and ECG preprocessing, rule-based CAP A1 detection during slow-wave sleep (SWS) implementing the Terzano scoring criteria, R-peak detection via the Pan–Tompkins algorithm, and computation of time-domain, frequency-domain, and nonlinear HRV features by calling the open-source PhysioZoo/mhrv toolbox directly. CAP annotations are aligned with 5-minute ECG epochs through the shared polysomnography (PSG) time base. The complete code is released as an open-source repository to support reuse and extension.

Results: Because HRV features are computed by calling the PhysioZoo/mhrv toolbox directly, the pipeline introduces no reimplemented HRV routine and inherits that toolbox’s validated feature definitions. CAP A1 detection is provided as a rule-based implementation of published criteria and has not yet been benchmarked against expert manual scoring. A worked example on the OSAD+ subgroup (n = 18) demonstrates pipeline output across CAP and non-CAP epochs, and a healthy-sleep A1-event HRV reference is reported from the public CAP Sleep Database (15 controls, 785 A1 epochs) as a descriptive cross-database reference.

Conclusion: The framework provides a reproducible, rule-based, and modular tool for integrated EEG–ECG analysis of sleep microstructure and autonomic dynamics. By enabling synchronized CAP–HRV feature extraction in a single environment, it lowers the engineering barrier to brain–heart coupling research during sleep and provides a foundation for future extensions, including validated CAP detection, a matched-control study, a Python port, and cloud-based deployment.

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

ahsankhandoker/CAP-HRV

License: CC-BY-4.0
State: the link answers, verified on 31 October 2026
Evidence: files inventoried
Commit: 49885ef1f0ea7ca741dc6bc76c247c839cd46730, 16 October 2026
Languages: MATLAB (5)
Size: 9 files, 5 scripts
Software Heritage: not archived
Found in: “Data availability statement”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Signal Processing Toolbox (2 files)
Availability: 1 check, the latest on 31 October 2026: the link answers
  • 31 October 2026: the link answers
7 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;
  • 5 scripts, each with its path and the digest of its content;
  • 8 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 availability statement

The original contributions presented in the study are included in the article/supplementary material. Further inquiries can be directed to the corresponding author. The pipeline source code and demo dataset are available at https://github.com/ahsankhandoker/CAP-HRV and the control data are the public CAP Sleep Database (capslpdb) on PhysioNet.

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, 31 October 2026: the first record

Recorded: type, language, journal, volume, pages, dates, 5 authors, 6 keywords, 28 references.

Cite

This paper

Shukir, S., Moussa, M., AlZaabi, Y., Khandoker, A., & Struzik, Z. R. (2026). An automated EEG–ECG framework for CAP–HRV analysis: enabling brain–heart coupling studies in sleep disorders. Frontiers in physiology, 17, 1864664.

BibTeX

@article{shukir2026automated,
author = {Shukir, Shaween and Moussa, Mostafa and AlZaabi, Yahya and Khandoker, Ahsan and Struzik, Zbigniew R},
title = {{An automated EEG–ECG framework for CAP–HRV analysis: enabling brain–heart coupling studies in sleep disorders}},
journal = {Frontiers in physiology},
year = {2026},
month = oct,
volume = {17},
pages = {1864664},
publisher = {Frontiers Media SA},
issn = {1664-042X},
pmcid = {PMC13719611}
}

RIS

TY - JOUR
AU - Shukir, Shaween
AU - Moussa, Mostafa
AU - AlZaabi, Yahya
AU - Khandoker, Ahsan
AU - Struzik, Zbigniew R
TI - An automated EEG–ECG framework for CAP–HRV analysis: enabling brain–heart coupling studies in sleep disorders
T2 - Frontiers in physiology
J2 - Front Physiol
PY - 2026
DA - 2026/10/31
VL - 17
SP - 1864664
SN - 1664-042X
PB - Frontiers Media SA
LA - en
ER -

CSL-JSON

{
"id": "pmcid:PMC13719611",
"type": "article-journal",
"title": "An automated EEG–ECG framework for CAP–HRV analysis: enabling brain–heart coupling studies in sleep disorders",
"container-title": "Frontiers in physiology",
"author": [
{
"family": "Shukir",
"given": "Shaween"
},
{
"family": "Moussa",
"given": "Mostafa"
},
{
"family": "AlZaabi",
"given": "Yahya"
},
{
"family": "Khandoker",
"given": "Ahsan"
},
{
"family": "Struzik",
"given": "Zbigniew R"
}
],
"container-title-short": "Front Physiol",
"volume": "17",
"page": "1864664",
"PMCID": "PMC13719611",
"ISSN": "1664-042X",
"publisher": "Frontiers Media SA",
"language": "en",
"issued": {
"date-parts": [
[
2026,
10,
31
]
]
}
}

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/s42003-026-10156-5 [code]
Brain-heart interactions in late-onset major depressive disorder revealed by multimodal HRV-driven fMRI.
Journal: Communications biology
In common: depression, other, 4 references
[2] doi:10.3390/diagnostics12102510
L-Tetrolet Pattern-Based Sleep Stage Classification Model Using Balanced EEG Datasets.
Journal: Diagnostics (Basel, Switzerland)
In common: sleep disorders, methods / tools, EEG, 3 references
[3] doi:10.1186/s12911-024-02522-2
Machine learning-empowered sleep staging classification using multi-modality signals.
Journal: BMC medical informatics and decision making
In common: other, methods / tools, EEG, 3 references
[4] doi:10.3390/bios16010056 [code]
Modulation-Based Feature Extraction for Robust Sleep Stage Classification Across Apnea-Based Cohorts.
Journal: Biosensors
In common: Signal Processing Toolbox, sleep disorders, methods / tools, EEG, 2 references
[5] doi:10.3390/diagnostics16152317
MAF-SleepNet: A Multimodal Attention-Enhanced Fusion Network for Automatic Multi-Class Sleep Disorder Classification from Polysomnography.
Journal: Diagnostics (Basel, Switzerland)
In common: sleep disorders, EEG, 3 references
[6] doi:10.1038/s42003-025-08685-6 [code]
Dynamic brain-heart interaction in sleep characterized by variational phase-amplitude coupling framework.
Journal: Communications biology
In common: Signal Processing Toolbox, sleep disorders, EEG, 2 references
[7] doi:10.1038/s42003-025-09026-3 [code]
When your heart isn't in it anymore: cardiac correlates of task disengagement.
Journal: Communications biology
In common: Signal Processing Toolbox, other, EEG, 2 references
[8] doi:10.3389/fnagi.2024.1498687
Diagnostic accuracy of heart rate variability as a screening tool for mild neurocognitive disorder.
Journal: Frontiers in aging neuroscience
In common: depression, other, 3 references
[9] doi:10.1038/s41746-026-03406-7 [code]
AnySleep: a channel-agnostic deep learning system for high-resolution sleep staging in multi-center cohorts.
Journal: NPJ digital medicine
In common: sleep disorders, EEG, 3 references
[10] doi:10.3390/diagnostics16162609
Automated Multimodal Sleep Staging Using DWT-Based Wavelet Decomposition and Explainable Machine Learning with Signal Sculpting Topographies.
Journal: Diagnostics (Basel, Switzerland)
In common: other, methods / tools, EEG, 3 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/repo/github.com/ahsankhandoker/cap-hrv.svg)](https://openscicode.org/badge/repo/github.com/ahsankhandoker/cap-hrv)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/repo/github.com/ahsankhandoker/cap-hrv.svg
   :target: https://openscicode.org/badge/repo/github.com/ahsankhandoker/cap-hrv
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/repo/github.com/ahsankhandoker/cap-hrv"><img src="https://openscicode.org/badge/repo/github.com/ahsankhandoker/cap-hrv.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.