UNPKG

@rcsb/rcsb-saguaro-app

Version:
30 lines (29 loc) 1.52 kB
import { PolymerEntityInstanceInterface } from "../../RcsbCollectTools/DataCollectors/PolymerEntityInstancesCollector"; import { RcsbFvTrackDataElementInterface } from "@rcsb/rcsb-saguaro/lib/RcsbDataManager/RcsbDataManager"; import { SequenceReference, AnnotationReference } from "@rcsb/rcsb-api-tools/lib/RcsbGraphQL/Types/Borrego/GqlTypes"; export interface AlignmentContextInterface { queryId: string; targetId: string; from: SequenceReference | undefined; to: SequenceReference | AnnotationReference | undefined; targetSequenceLength?: number; querySequenceLength?: number; } export declare class PolymerEntityInstanceTranslate { private readonly rawData; private readonly instanceAsymToAuth; private readonly instanceAuthToAsym; private readonly instanceAsymToEntity; private readonly entityToAsym; private readonly instanceAuthResIds; private readonly INDEX_NAME; constructor(data: Array<PolymerEntityInstanceInterface>); getData(): Array<PolymerEntityInstanceInterface>; translateEntityToAsym(id: string): string[] | undefined; translateAsymToEntity(id: string): string | undefined; translateAsymToAuth(id: string): string | undefined; translateAuthToAsym(id: string): string | undefined; translateAuthResId(asymId: string, index: number): string | undefined; addAuthorResIds(e: RcsbFvTrackDataElementInterface, alignmentContext: AlignmentContextInterface): RcsbFvTrackDataElementInterface; private helperAddAuthorResIds; }