Skip to main content

Python package to make interacting with life sciences manufacturing data quick and intuitive.

Project description

fathomdata

Python package to make interacting with life sciences manufacturing data quick and intuitive. Getting the data should be the easy part.

Usage


API setup

import fathomdata as fd

fd.set_api_key('xxx')

Get structured dataframes for documents that have been ingested

documents = fd.available_documents()
for index, row in documents.iterrows():
    document = fd.get_document(row['DocumentId'])
    print(document.get_materials_df())
    print(document.get_steps_df())
    print(document.get_parameters_df())

Ingest a new document into the dataset

new_document_id = fd.ingest_document(path="/path/to/document.pdf")

Create control charts for continuous process validation

import matplotlib.pyplot as plt

document_ids = documents['DocumentId'].tolist()

actuals = fd.get_parameter_actuals_across_documents(document_ids)
print(actuals)

titer_actuals = actuals.loc['Titer']
yield_actuals = actuals.loc['Yield']

first_document_params_df = fd.get_document(document_ids[0]).get_parameters_df()

titer_operating_limits = {
    'lower': first_document_params_df.at['Titer', 'Lower Operating Limit'],
    'upper': first_document_params_df.at['Titer', 'Upper Operating Limit']
}

yield_operating_limits = {
    'lower': first_document_params_df.at['Yield', 'Lower Operating Limit'],
    'upper': first_document_params_df.at['Yield', 'Upper Operating Limit']
}

fig, axes = plt.subplots(2, 1, sharex=True, figsize=(8,12))
titer_control_chart = fd.create_control_chart(axes[0], titer_actuals, titer_operating_limits['lower'], titer_operating_limits['upper'])
yield_control_chart = fd.create_control_chart(axes[1], yield_actuals, yield_operating_limits['lower'], yield_operating_limits['upper'])

Project details


Download files

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

Source Distribution

fathomdata-0.0.8.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

fathomdata-0.0.8-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file fathomdata-0.0.8.tar.gz.

File metadata

  • Download URL: fathomdata-0.0.8.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.2

File hashes

Hashes for fathomdata-0.0.8.tar.gz
Algorithm Hash digest
SHA256 63fb0a078e1e048fc1acf726dc5fc84c71e1fe41449cf73513db240c430bbb83
MD5 14fab51022ef128fa8c159564ed4057c
BLAKE2b-256 fe2e449f96d94a3051d8bf22596b26ed6955bc3da8eb8fdf168a11dd2a9f6975

See more details on using hashes here.

File details

Details for the file fathomdata-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: fathomdata-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.2

File hashes

Hashes for fathomdata-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 4fb7b80c3888ef740539e6819b9633838b7b08830a1d70e9fbce80bdb9084b4b
MD5 2d47b8a2dae5eabb765b02e84c4974e1
BLAKE2b-256 e73d923395956f149e0d53f8313a126cb2ffaa3ec21940bc71aa70ce468f3e73

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