UNPKG

pdbe-molstar

Version:
18 lines (17 loc) 890 B
import { MinimizeRmsd } from 'molstar/lib/mol-math/linear-algebra/3d/minimize-rmsd'; import { Structure } from 'molstar/lib/mol-model/structure'; export type SuperpositionResult = { status: 'success'; superposition: MinimizeRmsd.Result & { nAlignedElements: number; }; } | { status: 'zero-overlap'; superposition: undefined; } | { status: 'failed'; superposition: undefined; }; /** Status of pairwise superposition (success = superposed, zero-overlap = failed to superpose because the two structures have no matchable elements, failed = failed to superpose for other reasons) */ export type SuperpositionStatus = SuperpositionResult['status']; export declare function superposeStructuresByBiggestCommonChain(structA: Structure, structB: Structure, allowedComponentsA: string[] | undefined, allowedComponentsB: string[] | undefined): SuperpositionResult;