Skip to main content

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

  1. Create a virtual environment:
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  1. 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

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run tests
  5. Submit a pull request

License

MIT

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mimic_iv_analysis-1.1.0-py3-none-any.whl (196.8 kB view details)

Uploaded Python 3

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

Hashes for mimic_iv_analysis-1.1.0.tar.gz
Algorithm Hash digest
SHA256 2fe2d063005bd7ef14472b24106d1f6eda08d5687367ef413c0b9c0656c6ab74
MD5 12ddc9349f73f743d7f0e8014cf221fe
BLAKE2b-256 b8af8d136ca75ecc531379a8678b6b13b9bdb0ddfd67eed5862204eeaaaefcab

See more details on using hashes here.

File details

Details for the file mimic_iv_analysis-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mimic_iv_analysis-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef2ebbc3c2b13ce53fb31b3aa97e42a770f098bf941afacc0d77412256fddbc3
MD5 22e0452f96ab381de0d996727414d9ff
BLAKE2b-256 b70b78b46190b803c1775136acb3e82c0253196c1d543e00accc678288ee0a78

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page