def test_read_plate_layout_muscle_miRNA(path): test_plate_layout = plate_layout_io.read_csv(os.path.join(path, TEST_LAYOUT_muscle_miRNA)) assert test_plate_layout == TEST_LAYOUT_MUSCLE test_plate_layout = plate_layout_io.read_csv(os.path.join(path, TEST_LAYOUT_muscle_miRNA_medium)) assert test_plate_layout == TEST_LAYOUT_MUSCLE_MEDIUM test_plate_layout = plate_layout_io.read_csv(os.path.join(path, TEST_LAYOUT_muscle_miRNA_mock))
def test_read_plate_layout_muscle_miRNA(path): test_plate_layout = plate_layout_io.read_csv( os.path.join(path, TEST_LAYOUT_muscle_miRNA)) assert test_plate_layout == TEST_LAYOUT_MUSCLE test_plate_layout = plate_layout_io.read_csv( os.path.join(path, TEST_LAYOUT_muscle_miRNA_medium)) assert test_plate_layout == TEST_LAYOUT_MUSCLE_MEDIUM test_plate_layout = plate_layout_io.read_csv( os.path.join(path, TEST_LAYOUT_muscle_miRNA_mock))
def create(path, format=None): """ Create ``PlateLayout`` instance. Create ``PlateLayout`` instance. Args: path (str): Path to input file or directory format (str): Format of the input file, at current not specified .. todo:: Write checks for ``format`` and ``path``. """ if format == 'csv': layout = plate_layout_io.read_csv(path) path, file = os.path.split(path) return PlateLayout(name=file, layout=layout) elif format == 'pickle': with open(file, 'rb') as fh: return pickle.load(fh) else: raise Exception("Format: {} is not implemented in " "PlateLayout.create()".format(format))
def test_read_plate_layout_insulin(path): test_plate_layout = plate_layout_io.read_csv( os.path.join(path, TEST_LAYOUT_insulin))
def test_read_plate_layout_insulin(path): test_plate_layout = plate_layout_io.read_csv(os.path.join(path, TEST_LAYOUT_insulin))