New methodology to identify waves, peaks, and valleys from epidemic curve
Project description
EpidemicKabu a new method to identify epidemic waves and their peaks and valleys
Kabu is a new methodology to identify waves, peaks, and valleys from epidemic curve. The algorithm in explain in doi:.. as well as some examples.
Description of files in this repository:
-
epidemickabu/contains the modules of the package:-
kabu.pyis the main module. It makes the necessary calculations for the subsequent identification of waves, and peaks and valleys. The main input is a dataset with two variables (i.e., cases, and dates) and the kernels to smooth both the epidemic curve and its first derivative with a Gaussian filter. -
kabuWaves.pyis a module to estimate the waves. You could set an optional threshold to filter the days delimiting the waves. There are some examples in examples/ that give you and idea of the magnitude of this value. You can also filter the waves changing the kernel's value. -
kabuPeaksValleys.pyis a module to estimate the Peaks and Valleys of each identified wave.
-
-
examples/contains the files to replicate examples of how to use the library. The examples are made with COVID-19 data for 15 countries:data/is the input data used in all the research.dataframes/is created to save the output dataframes.plots/is created to save the output plots.exampleUseLibrary.ipynbshows basic examples to use the library.exploringLibrary/.ipynbexplores attributes and methods from the classes in the library.- The other files show the steps for some analysis made with the results obtained with the library for COVID-19 data.
-
test/contains the files to test the code. -
additional/contains some notebooks showing the step by step of the algorithm.
Installation in Python
NOTE: This project was made in Python 3.10.6
- Install the library using
pippip install epidemickabu
- Import the library
import EpidemicKabu as ek
Installation in R
- Install and load the package
reticulatewhich provides an interface between R and Pythoninstall.packages("reticulate")
andlibrary(reticulate)
- Configure Python Environment
use_python("/path/to/python")
oruse_virtualenv("/path/to/your/virtualenv")
- Install and import the package
EpidemicKabupy_install("epidemickabu")
andek <- import("EpidemicKabu")
Contributing
This project is in progress and it requires some improvments. Therefore, if you have any suggestion that would make this better, please fork the repository and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/improvments) - Commit your Changes (
git commit -m 'Adding some improvment) - Push to the Branch (
git push origin feature/improvments) - Open a Pull Request
Contact
Acknowledgments
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file epidemickabu-0.2.7.tar.gz.
File metadata
- Download URL: epidemickabu-0.2.7.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3be051287f7e873ccb1c8e0c53dec52da5f317c7fc22a67252d4c659539dbfd6
|
|
| MD5 |
5c795927abb59bb6f194f708c586a3c3
|
|
| BLAKE2b-256 |
c0ead00cbf6a731f72210e914f681ae888fb54e32f440cc3b0c518034bcea452
|
File details
Details for the file epidemickabu-0.2.7-py3-none-any.whl.
File metadata
- Download URL: epidemickabu-0.2.7-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5aafb9560c0cb55b53fac0106da8924d04276c1532e3f94fb2125efee6a11088
|
|
| MD5 |
e3daab985491231c5f7f97c196ba17ad
|
|
| BLAKE2b-256 |
c1ca714177c54fd66be12971bce363866d54021990c6a949e0ee1ca98502f2b4
|