Samples and Results

Setup


In [2]:
import uuid

from pprint import pprint
from datetime import date

from ovation.lab.session import connect

API Key

Create an API key in the Ovation application at Account > Settings > API Keys (https://support.ovation.io/article/52-api-overview)

Connection

s is a Session object representing a connection to the Ovation API


In [ ]:
s = connect(input("Email: "), api=constants.LAB_STAGING_HOST) # use constants.LAB_PRODUCTION_HOST for production

Sample results

results.get_sample_results gets all Workflow Sample Results for the sample, result type, and workflow. If workflow is omitted, all sample results for the given type are returned.

Get the quantification results for a sample:


In [ ]:
sample_id = input('Sample Id: ')

In [ ]:
results = results.get_sample_results(s, result_type='quantification', sample_id=sample_id)