ann2rr returns ghost beats
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- bioinformatics
Research direction
Start in hr.py at ann2rr, where rr_interval is calculated with calc_rr(ann.sample, fs=ann.fs). Reproduce the behavior with annotations containing labels such as (N and (AFIB, then verify that additional annotation locations no longer create surplus intervals or alter the rhythm at those points.
Written by the indexing model from the issue text.
Description
Hi,
If the input file, say `atr', contains additional labels, such as (N and (AFIB, ann2rr returns surplus rr intervals at the location of these labels.
Details:
In ann2rr in hr.py the rr intervals are calculated:
rr_interval = calc_rr(ann.sample, fs=ann.fs)
ann.sample contains the beat locations + the annotation location. Hence, ann2rr splits the rr interval which spans over each annotation location into two. This changes the heart rhythm at critical points. For example, at the beginning and end of atrial fibrillation, i.e. at (AFIB and (N.
- Dominant language
- Jupyter Notebook
- Stars
- 853
- Forks
- 322
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MIT-LCP/wfdb-python
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
MIT-LCP/wfdb-python#568 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
MIT-LCP/wfdb-python#557 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
MIT-LCP/wfdb-python#554 ·
-
WFDB path ignored Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
MIT-LCP/wfdb-python#545 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
MIT-LCP/wfdb-python#540 ·
All issues in MIT-LCP/wfdb-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
smart-on-fhir/cumulus-library#654 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
EBI-Metagenomics/mgnifams#62 ·