In [ ]:
import uuid
from pprint import pprint
from datetime import date
from ovation.session import connect_lab
s
is a Session
object representing a connection to the Ovation API
In [ ]:
s = connect_lab(input("Email: "), api='https://lab-services-staging.ovation.io')
Organization id
required for all calls.
In [ ]:
organization_id = input('Organization id: ')
Collect all samples from a Workflow by ID (this would, for example give all samples in a sequencing
workflow after batch creation).
In [ ]:
workflow_id = input('Workflow ID: ')
In [ ]:
samples = s.get(s.path('samples'),
params={'workflow_id': workflow_id, 'organization_id': organization_id})
sample_ids = [s.id for s in samples.samples]
Collect all WorkflowSampleResults
for samples in the batch of type library-dilution
In [ ]:
for sample_id in sample_ids:
sample_results = s.get(s.path('workflow_sample_results'),
params={'sample_id': sample_id, 'result_type': 'library-dilution'})
In [ ]:
sample_results
In [ ]:
sample_ids