GithubHelp home page GithubHelp logo

025georgialynny / afib Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 455.91 MB

Miscellaneous Code For Analysis and Data Management of MIT-BIH Atrial Fibrillation Database

License: MIT License

Python 0.77% Shell 0.03% R 6.80% MATLAB 68.96% Jupyter Notebook 0.46% Roff 0.01% HTML 20.03% CSS 0.36% Makefile 2.57%
r python bash afib

afib's Introduction

afib

Miscellaneous Code For Analysis and Data Management of MIT-BIH Atrial Fibrillation Database

database can be found at: https://physionet.org/physiobank/database/afdb/

wfdb package used for code can be found at: https://archive.physionet.org/physiotools/wfdb-linux-quick-start.shtml

The extraction of afdb was done with Linux Bash Script and all files found in database link

File paths need to be changed in bash, python, and R script to match your directories

runme.sh needs all files found at database link

makesamples.R needs merge*.cxv files found in /oldmerge

rmsamptrans.R needs files found in /mergecurrent and /sampscurrent

merge.py needs *.txt found in /extracted

 atr*.txt is extracted annotations of heartbeat type 
 
 qrs*.txt is extracted RR-Intervals

merge*.csv === new merged files with additional data

           found in /mergecurrent

trans*.csv ==== transition matrices for each full data file

           found in /transcurrent

samps*.csv ==== csv of 45 second samples taken for each individual

            found in /sampscurrent
                includes samps with mix afib/normal readings
            found in /sampsnotrans
                includes only samples with all afib or all non-afib readings

merge:

 RRint, endsample#, annotation, running mean, running seconds, transition(1 = S, 2 = R, 3 = L)

trans:

 S = short (x<.85\*runningmean), R = regular (.85\*runningmean<x<1.15\*runningmean),      
 L = long (x>1.15\*runningmean) where x is rr interval in seconds
    
 Columns = From, Rows = To

samps:

 ID, start sample#, end sample#, length(beats), length(seconds), afib (t/f), proportions of    
 trans matrix(ss, sr, sl, rs, rr, rl ls lr, ll)

Python 2.7.15 was used for compiling

R 3.6.0 was used for R compiling

afib's People

Contributors

025georgialynny avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.