@rcsb/rcsb-saguaro-app 4.4.0-models.2 → 4.4.0-models.3
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/build/dist/RcsbAnnotationConfig/RcsbAnnotationConfig.d.ts +1 -1
- package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/AlignmentBlockFactory.d.ts +6 -6
- package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/AnnotationsBlockFactory.d.ts +2 -2
- package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockFactoryInterface.d.ts +3 -1
- package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/AnnotationBlockManager.d.ts +1 -1
- package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/TrackManagerInterface.d.ts +1 -1
- package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/{AlignmentTrackFactory.d.ts → TrackFactoryImpl/AlignmentTrackFactory.d.ts} +5 -5
- package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/{AnnotationsTrackFactory.d.ts → TrackFactoryImpl/AnnotationsTrackFactory.d.ts} +2 -2
- package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/{ObservedAlignmentTrackFactory.d.ts → TrackFactoryImpl/ObservedAlignmentTrackFactory.d.ts} +2 -2
- package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/{PlainAlignmentTrackFactory.d.ts → TrackFactoryImpl/PlainAlignmentTrackFactory.d.ts} +5 -5
- package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/{PlainObservedAlignmentTrackFactory.d.ts → TrackFactoryImpl/PlainObservedAlignmentTrackFactory.d.ts} +2 -2
- package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/{PositionalScoreAlignmentTrackFactory.d.ts → TrackFactoryImpl/PositionalScoreAlignmentTrackFactory.d.ts} +2 -2
- package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/{SequenceTrackFactory.d.ts → TrackFactoryImpl/SequenceTrackFactory.d.ts} +3 -3
- package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/{UniprotAlignmentTrackFactory.d.ts → TrackFactoryImpl/UniprotAlignmentTrackFactory.d.ts} +2 -2
- package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/AlignmentTrackTitleFactory.d.ts +11 -0
- package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryInterface.d.ts +4 -0
- package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvAbstractModule.d.ts +1 -1
- package/build/dist/app.js +1 -1
- package/package.json +2 -1
|
@@ -27,7 +27,7 @@ export declare class RcsbAnnotationConfig {
|
|
|
27
27
|
private checkAndIncludeNewType;
|
|
28
28
|
private cleanAddedTypes;
|
|
29
29
|
isMergedType(type: string): boolean;
|
|
30
|
-
|
|
30
|
+
getMergeConfig(type: string): RcsbMergedTypesInterface;
|
|
31
31
|
annotationMergedPreference(type: string, a: RcsbFvTrackDataElementInterface, b: RcsbFvTrackDataElementInterface): boolean;
|
|
32
32
|
static randomRgba(str?: string): string;
|
|
33
33
|
addProvenance(type: string, provenanceName: string): void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AlignmentResponse,
|
|
2
|
-
import { AlignmentRequestContextType } from "../RcsbFvTrackFactory/AlignmentTrackFactory";
|
|
1
|
+
import { AlignmentResponse, TargetAlignment } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
2
|
+
import { AlignmentRequestContextType } from "../RcsbFvTrackFactory/TrackFactoryImpl/AlignmentTrackFactory";
|
|
3
3
|
import { BlockFactoryInterface } from "./BlockFactoryInterface";
|
|
4
4
|
import { RcsbFvRowConfigInterface } from "@rcsb/rcsb-saguaro";
|
|
5
5
|
import { TrackFactoryInterface } from "../RcsbFvTrackFactory/TrackFactoryInterface";
|
|
6
|
-
export declare class AlignmentBlockFactory implements BlockFactoryInterface<[AlignmentRequestContextType, AlignmentResponse,
|
|
7
|
-
|
|
8
|
-
constructor(alignmentTrackFactory: TrackFactoryInterface<[AlignmentRequestContextType, TargetAlignment
|
|
9
|
-
getBlock(alignmentRequestContext: AlignmentRequestContextType, alignmentData: AlignmentResponse
|
|
6
|
+
export declare class AlignmentBlockFactory implements BlockFactoryInterface<[AlignmentRequestContextType, AlignmentResponse], [AlignmentRequestContextType, TargetAlignment]> {
|
|
7
|
+
readonly trackFactory: TrackFactoryInterface<[AlignmentRequestContextType, TargetAlignment]>;
|
|
8
|
+
constructor(alignmentTrackFactory: TrackFactoryInterface<[AlignmentRequestContextType, TargetAlignment]>);
|
|
9
|
+
getBlock(alignmentRequestContext: AlignmentRequestContextType, alignmentData: AlignmentResponse): Promise<RcsbFvRowConfigInterface[]>;
|
|
10
10
|
}
|
package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/AnnotationsBlockFactory.d.ts
CHANGED
|
@@ -5,10 +5,10 @@ import { AnnotationFeatures } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types
|
|
|
5
5
|
import { TrackFactoryInterface } from "../RcsbFvTrackFactory/TrackFactoryInterface";
|
|
6
6
|
import { BlockManagerInterface } from "./BlockManager/BlockManagerInterface";
|
|
7
7
|
import { TrackManagerInterface } from "./BlockManager/TrackManagerInterface";
|
|
8
|
-
export declare class AnnotationsBlockFactory implements BlockFactoryInterface<[AnnotationRequestContext, AnnotationFeatures[]]> {
|
|
8
|
+
export declare class AnnotationsBlockFactory implements BlockFactoryInterface<[AnnotationRequestContext, AnnotationFeatures[]], [TrackManagerInterface]> {
|
|
9
9
|
private readonly annotationBlockManager;
|
|
10
10
|
private readonly annotationsBlockData;
|
|
11
|
-
|
|
11
|
+
readonly trackFactory: TrackFactoryInterface<[TrackManagerInterface]>;
|
|
12
12
|
constructor(annotationBlockManager: BlockManagerInterface<[AnnotationRequestContext, AnnotationFeatures[]]>, annotationTrackFactory: TrackFactoryInterface<[TrackManagerInterface]>);
|
|
13
13
|
getBlock(annotationsRequestContext: AnnotationRequestContext, annotations: AnnotationFeatures[]): Promise<RcsbFvRowConfigInterface[]>;
|
|
14
14
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { RcsbFvRowConfigInterface } from "@rcsb/rcsb-saguaro";
|
|
2
|
-
|
|
2
|
+
import { TrackFactoryInterface } from "../RcsbFvTrackFactory/TrackFactoryInterface";
|
|
3
|
+
export interface BlockFactoryInterface<T extends any[], S extends any[]> {
|
|
4
|
+
readonly trackFactory: TrackFactoryInterface<S>;
|
|
3
5
|
getBlock(...args: T): Promise<RcsbFvRowConfigInterface[]>;
|
|
4
6
|
}
|
|
@@ -15,7 +15,7 @@ export declare class AnnotationBlockManager implements BlockManagerInterface<[An
|
|
|
15
15
|
getTracks(): Array<TrackManagerInterface>;
|
|
16
16
|
private has;
|
|
17
17
|
private orderedTypes;
|
|
18
|
-
private
|
|
18
|
+
private processAnnotations;
|
|
19
19
|
private addFeature;
|
|
20
20
|
private buildType;
|
|
21
21
|
private mergeTracks;
|
|
@@ -6,7 +6,7 @@ export interface TrackManagerFactoryInterface<T extends any[]> {
|
|
|
6
6
|
getTrackManager(...args: T): TrackManagerInterface;
|
|
7
7
|
}
|
|
8
8
|
export interface TrackManagerInterface {
|
|
9
|
-
|
|
9
|
+
getId(): string;
|
|
10
10
|
getConfig(): RcsbAnnotationConfigInterface;
|
|
11
11
|
getRange(): {
|
|
12
12
|
min: number;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { RcsbFvLink, RcsbFvRowConfigInterface, RcsbFvTrackDataElementInterface } from "@rcsb/rcsb-saguaro";
|
|
2
2
|
import { AlignedRegion, TargetAlignment } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
3
|
-
import { PolymerEntityInstanceTranslate, AlignmentContextInterface } from "
|
|
4
|
-
import { TrackFactoryInterface } from "
|
|
5
|
-
import { AlignmentCollectConfig } from "
|
|
3
|
+
import { PolymerEntityInstanceTranslate, AlignmentContextInterface } from "../../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
|
|
4
|
+
import { TrackFactoryInterface } from "../TrackFactoryInterface";
|
|
5
|
+
import { AlignmentCollectConfig } from "../../../../RcsbCollectTools/AlignmentCollector/AlignmentCollectorInterface";
|
|
6
6
|
export declare type AlignmentRequestContextType = AlignmentCollectConfig & {
|
|
7
7
|
querySequence?: string;
|
|
8
8
|
};
|
|
9
9
|
export declare class AlignmentTrackFactory implements TrackFactoryInterface<[AlignmentRequestContextType, TargetAlignment]> {
|
|
10
10
|
private readonly sequenceTrackFactory;
|
|
11
11
|
private readonly entityInstanceTranslator;
|
|
12
|
+
private readonly trackTitleFactory;
|
|
12
13
|
constructor(entityInstanceTranslator?: PolymerEntityInstanceTranslate);
|
|
13
14
|
getTrack(alignmentRequestContext: AlignmentRequestContextType, targetAlignment: TargetAlignment, alignedRegionToTrackElementList?: (region: AlignedRegion, alignmentContext: AlignmentContextInterface) => Array<RcsbFvTrackDataElementInterface>): Promise<RcsbFvRowConfigInterface>;
|
|
14
|
-
buildAlignmentRowTitle(alignmentQueryContext: AlignmentRequestContextType, targetAlignment: TargetAlignment): string | RcsbFvLink
|
|
15
|
+
buildAlignmentRowTitle(alignmentQueryContext: AlignmentRequestContextType, targetAlignment: TargetAlignment): Promise<string | RcsbFvLink>;
|
|
15
16
|
private getAlignmentTrackConfiguration;
|
|
16
|
-
private buildInstanceId;
|
|
17
17
|
alignedRegionToTrackElementList(region: AlignedRegion, alignmentContext: AlignmentContextInterface): Array<RcsbFvTrackDataElementInterface>;
|
|
18
18
|
addAuthorResIds(e: RcsbFvTrackDataElementInterface, alignmentContext: AlignmentContextInterface): RcsbFvTrackDataElementInterface;
|
|
19
19
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TrackFactoryInterface } from "
|
|
1
|
+
import { TrackFactoryInterface } from "../TrackFactoryInterface";
|
|
2
2
|
import { RcsbFvRowConfigInterface } from "@rcsb/rcsb-saguaro";
|
|
3
|
-
import { TrackManagerInterface } from "
|
|
3
|
+
import { TrackManagerInterface } from "../../RcsbFvBlockFactory/BlockManager/TrackManagerInterface";
|
|
4
4
|
export declare class AnnotationsTrackFactory implements TrackFactoryInterface<[TrackManagerInterface]> {
|
|
5
5
|
getTrack(annotations: TrackManagerInterface): Promise<RcsbFvRowConfigInterface>;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnnotationFeatures, TargetAlignment } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
2
|
-
import { PolymerEntityInstanceTranslate } from "
|
|
3
|
-
import { TrackFactoryInterface } from "
|
|
2
|
+
import { PolymerEntityInstanceTranslate } from "../../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
|
|
3
|
+
import { TrackFactoryInterface } from "../TrackFactoryInterface";
|
|
4
4
|
import { RcsbFvRowConfigInterface } from "@rcsb/rcsb-saguaro";
|
|
5
5
|
import { AlignmentRequestContextType } from "./AlignmentTrackFactory";
|
|
6
6
|
export declare class ObservedAlignmentTrackFactory implements TrackFactoryInterface<[AlignmentRequestContextType, TargetAlignment]> {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { RcsbFvColorGradient, RcsbFvLink, RcsbFvRowConfigInterface, RcsbFvTrackDataElementInterface } from "@rcsb/rcsb-saguaro";
|
|
2
2
|
import { AlignedRegion, TargetAlignment } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
3
|
-
import { PolymerEntityInstanceTranslate, AlignmentContextInterface } from "
|
|
4
|
-
import { TrackFactoryInterface } from "
|
|
5
|
-
import { AlignmentCollectConfig } from "
|
|
3
|
+
import { PolymerEntityInstanceTranslate, AlignmentContextInterface } from "../../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
|
|
4
|
+
import { TrackFactoryInterface } from "../TrackFactoryInterface";
|
|
5
|
+
import { AlignmentCollectConfig } from "../../../../RcsbCollectTools/AlignmentCollector/AlignmentCollectorInterface";
|
|
6
6
|
export declare type AlignmentRequestContextType = AlignmentCollectConfig & {
|
|
7
7
|
querySequence?: string;
|
|
8
8
|
};
|
|
9
9
|
export declare class PlainAlignmentTrackFactory implements TrackFactoryInterface<[AlignmentRequestContextType, TargetAlignment]> {
|
|
10
10
|
private readonly sequenceTrackFactory;
|
|
11
11
|
private readonly entityInstanceTranslator;
|
|
12
|
+
private readonly trackTitleFactory;
|
|
12
13
|
constructor(entityInstanceTranslator?: PolymerEntityInstanceTranslate);
|
|
13
14
|
getTrack(alignmentRequestContext: AlignmentRequestContextType, targetAlignment: TargetAlignment, alignedRegionToTrackElementList?: (region: AlignedRegion, alignmentContext: AlignmentContextInterface) => Array<RcsbFvTrackDataElementInterface>, alignmentColor?: RcsbFvColorGradient): Promise<RcsbFvRowConfigInterface>;
|
|
14
|
-
buildAlignmentRowTitle(alignmentQueryContext: AlignmentRequestContextType, targetAlignment: TargetAlignment): string | RcsbFvLink
|
|
15
|
+
buildAlignmentRowTitle(alignmentQueryContext: AlignmentRequestContextType, targetAlignment: TargetAlignment): Promise<string | RcsbFvLink>;
|
|
15
16
|
getAlignmentTrackConfiguration(alignmentQueryContext: AlignmentRequestContextType, targetAlignment: TargetAlignment, alignedRegionToTrackElementList: (region: AlignedRegion, alignmentContext: AlignmentContextInterface) => Array<RcsbFvTrackDataElementInterface>): {
|
|
16
17
|
alignedBlocks: Array<RcsbFvTrackDataElementInterface>;
|
|
17
18
|
mismatchData: Array<RcsbFvTrackDataElementInterface>;
|
|
18
19
|
sequenceData: Array<RcsbFvTrackDataElementInterface>;
|
|
19
20
|
};
|
|
20
|
-
private buildInstanceId;
|
|
21
21
|
alignedRegionToTrackElementList(region: AlignedRegion, alignmentContext: AlignmentContextInterface): Array<RcsbFvTrackDataElementInterface>;
|
|
22
22
|
addAuthorResIds(e: RcsbFvTrackDataElementInterface, alignmentContext: AlignmentContextInterface): RcsbFvTrackDataElementInterface;
|
|
23
23
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnnotationFeatures, TargetAlignment } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
2
|
-
import { PolymerEntityInstanceTranslate } from "
|
|
3
|
-
import { TrackFactoryInterface } from "
|
|
2
|
+
import { PolymerEntityInstanceTranslate } from "../../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
|
|
3
|
+
import { TrackFactoryInterface } from "../TrackFactoryInterface";
|
|
4
4
|
import { RcsbFvRowConfigInterface } from "@rcsb/rcsb-saguaro";
|
|
5
5
|
import { AlignmentRequestContextType } from "./AlignmentTrackFactory";
|
|
6
6
|
export declare class PlainObservedAlignmentTrackFactory implements TrackFactoryInterface<[AlignmentRequestContextType, TargetAlignment]> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AlignedRegion, AnnotationFeatures, TargetAlignment } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
2
|
-
import { AlignmentContextInterface, PolymerEntityInstanceTranslate } from "
|
|
3
|
-
import { TrackFactoryInterface } from "
|
|
2
|
+
import { AlignmentContextInterface, PolymerEntityInstanceTranslate } from "../../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
|
|
3
|
+
import { TrackFactoryInterface } from "../TrackFactoryInterface";
|
|
4
4
|
import { RcsbFvRowConfigInterface, RcsbFvTrackDataElementInterface } from "@rcsb/rcsb-saguaro";
|
|
5
5
|
import { AlignmentRequestContextType } from "./AlignmentTrackFactory";
|
|
6
6
|
export declare class PositionalScoreAlignmentTrackFactory implements TrackFactoryInterface<[AlignmentRequestContextType, TargetAlignment]> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AlignmentCollectConfig } from "
|
|
1
|
+
import { AlignmentCollectConfig } from "../../../../RcsbCollectTools/AlignmentCollector/AlignmentCollectorInterface";
|
|
2
2
|
import { RcsbFvLink, RcsbFvRowConfigInterface, RcsbFvTrackDataElementInterface } from "@rcsb/rcsb-saguaro";
|
|
3
|
-
import { PolymerEntityInstanceTranslate, AlignmentContextInterface } from "
|
|
4
|
-
import { TrackFactoryInterface } from "
|
|
3
|
+
import { PolymerEntityInstanceTranslate, AlignmentContextInterface } from "../../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
|
|
4
|
+
import { TrackFactoryInterface } from "../TrackFactoryInterface";
|
|
5
5
|
import { AlignmentRequestContextType } from "./AlignmentTrackFactory";
|
|
6
6
|
interface BuildSequenceDataInterface extends AlignmentContextInterface {
|
|
7
7
|
sequence: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TrackFactoryInterface } from "
|
|
1
|
+
import { TrackFactoryInterface } from "../TrackFactoryInterface";
|
|
2
2
|
import { AlignmentRequestContextType } from "./AlignmentTrackFactory";
|
|
3
3
|
import { AnnotationFeatures, TargetAlignment } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
4
4
|
import { RcsbFvRowConfigInterface } from "@rcsb/rcsb-saguaro";
|
|
5
|
-
import { PolymerEntityInstanceTranslate } from "
|
|
5
|
+
import { PolymerEntityInstanceTranslate } from "../../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
|
|
6
6
|
export declare class UniprotAlignmentTrackFactory implements TrackFactoryInterface<[AlignmentRequestContextType, TargetAlignment]> {
|
|
7
7
|
private observedAlignmentTrackFactory;
|
|
8
8
|
private positionalScoreAlignmentTrackFactory;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TrackTitleFactoryInterface } from "../TrackTitleFactoryInterface";
|
|
2
|
+
import { TargetAlignment } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
3
|
+
import { AlignmentRequestContextType } from "../TrackFactoryImpl/AlignmentTrackFactory";
|
|
4
|
+
import { RcsbFvLink } from "@rcsb/rcsb-saguaro";
|
|
5
|
+
import { PolymerEntityInstanceTranslate } from "../../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
|
|
6
|
+
export declare class AlignmentTrackTitleFactory implements TrackTitleFactoryInterface<[AlignmentRequestContextType, TargetAlignment]> {
|
|
7
|
+
private readonly entityInstanceTranslator;
|
|
8
|
+
constructor(entityInstanceTranslator?: PolymerEntityInstanceTranslate);
|
|
9
|
+
getTrackTitle(alignmentQueryContext: AlignmentRequestContextType, targetAlignment: TargetAlignment): Promise<string | RcsbFvLink>;
|
|
10
|
+
private buildInstanceId;
|
|
11
|
+
}
|
|
@@ -5,7 +5,7 @@ import { AnnotationRequestContext, AnnotationCollectorInterface } from "../../Rc
|
|
|
5
5
|
import { RcsbFvModuleBuildInterface, RcsbFvModuleInterface } from "./RcsbFvModuleInterface";
|
|
6
6
|
import { AlignmentResponse, AnnotationFeatures, Feature, TargetAlignment } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
7
7
|
import { TrackFactoryInterface } from "../RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryInterface";
|
|
8
|
-
import { AlignmentRequestContextType } from "../RcsbFvFactories/RcsbFvTrackFactory/AlignmentTrackFactory";
|
|
8
|
+
import { AlignmentRequestContextType } from "../RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/AlignmentTrackFactory";
|
|
9
9
|
import { AnnotationConfigInterface } from "../../RcsbAnnotationConfig/AnnotationConfigInterface";
|
|
10
10
|
export declare abstract class RcsbFvAbstractModule implements RcsbFvModuleInterface {
|
|
11
11
|
protected readonly rcsbFv: RcsbFv;
|