Convert dates to days

Tool to do the following operations:

  • Reads meta data file, and based on the timepoint information given, convert them to days for a samples belonging to a given patient_id

  • Supports following date formats:

    • MM/DD/YY

    • M/D/YY

    • MM/D/YY

    • M/DD/YY

    • MM/DD/YYYY

    • YYYY/MM/DD

Requirements

  • pandas

  • typing

  • arrow

Example command

python convert_dates_to_days.py -i ./example_input.txt -t2 "SCREEN"

Usage

Last updated

Was this helpful?