Skip to main content

Applied Biostats Helper

A Python package that simplifies environment setup for the Applied Biostats course, particularly for Google Colab notebooks. This package replaces complex setup blocks with a single function call.

Features

  • One-line environment setup for Colab and local Jupyter notebooks
  • Automatic dependency management (installs otter-grader if needed)
  • Seamless test file downloading from GitHub repositories
  • Environment detection (automatically detects Colab vs local)
  • Clean error handling and user feedback

Installation

pip install git+https://github.com/DamLabResources/applied-biostats-helper.git.

From PyPI (when published)

pip install applied-biostats-helper

Local Development

git clone https://github.com/DamLabResources/applied-biostats-helper.git
cd applied-biostats-helper
pip install -e .
```## Quick Start

### Before (Complex setup block)

```python
# Setting up the Colab environment. DO NOT EDIT!
import os
import warnings
warnings.filterwarnings("ignore")

try:
    import otter
except ImportError:
    ! pip install -q otter-grader==4.0.0
    import otter

if not os.path.exists('walkthrough-tests'):
    zip_files = [f for f in os.listdir() if f.endswith('.zip')]
    assert len(zip_files)>0, 'Could not find any zip files!'
    assert len(zip_files)==1, 'Found multiple zip files!'
    ! unzip {zip_files[0]}

grader = otter.Notebook(colab=True, tests_dir='walkthrough-tests')

After (Simple one-liner)

from applied_biostats import setup_environment

grader = setup_environment('Module02_walkthrough')

Usage

Main Function: setup_environment()

The primary function that handles all setup tasks:

from applied_biostats import setup_environment

# Basic usage
grader = setup_environment('Module02_walkthrough')

# With custom branch
grader = setup_environment('Module02_walkthrough',
                          branch='dev')

Contributing

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

Support

For issues and questions:

  • Open an issue on GitHub
  • Contact the course instructors

Changelog

v0.2.1

  • Pin pingouin to >=0.6.1,<0.7 so Colab does not upgrade pandas or NumPy

v0.2.0

  • Adding development environment detection

v0.1.0

  • Initial release
  • Basic environment setup functionality
  • GitHub integration for test file downloads
  • Colab and local Jupyter support

Metadata

Release files for applied-biostats-helper 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for applied-biostats-helper 0.2.1
File Size Uploaded Provenance Actions
applied_biostats_helper-0.2.1.tar.gz 4.8 kB Without provenance Details for applied_biostats_helper-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for applied-biostats-helper 0.2.1
File Interpreter ABI Platform Actions
applied_biostats_helper-0.2.1-py3-none-any.whl Python 3 none any Details for applied_biostats_helper-0.2.1-py3-none-any.whl

Total release size: 9.8 kB

Release files / applied_biostats_helper-0.2.1.tar.gz

Download URL applied_biostats_helper-0.2.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
75480185a1e758c8c3c75443a0d3231b22ff8e7aaca58a348e618a56b08754e4
BLAKE2b-256 checksum
How to use checksums
f6dcc48b4d2c42386fed4adcd5b7c9843d8768aaf6c679822b9350d6265929e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.13

Release files / applied_biostats_helper-0.2.1-py3-none-any.whl

Download URL applied_biostats_helper-0.2.1-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
685a6b1e9391b2a8f3e09c9015fc2eb0fc5530e6e80e6b24435efd7a0972e05b
BLAKE2b-256 checksum
How to use checksums
f8640e392acc84f16897d6cf4faafcf7dd558c76961e40171bd7f23949dc53b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.13

Security for applied-biostats-helper 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page