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 dose0: AE definitely occurred before first dose2: AE timing overlaps with first dose timing or timing uncertainNone: Unable to determine timing
Requirements
- Python >= 3.6
- pandas >= 1.0.0
Development
To set up the development environment:
- Clone the repository
- Install development dependencies:
pip install -e .
Contact
- Author: Eric Liu
- Email: txender4@gmail.com
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8526e917cc8dbc981f561c2832ba8de43e5099e3cac5aff05879224452c8b65b
|
|
| MD5 |
9f6d2dd6df81626553e9dbe7c31c6931
|
|
| BLAKE2b-256 |
8843d0e93218b925417e7835d6eb2f7612241edc94177935ef4ec5bf68888774
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33188cc65e8cb394218bd24047a93807ff6fd056880685f31ab0b1f3a2e108f6
|
|
| MD5 |
135cc8b817bd24e6e88a3beff9445810
|
|
| BLAKE2b-256 |
87fb7899488f7b204cf82a9828b280482d1168b5a5d3545c3c01f5e670b14cff
|