Home / Python Library

Python Library — utsav

A pip-installable Python package bundling the microbiome and machine-learning helpers I use across projects.

Installation

pip install utsav

Grab the latest release straight from PyPI and import the helpers into any analysis.

pip install utsav==0.2.5

Releases

  • 0.2.5 · latest
  • 0.2.4
  • 0.2.3
  • 0.2.2
  • 0.2.1
  • 0.2.0
  • 0.1.0
py

What's inside

Two function families power most of the package:

  • Microbiome taxa function — reshape and summarize taxonomy tables.
  • Machine-learning function — fit and evaluate models on microbiome features.
Documentation

Input data format

Expected data-frame structure

Reference templates so your inputs match what each function expects.

Machine-learning function

Layout for samples × features with a target column.

Microbiome taxa function

Layout for taxonomy-by-sample abundance tables.

Diagram of the expected input data-frame structure
Expected input data-frame structure