Skip to main content

Avansight Python utility package

Project description

Avnst Util

A Python utility package for clinical trial data analysis

Features

  • Time Alignment: Tools for aligning and comparing clinical trial event timings
  • TEAE Flag Derivation: Utilities for determining Treatment Emergent Adverse Events
  • Data Validation: Functions for checking missing or unknown values in clinical data

Installation

pip install avnst_util

Usage

Time Alignment

from avnst_util.time_alignment import align_time

# Align time for an event
start_time, end_time = align_time(
    date="2023-01-01",
    time="14:30",
    event_name="First Dose"
)

TEAE Flag Derivation

from avnst_util.teae_flag_deriver import derive_teae_flag

# Determine if an AE occurred after first dose
teae_flag = derive_teae_flag(
    first_dose_date="2023-01-01",
    first_dose_time="14:30",
    ae_start_date="2023-01-02",
    ae_start_time="09:00",
    opID="SUBJ001"
)

The TEAE flag returns:

  • 1: AE definitely occurred after first dose
  • 0: AE definitely occurred before first dose
  • 2: AE timing overlaps with first dose timing or timing uncertain
  • None: Unable to determine timing

Requirements

  • Python >= 3.6
  • pandas >= 1.0.0

Development

To set up the development environment:

  1. Clone the repository
  2. Install development dependencies:
pip install -e .

Contact

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

avnst_util-0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

avnst_util-0.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file avnst_util-0.1.tar.gz.

File metadata

  • Download URL: avnst_util-0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for avnst_util-0.1.tar.gz
Algorithm Hash digest
SHA256 8526e917cc8dbc981f561c2832ba8de43e5099e3cac5aff05879224452c8b65b
MD5 9f6d2dd6df81626553e9dbe7c31c6931
BLAKE2b-256 8843d0e93218b925417e7835d6eb2f7612241edc94177935ef4ec5bf68888774

See more details on using hashes here.

File details

Details for the file avnst_util-0.1-py3-none-any.whl.

File metadata

  • Download URL: avnst_util-0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for avnst_util-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33188cc65e8cb394218bd24047a93807ff6fd056880685f31ab0b1f3a2e108f6
MD5 135cc8b817bd24e6e88a3beff9445810
BLAKE2b-256 87fb7899488f7b204cf82a9828b280482d1168b5a5d3545c3c01f5e670b14cff

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