plate-data-transfer
Version:
Rearranging plate-layouts according to liquid handling steps
47 lines (40 loc) • 1.28 kB
text/typescript
import PlateTransformer from "../PlateTransformerClass";
// import PlatesObject from "./PlatesObject";
import instructions from "./transferInstructions/instructions_48_96";
import platemap96_1 from "./plateMaps/pltmap_96_1";
import platemap48_1 from "./plateMaps/pltmap_48_1";
import {
// PlateSizeType,
// PlateWellsType,
// PlatesObjectType,
// TransferInstructionsRowType,
// TransferInstructionsType,
// PlateMapRowType,
// PlateMapType,
PlateRelationshipType,
// StrategyType,
// SeparatorType,
// ClashStrategyType,
} from "../PlateTypes";
const plateRelationship_48: PlateRelationshipType = {
plate_map_id: "plate-48-1",
plate_instruction_id: "plate-48-1",
plate_size: 48,
plate_suffix: "_48",
};
const plateRelationship_96: PlateRelationshipType = {
plate_map_id: "plate-96-1",
plate_instruction_id: "plate-96-1",
plate_size: 96,
plate_suffix: "_96",
};
const plateTransformer = new PlateTransformer(
platemap48_1, //source plate map
platemap96_1, //destination plate map
instructions, //transfer instructions
plateRelationship_48, //source plate relationship
plateRelationship_96 //dest plate relationship
);
// plateTransformer.validateAndFormatData();
const ss = plateTransformer.transformPlates(null);
console.dir(ss);