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-1.1.0.tar.gz
(183.9 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-1.1.0.tar.gz.
File metadata
- Download URL: mimic_iv_analysis-1.1.0.tar.gz
- Upload date:
- Size: 183.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fe2d063005bd7ef14472b24106d1f6eda08d5687367ef413c0b9c0656c6ab74
|
|
| MD5 |
12ddc9349f73f743d7f0e8014cf221fe
|
|
| BLAKE2b-256 |
b8af8d136ca75ecc531379a8678b6b13b9bdb0ddfd67eed5862204eeaaaefcab
|
File details
Details for the file mimic_iv_analysis-1.1.0-py3-none-any.whl.
File metadata
- Download URL: mimic_iv_analysis-1.1.0-py3-none-any.whl
- Upload date:
- Size: 196.8 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 |
ef2ebbc3c2b13ce53fb31b3aa97e42a770f098bf941afacc0d77412256fddbc3
|
|
| MD5 |
22e0452f96ab381de0d996727414d9ff
|
|
| BLAKE2b-256 |
b70b78b46190b803c1775136acb3e82c0253196c1d543e00accc678288ee0a78
|