A data science and machine learning framework for nursing research
Project description
MIMIC-IV Analysis
A comprehensive analytical toolkit for exploring and modeling data from the MIMIC-IV clinical database.
Features
- Exploratory Data Analysis
- Patient Trajectory Visualization
- Order Pattern Analysis
- Predictive Modeling
Installation
Prerequisites
- Python 3.12 or higher
- pip or conda package manager
Option 1: Using pip
pip install -e ".[dev]" # Install with development dependencies
Option 3: Manual Installation
- Create a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
- Install dependencies:
pip install -e ".[dev]" # Install with development dependencies
Development
Code Style
This project uses:
- black for code formatting
- isort for import sorting
- flake8 for style guide enforcement
- mypy for static type checking
To format code:
black .
isort .
To check code:
flake8 .
mypy .
Running Tests
pytest tests/
pytest --cov=mimic_iv_analysis tests/ # With coverage
Project Structure
mimic_iv_analysis/
├── src/ # Source code directory
│ ├── __init__.py # Package initialization
│ ├── analysis/ # Analysis modules
│ ├── data/ # Data handling modules
│ ├── core/ # Core functionality
│ ├── utils/ # Utility functions
│ └── visualization/ # Visualization modules
├── tests/ # Test suite
│ ├── unit/ # Unit tests
│ └── integration/ # Integration tests
├── docs/ # Documentation
├── scripts/ # Utility scripts
│ └── install.sh # Installation script
├── setup_config/ # Configuration files
├── .env.example # Example environment variables
├── .gitignore # Git ignore rules
├── LICENSE # Project license
├── pyproject.toml # Project configuration
├── README.md # Project documentation
└── setup.py # Setup configuration
Usage
Install the package from testpypi
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ mimic_iv_analysis==0.5.8
Run the Streamlit dashboard:
# If installed with pip:
mimic-iv
# Or directly:
streamlit run src/visualization/app.py
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests
- Submit a pull request
License
MIT
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
mimic_iv_analysis-0.5.8.tar.gz
(78.6 kB
view details)
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 mimic_iv_analysis-0.5.8.tar.gz.
File metadata
- Download URL: mimic_iv_analysis-0.5.8.tar.gz
- Upload date:
- Size: 78.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdd6871ff2e9ad28f1c1cfcaabdcbcac512774040ae810bdc812659a89f27420
|
|
| MD5 |
9d566a9426d4b1239c7705d22c0618cd
|
|
| BLAKE2b-256 |
91b5cf0abfab0fa8c611c059c30ebdd2f32039833ded4e573dfaa518cb7f2837
|
File details
Details for the file mimic_iv_analysis-0.5.8-py3-none-any.whl.
File metadata
- Download URL: mimic_iv_analysis-0.5.8-py3-none-any.whl
- Upload date:
- Size: 84.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1cbf94721a562a79487d6a3080bf76bbc849e2f09981cb07b1d732e65767a7e
|
|
| MD5 |
7b2aab20d9a11481872dea06274802e9
|
|
| BLAKE2b-256 |
8e3271f750bdcd258f5192fe9d9aa8e937d156776338bdadeb09668f562d47ee
|