@rcsb/rcsb-saguaro-app 4.4.0-models.3 → 4.4.0-models.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
- import { Feature } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
2
- import { RcsbFvDisplayTypes, RcsbFvTrackDataElementInterface } from '@rcsb/rcsb-saguaro';
1
+ import { AnnotationFeatures, Feature } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
2
+ import { RcsbFvDisplayTypes } from '@rcsb/rcsb-saguaro';
3
3
  import { AnnotationConfigInterface, RcsbAnnotationConfigInterface } from "./AnnotationConfigInterface";
4
+ import { AnnotationRequestContext } from "../RcsbCollectTools/AnnotationCollector/AnnotationCollectorInterface";
4
5
  export interface RcsbMergedTypesInterface {
5
6
  merged_types: Array<string>;
6
7
  title: string;
@@ -10,28 +11,21 @@ export interface RcsbMergedTypesInterface {
10
11
  export declare class RcsbAnnotationConfig {
11
12
  private readonly annotationConfigMap;
12
13
  private readonly annotationMap;
13
- private readonly externalAnnotationsOrder;
14
- private readonly instanceAnnotationsOrder;
15
- private readonly entityAnnotationsOrder;
14
+ private readonly annotationTypes;
16
15
  private readonly mergedTypes;
17
- private readonly addedTypes;
18
16
  constructor(acm?: AnnotationConfigInterface);
19
17
  getConfig(type: string): RcsbAnnotationConfigInterface;
20
18
  allTypes(): Set<string>;
21
19
  uniprotOrder(): Array<string>;
22
20
  instanceOrder(): Array<string>;
23
21
  entityOrder(): Array<string>;
24
- buildAndAddType(d: Feature, trackTitle?: string, titleSuffix?: string, typeSuffix?: string): string;
25
- private addNewType;
26
- sortAndIncludeNewTypes(): void;
27
- private checkAndIncludeNewType;
28
- private cleanAddedTypes;
22
+ getAnnotationType(requestConfig: AnnotationRequestContext, ann: AnnotationFeatures, feature: Feature): Promise<string>;
29
23
  isMergedType(type: string): boolean;
30
24
  getMergeConfig(type: string): RcsbMergedTypesInterface;
31
- annotationMergedPreference(type: string, a: RcsbFvTrackDataElementInterface, b: RcsbFvTrackDataElementInterface): boolean;
25
+ private addNewType;
26
+ private checkAndIncludeNewType;
32
27
  static randomRgba(str?: string): string;
33
- addProvenance(type: string, provenanceName: string): void;
28
+ private addProvenance;
34
29
  addMultipleProvenance(type: string, provenanceList: Array<string>): void;
35
- getProvenanceList(type: string): Array<string>;
36
- isTransformedToNumerical(type: string): boolean;
30
+ private initTypes;
37
31
  }
@@ -17,6 +17,5 @@ export declare class AnnotationBlockManager implements BlockManagerInterface<[An
17
17
  private orderedTypes;
18
18
  private processAnnotations;
19
19
  private addFeature;
20
- private buildType;
21
20
  private mergeTracks;
22
21
  }
@@ -5,6 +5,8 @@ export declare class TagDelimiter {
5
5
  static readonly alignmentTitle: string;
6
6
  static readonly operatorComposition: string;
7
7
  static readonly assembly: string;
8
+ private static rcsbEntityRegExp;
9
+ private static rcsbInstanceRegExp;
8
10
  static parseEntity(rcsbId: string): {
9
11
  entryId: string;
10
12
  entityId: string;
@@ -13,4 +15,5 @@ export declare class TagDelimiter {
13
15
  instanceId: string;
14
16
  entryId: string;
15
17
  };
18
+ static isEntityOrInstanceId(rcsb: string): boolean;
16
19
  }