biomedwaveforms
Visualizing various biomedical waveforms, like EKGs
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.1%) to scientific vocabulary
Repository
Visualizing various biomedical waveforms, like EKGs
Basic Info
- Host: GitHub
- Owner: eotles
- Language: HTML
- Default Branch: main
- Homepage: http://eotles.com/BiomedWaveforms/
- Size: 55.7 KB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
- Releases: 2
Metadata Files
README.md
BiomedWaveforms
Web software for visualizing various biomedical waveforms, like EKGs.
You can generate a new waveform by calling a couple of lines of JavaScript. For example, here's how you can use it to simulate an EKG with a wide QRS complex: ```
<script type="module">
import { DefaultEKGMonitor } from 'https://cdn.jsdelivr.net/gh/eotles/BiomedWaveforms@main/assets/js/index.js';
DefaultEKGMonitor(
{qDuration: 60, rDuration: 70, sDuration: 60},
'wideQRSEKGMonitor'
);
</script>
</body>
``` This is actually the code used to generate the wide QRS example from above. It's an HTML wrapper around a very short javascript module.
I'm not very good a javascript, or web development (I actually hate it). So, let's walk through the javascript piece by piece.
First, we need to set up the place we are going to draw the EKG.
<canvas id="wideQRSEKGMonitor" width="400" height="160"></canvas>
This makes an empty HTML canvas named wideQRSEKGMonitor (what a gorgeous variable name).
Second, we need to get the BiomedWaveforms code.
Let's use the JSDeliv approach as its easier than having to download my code and re-serve it with this code.
import { DefaultEKGMonitor } from 'https://cdn.jsdelivr.net/gh/eotles/BiomedWaveforms@main/assets/js/index.js';
This imports the BiomedWaveforms javascript codebase from JSDeliv, simple (although, it took me several attempts to get correct).
Third, we draw the EKG using parameters.
DefaultEKGMonitor(
{qDuration: 60, rDuration: 70, sDuration: 60},
'wideQRSEKGMonitor'
);
The DefaultEKGMonitor is a helper function that does a bunch of stuff for you.
It generates the EKG waveform using the parameters defined inside the curly brackets:{qDuration: 60, rDuration: 70, sDuration: 60} (this give us our QRS wwiiddeenneess).
And it plots the EKG waveform to the wideQRSEKGMonitor canvas we defined above.
That's it.
You should be able to copy-paste that code into a blank file named whateveryouwant.html and your browser should be able to plot a wide QRS EKG for you.
Owner
- Name: Erkin Otles
- Login: eotles
- Kind: user
- Location: Ann Arbor
- Company: University of Michigan
- Website: eotles.com
- Repositories: 41
- Profile: https://github.com/eotles
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this software, please cite it as below." authors: - family-names: "Ötleş" given-names: "Erkin" orcid: "https://orcid.org/0000-0003-3169-6832" title: "Biomed Waveforms" version: 1.0.0 doi: 10.5281/zenodo.10041993 date-released: 2023-10-25 url: "https://github.com/eotles/BiomedWaveforms"
GitHub Events
Total
- Watch event: 2
Last Year
- Watch event: 2