@rcsb/rcsb-saguaro-app 3.2.1 → 3.3.0
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.
- package/CHANGELOG.md +6 -0
- package/build/dist/RcsbAnnotationConfig/RcsbAnnotationConfig.d.ts +2 -1
- package/build/dist/RcsbCollectTools/AnnotationCollector/AnnotationCollector.d.ts +0 -1
- package/build/dist/RcsbCollectTools/AnnotationCollector/AnnotationCollectorInterface.d.ts +3 -2
- package/build/dist/RcsbCollectTools/AnnotationCollector/AnnotationTrackManager.d.ts +2 -1
- package/build/dist/RcsbCollectTools/CoreCollectorInterface.d.ts +0 -1
- package/build/dist/RcsbCollectTools/SequenceCollector/SequenceCollector.d.ts +0 -1
- package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvAbstractModule.d.ts +1 -0
- package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvEntity.d.ts +1 -0
- package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotEntity.d.ts +1 -0
- package/build/dist/app.js +4 -4
- package/build/dist/app.js.map +1 -1
- package/build/dist/worker.js +1 -1
- package/build/dist/worker.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
[Semantic Versioning](https://semver.org/)
|
|
4
4
|
|
|
5
|
+
## [3.3.0] - 2021-11-30
|
|
6
|
+
### Annotations configuration improvements
|
|
7
|
+
- Removed interface `CollectAnnotationsInterface` attribute `addTargetInTitle`
|
|
8
|
+
- Added `titleSuffix` and `trackTitle` attributes to `CollectAnnotationsInterface`
|
|
9
|
+
- These new attributes are defined as async functions (ann: AnnotationFeatures, d: Feature) => Promise<string|undefined> to provide or modify track titles based on the features content
|
|
10
|
+
|
|
5
11
|
## [3.2.1] - 2021-11-10
|
|
6
12
|
### Minor configuration
|
|
7
13
|
- Dropdown title configuration is exposed in `InstanceSequenceConfig` attribute `dropdownTitle`
|
|
@@ -21,10 +21,11 @@ export declare class RcsbAnnotationConfig {
|
|
|
21
21
|
uniprotOrder(): Array<string>;
|
|
22
22
|
instanceOrder(): Array<string>;
|
|
23
23
|
entityOrder(): Array<string>;
|
|
24
|
-
buildAndAddType(d: Feature,
|
|
24
|
+
buildAndAddType(d: Feature, mainTitle?: string, titleSuffix?: string): string;
|
|
25
25
|
private addNewType;
|
|
26
26
|
sortAndIncludeNewTypes(): void;
|
|
27
27
|
private checkAndIncludeNewType;
|
|
28
|
+
private cleanAddedTypes;
|
|
28
29
|
isMergedType(type: string): boolean;
|
|
29
30
|
getMergedType(type: string): string;
|
|
30
31
|
annotationMergedPreference(type: string, a: RcsbFvTrackDataElementInterface, b: RcsbFvTrackDataElementInterface): boolean;
|
|
@@ -20,7 +20,6 @@ export declare class AnnotationCollector implements AnnotationCollectorInterface
|
|
|
20
20
|
private externalTrackBuilder;
|
|
21
21
|
constructor(acm?: AnnotationConfigInterface);
|
|
22
22
|
collect(requestConfig: AnnotationCollectConfig): Promise<Array<RcsbFvRowConfigInterface>>;
|
|
23
|
-
getPolymerEntityInstanceTranslator(): PolymerEntityInstanceTranslate;
|
|
24
23
|
setPolymerEntityInstanceTranslator(p: PolymerEntityInstanceTranslate): void;
|
|
25
24
|
setExternalTrackBuilder(externalTrackBuilder: ExternalTrackBuilderInterface): void;
|
|
26
25
|
getFeatures(): Promise<Array<Feature>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CoreCollectorInterface } from "../CoreCollectorInterface";
|
|
2
2
|
import { RcsbFvRowConfigInterface } from "@rcsb/rcsb-saguaro";
|
|
3
|
-
import { AnnotationFeatures, Feature, QueryAnnotationsArgs
|
|
3
|
+
import { AnnotationFeatures, Feature, QueryAnnotationsArgs } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
4
4
|
import { AnnotationTrack, FeaturePositionGaps } from "./AnnotationTrack";
|
|
5
5
|
import { ExternalTrackBuilderInterface } from "../FeatureTools/ExternalTrackBuilderInterface";
|
|
6
6
|
export declare type IncreaseAnnotationValueType = (feature: {
|
|
@@ -20,8 +20,9 @@ interface CommonAnnotationInterface {
|
|
|
20
20
|
externalAnnotationTrackBuilder?: ExternalTrackBuilderInterface;
|
|
21
21
|
}
|
|
22
22
|
export interface CollectAnnotationsInterface extends QueryAnnotationsArgs, CommonAnnotationInterface {
|
|
23
|
-
addTargetInTitle?: Set<Source>;
|
|
24
23
|
collectSwissModel?: boolean;
|
|
24
|
+
titleSuffix?(ann: AnnotationFeatures, d: Feature): Promise<string | undefined>;
|
|
25
|
+
trackTitle?(ann: AnnotationFeatures, d: Feature): Promise<string | undefined>;
|
|
25
26
|
}
|
|
26
27
|
export declare type AnnotationCollectConfig = Partial<CollectAnnotationsInterface>;
|
|
27
28
|
export interface AnnotationCollectorInterface extends CoreCollectorInterface {
|
|
@@ -8,11 +8,12 @@ export declare class AnnotationTrackManager {
|
|
|
8
8
|
private readonly annotationTracks;
|
|
9
9
|
private polymerEntityInstanceTranslator;
|
|
10
10
|
constructor(rcsbAnnotationConfig: RcsbAnnotationConfig);
|
|
11
|
-
processRcsbPdbAnnotations(data: Array<AnnotationFeatures>, requestConfig: AnnotationCollectConfig): void
|
|
11
|
+
processRcsbPdbAnnotations(data: Array<AnnotationFeatures>, requestConfig: AnnotationCollectConfig): Promise<void>;
|
|
12
12
|
getAnnotationTracks(): Map<string, AnnotationTrack>;
|
|
13
13
|
private getPolymerEntityInstanceTranslator;
|
|
14
14
|
setPolymerEntityInstanceTranslator(p: PolymerEntityInstanceTranslate): void;
|
|
15
15
|
private mergeTracks;
|
|
16
16
|
private buildType;
|
|
17
17
|
private addAnnotationToTracks;
|
|
18
|
+
private addFeature;
|
|
18
19
|
}
|
|
@@ -5,5 +5,4 @@ export interface CoreCollectorInterface {
|
|
|
5
5
|
readonly rcsbFvQuery: RcsbClient;
|
|
6
6
|
setPolymerEntityInstanceTranslator(p: PolymerEntityInstanceTranslate): void;
|
|
7
7
|
setExternalTrackBuilder(externalTrackBuilder: ExternalTrackBuilderInterface): void;
|
|
8
|
-
getPolymerEntityInstanceTranslator(): PolymerEntityInstanceTranslate;
|
|
9
8
|
}
|
|
@@ -30,7 +30,6 @@ export declare class SequenceCollector implements SequenceCollectorInterface {
|
|
|
30
30
|
getTargets(): Promise<Array<string>>;
|
|
31
31
|
getAlignmentResponse(): Promise<AlignmentResponse>;
|
|
32
32
|
getSequenceLength(): number;
|
|
33
|
-
getPolymerEntityInstanceTranslator(): PolymerEntityInstanceTranslate;
|
|
34
33
|
setPolymerEntityInstanceTranslator(p: PolymerEntityInstanceTranslate): void;
|
|
35
34
|
setExternalTrackBuilder(externalTrackBuilder: ExternalTrackBuilderInterface): void;
|
|
36
35
|
private complete;
|
|
@@ -10,6 +10,7 @@ export declare abstract class RcsbFvAbstractModule implements RcsbFvModuleInterf
|
|
|
10
10
|
protected readonly elementId: string;
|
|
11
11
|
protected boardConfigData: RcsbFvBoardConfigInterface;
|
|
12
12
|
protected rowConfigData: Array<RcsbFvRowConfigInterface>;
|
|
13
|
+
protected polymerEntityInstance: PolymerEntityInstanceTranslate;
|
|
13
14
|
protected readonly sequenceCollector: SequenceCollectorInterface;
|
|
14
15
|
protected readonly annotationCollector: AnnotationCollectorInterface;
|
|
15
16
|
protected alignmentTracks: SequenceCollectorDataInterface;
|
|
@@ -3,4 +3,5 @@ import { RcsbFvModuleBuildInterface } from "./RcsbFvModuleInterface";
|
|
|
3
3
|
export declare class RcsbFvEntity extends RcsbFvAbstractModule {
|
|
4
4
|
protected protectedBuild(buildConfig: RcsbFvModuleBuildInterface): Promise<void>;
|
|
5
5
|
protected concatAlignmentAndAnnotationTracks(buildConfig: RcsbFvModuleBuildInterface): void;
|
|
6
|
+
private titleSuffix;
|
|
6
7
|
}
|
|
@@ -3,4 +3,5 @@ import { RcsbFvModuleBuildInterface } from "./RcsbFvModuleInterface";
|
|
|
3
3
|
export declare class RcsbFvUniprotEntity extends RcsbFvAbstractModule {
|
|
4
4
|
protected protectedBuild(buildConfig: RcsbFvModuleBuildInterface): Promise<void>;
|
|
5
5
|
protected concatAlignmentAndAnnotationTracks(buildConfig: RcsbFvModuleBuildInterface): void;
|
|
6
|
+
private titleSuffix;
|
|
6
7
|
}
|