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-0.5.8.tar.gz (78.6 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-0.5.8-py3-none-any.whl (84.7 kB view details)

Uploaded Python 3

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

Hashes for mimic_iv_analysis-0.5.8.tar.gz
Algorithm Hash digest
SHA256 fdd6871ff2e9ad28f1c1cfcaabdcbcac512774040ae810bdc812659a89f27420
MD5 9d566a9426d4b1239c7705d22c0618cd
BLAKE2b-256 91b5cf0abfab0fa8c611c059c30ebdd2f32039833ded4e573dfaa518cb7f2837

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mimic_iv_analysis-0.5.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b1cbf94721a562a79487d6a3080bf76bbc849e2f09981cb07b1d732e65767a7e
MD5 7b2aab20d9a11481872dea06274802e9
BLAKE2b-256 8e3271f750bdcd258f5192fe9d9aa8e937d156776338bdadeb09668f562d47ee

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