plate-data-transfer
Version:
Rearranging plate-layouts according to liquid handling steps
27 lines (22 loc) • 741 B
text/typescript
import { getPlate } from "well-id-formatter";
import { PlateMapType } from "../../PlateTypes";
const platemap96_1: PlateMapType = getPlate(96).map((plate_wells) => {
return {
Plate: "plate-96-1",
Well: plate_wells.padded,
val1: plate_wells.row,
val2: plate_wells.column,
rando: Math.random() < 0.1 ? null : Math.round(Math.random() * 100) / 100,
};
});
let platemap96_2: PlateMapType = getPlate(96).map((plate_wells) => {
return {
Plate: "plate-96-2",
Well: plate_wells.padded,
val1: Math.random() < 0.1 ? null : plate_wells.row,
val2: plate_wells.column,
rando: Math.round(Math.random() * 100) / 100,
};
});
platemap96_2 = [...platemap96_1, ...platemap96_2];
export default platemap96_2;