def test_read_run_from_readouts(path_raw_data): test_run = Run.create(origin="envision", format="csv", dir=True, path=os.path.join(path_raw_data, TEST_FOLDER_LUMINESCENCE_CSV)) assert type(test_run) == Run assert len(test_run.plates) == 5
def test_read_run_from_config_insulin(path_run): test_run = Run.create(origin="config", path=os.path.join(path_run, TEST_RUN_CONFIG_INSULIN)) assert type(test_run) == Run assert len(test_run.plates) == 5 test_plate = test_run.plates["150622_AmAmAs384_SanofiBatches1.csv"] test_height = 16 assert test_plate.height == test_height assert test_run.height == test_height test_width = 24 assert test_plate.width == test_width assert test_run.width == test_width assert len(test_plate.read_outs) == 480 test_protocol = test_run.protocol() assert type(test_protocol) == Protocol test_plate_layout = test_run.plate_layout() assert type(test_plate_layout) == PlateLayout
def test_do_qc_siRNA(path_run): test_run = Run.create(origin="config", path=os.path.join(path_run, TEST_RUN_CONFIG_SIRNA)) test_qc = test_run.qc()
def test_do_qc_insulin(path_run): test_run = Run.create(origin="config", path=os.path.join(path_run, TEST_RUN_CONFIG_INSULIN)) test_qc = test_run.qc()