@rcsb/rcsb-saguaro-app 4.0.0-interfaces.8 → 4.0.2
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 +12 -4
- package/README.md +17 -3
- package/build/dist/RcsbAnnotationConfig/RcsbAnnotationConfig.d.ts +1 -1
- package/build/dist/RcsbCollectTools/AnnotationCollector/AnnotationCollector.d.ts +1 -1
- package/build/dist/RcsbCollectTools/AnnotationCollector/AnnotationTrack.d.ts +1 -1
- package/build/dist/RcsbCollectTools/AnnotationCollector/AnnotationTrackManager.d.ts +3 -3
- package/build/dist/RcsbCollectTools/CoreCollectorInterface.d.ts +1 -1
- package/build/dist/RcsbCollectTools/SequenceCollector/GenomeMapCollector.d.ts +1 -1
- package/build/dist/RcsbCollectTools/SequenceCollector/ObservedSequenceCollector.d.ts +1 -1
- package/build/dist/RcsbCollectTools/SequenceCollector/SequenceCollector.d.ts +1 -1
- package/build/dist/RcsbCollectTools/SequenceCollector/SequenceCollectorHelper.d.ts +1 -1
- package/build/dist/RcsbCollectTools/Translators/AssemblyInterfacesCollector.d.ts +9 -0
- package/build/dist/RcsbExport/FeatureType.d.ts +10 -0
- package/build/dist/RcsbExport/RcsbFvContextManager.d.ts +4 -0
- package/build/dist/RcsbExport/RcsbFvUI.d.ts +7 -0
- package/build/dist/RcsbFvWeb/RcsbFvBuilder/RcsbFvContextManager.d.ts +6 -4
- package/build/dist/RcsbFvWeb/RcsbFvBuilder/RcsbFvCoreBuilder.d.ts +1 -1
- package/build/dist/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.d.ts +1 -1
- package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvAbstractModule.d.ts +1 -1
- package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvModuleInterface.d.ts +1 -1
- package/build/dist/RcsbFvWeb/WebTools/SelectButton.d.ts +10 -10
- package/build/dist/RcsbFvWeb/WebTools/WebToolsManager.d.ts +1 -1
- package/build/dist/RcsbGraphQL/RcsbClient.d.ts +3 -1
- package/build/dist/RcsbGraphQL/RcsbQueryAssemblyInterfaces.d.ts +7 -0
- package/build/dist/RcsbUtils/AnnotationGenerators/BurialFraction.d.ts +3 -0
- package/build/dist/RcsbUtils/AnnotationGenerators/BuriedResidues.d.ts +3 -0
- package/build/dist/RcsbUtils/TagDelimiter.d.ts +1 -0
- package/build/dist/RcsbUtils/Translators/AssemblyInterfacesTranslate.d.ts +7 -0
- package/build/dist/RcsbUtils/{EntryAssemblyTranslate.d.ts → Translators/EntryAssemblyTranslate.d.ts} +1 -1
- package/build/dist/RcsbUtils/{InterfaceInstanceTranslate.d.ts → Translators/InterfaceInstanceTranslate.d.ts} +1 -1
- package/build/dist/RcsbUtils/{MultipleEntityInstanceTranslate.d.ts → Translators/MultipleEntityInstanceTranslate.d.ts} +1 -1
- package/build/dist/RcsbUtils/{PolymerEntityChromosomeTranslate.d.ts → Translators/PolymerEntityChromosomeTranslate.d.ts} +0 -0
- package/build/dist/RcsbUtils/{PolymerEntityInstanceTranslate.d.ts → Translators/PolymerEntityInstanceTranslate.d.ts} +1 -1
- package/build/dist/app.d.ts +3 -11
- package/build/dist/app.js +2 -97
- package/build/dist/app.js.LICENSE.txt +82 -0
- package/build/dist/app.js.map +1 -1
- package/build/dist/config.js +1 -1
- package/build/dist/worker.js +2 -16
- package/build/dist/worker.js.LICENSE.txt +29 -0
- package/build/dist/worker.js.map +1 -1
- package/package.json +28 -28
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
[Semantic Versioning](https://semver.org/)
|
|
4
4
|
|
|
5
|
-
## [4.0.
|
|
5
|
+
## [4.0.2] - 2022-02-14
|
|
6
|
+
### Dependency update
|
|
7
|
+
- Multiple dependencies updated
|
|
8
|
+
-
|
|
9
|
+
## [4.0.1] - 2022-02-08
|
|
10
|
+
### Dependency update
|
|
11
|
+
- rcsb-api-tools v2.3.1
|
|
12
|
+
|
|
13
|
+
## [4.0.0] - 2022-02-08
|
|
6
14
|
### Annotation collector improvements
|
|
7
15
|
- Added interface `CollectAnnotationsInterface` for generating new annotations internally (not exposed)
|
|
8
16
|
- `annotationGenerator?(annotations: Array<AnnotationFeatures>)` generates new annotations from the collected ones
|
|
@@ -12,9 +20,9 @@
|
|
|
12
20
|
- New callback attribute `InstanceSequenceConfig` > `beforeChangeCallback`. This function is called when instance
|
|
13
21
|
dropdown menu changes and before rendering the new 1D RcsbFv.
|
|
14
22
|
The callback may return a `RcsbContextType` object that will be included in the `additionalConfig`
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
23
|
+
- Added two new classes (`AssemblyInterfacesCollector` and `AssemblyInterfacesTranslate`) to collect and handle assembly and interface id relationships
|
|
24
|
+
- Exposing all feature types in a single object `FeatureType` (file: `src/RcsbExport/FeatureType.ts`)
|
|
25
|
+
- New package `RcsbExport` to expose classes and methods outside the library
|
|
18
26
|
- `ExternalTrackBuilderInterface` methods return a promise and are executed asynchronous
|
|
19
27
|
|
|
20
28
|
## [3.4.0] - 2021-12-07
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Feature Summaries. The package allows access to RCSB Saguaro methods to add or c
|
|
|
8
8
|
<!---
|
|
9
9
|
<div id="pfvSelect" ></div>
|
|
10
10
|
<div id="pfv" ></div>
|
|
11
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@rcsb/rcsb-saguaro-app@
|
|
11
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@rcsb/rcsb-saguaro-app@4.0.2/build/dist/app.js"></script>
|
|
12
12
|
<script type="text/javascript">
|
|
13
13
|
RcsbFvWebApp.buildInstanceFv("pfv", "4Z35.A", {
|
|
14
14
|
boardConfig:{
|
|
@@ -23,7 +23,7 @@ RcsbFvWebApp.buildInstanceFv("pfv", "4Z35.A", {
|
|
|
23
23
|
`npm install @rcsb/rcsb-saguaro-app`
|
|
24
24
|
|
|
25
25
|
### CDN JavaScript
|
|
26
|
-
`<script src="https://cdn.jsdelivr.net/npm/@rcsb/rcsb-saguaro-app@
|
|
26
|
+
`<script src="https://cdn.jsdelivr.net/npm/@rcsb/rcsb-saguaro-app@4.0.2/build/dist/app.js" type="text/javascript"></script>`
|
|
27
27
|
|
|
28
28
|
### JavaScript Examples
|
|
29
29
|
* [PDB Instance Chain View](https://rcsb.github.io/rcsb-saguaro-app/examples/instance.html)
|
|
@@ -49,7 +49,7 @@ click events.
|
|
|
49
49
|
- **RcsbFvWebApp.setBoardConfig**(boardConfigData: [RcsbFvBoardConfigInterface](https://rcsb.github.io/rcsb-saguaro/interfaces/rcsbfvboardconfiginterface.html))
|
|
50
50
|
- **RcsbFvWebApp.getRcsbFv**(elementId: string)
|
|
51
51
|
|
|
52
|
-
###GraphQL configuration
|
|
52
|
+
### GraphQL configuration
|
|
53
53
|
##### Building TypeScript interfaces
|
|
54
54
|
- Files ["src/RcsbServerConfig/codegen.borrego.json", "src/RcsbServerConfig/codegen.yosemite.json"]
|
|
55
55
|
- Borrego Interfaces: graphql-codegen --config src/RcsbServerConfig/codegen.borrego.json
|
|
@@ -59,6 +59,20 @@ click events.
|
|
|
59
59
|
- Config Files: ["src/RcsbGraphQL/Queries/Borrego/.graphqlconfig", "src/RcsbGraphQL/Queries/Yosemite/.graphqlconfig"]
|
|
60
60
|
- Generated Schemas: ["src/RcsbGraphQL/Queries/Borrego/schema.graphql", "src/RcsbGraphQL/Queries/Yosemite/schema.graphql"]
|
|
61
61
|
|
|
62
|
+
### New RCSB data-api request method
|
|
63
|
+
- A new graphql query defined in `src/RcsbGraphQL/Queries/Yosemite` (e.g. `QueryAssemblyInterfaces.graphql`)
|
|
64
|
+
- A new request class using `rcsb-api-tools` defined in `src/RcsbGraphQL` (e.g. `RcsbQueryAssemblyInterfaces.ts`)
|
|
65
|
+
- A new method in the `RcsbClient` class defined in `src/RcsbGraphQL/RcsbClient.ts` (e.g. `requestAssemblyInterfaces`)
|
|
66
|
+
- This method must used the request class defined above
|
|
67
|
+
- A new collector class based on the request class in `src/RcsbCollectTools/Translators` (e.g. `AssemblyInterfacesCollector`)
|
|
68
|
+
- This class must call the method defined above
|
|
69
|
+
- This class may transform the RCSB data-api schema into a more convenient interface
|
|
70
|
+
- A new translator class defined in `src/RcsbUtils` (e.g. `AssemblyInterfacesTranslate`)
|
|
71
|
+
- The constructor gets the data collected by the above class
|
|
72
|
+
- The class exposes the methods needs to provide the relationships between RCSB objects of different granularity
|
|
73
|
+
- A new method in the `RcsbFvContextManager` defined in `src/RcsbFvWeb/RcsbFvBuilder`
|
|
74
|
+
- This method must avoid duplicate requests
|
|
75
|
+
|
|
62
76
|
Contributing
|
|
63
77
|
---
|
|
64
78
|
All contributions are welcome. Please, make a pull request or open an issue.
|
|
@@ -21,7 +21,7 @@ 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, trackTitle?: string, titleSuffix?: string, typeSuffix?: string): string;
|
|
25
25
|
private addNewType;
|
|
26
26
|
sortAndIncludeNewTypes(): void;
|
|
27
27
|
private checkAndIncludeNewType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RcsbFvRowConfigInterface } from '@rcsb/rcsb-saguaro';
|
|
2
2
|
import { AnnotationFeatures, Feature } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
3
3
|
import { RcsbClient } from "../../RcsbGraphQL/RcsbClient";
|
|
4
|
-
import { PolymerEntityInstanceTranslate } from "../../RcsbUtils/PolymerEntityInstanceTranslate";
|
|
4
|
+
import { PolymerEntityInstanceTranslate } from "../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
|
|
5
5
|
import { AnnotationCollectConfig, AnnotationCollectorInterface } from "./AnnotationCollectorInterface";
|
|
6
6
|
import { AnnotationConfigInterface } from "../../RcsbAnnotationConfig/AnnotationConfigInterface";
|
|
7
7
|
import { ExternalTrackBuilderInterface } from "../FeatureTools/ExternalTrackBuilderInterface";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RcsbFvTrackDataElementGapInterface, RcsbFvTrackDataElementInterface } from "@rcsb/rcsb-saguaro";
|
|
2
2
|
import { Feature, FeaturePosition, SequenceReference, Source } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
3
|
-
import { PolymerEntityInstanceTranslate } from "../../RcsbUtils/PolymerEntityInstanceTranslate";
|
|
3
|
+
import { PolymerEntityInstanceTranslate } from "../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
|
|
4
4
|
import { RcsbAnnotationConfigInterface } from "../../RcsbAnnotationConfig/AnnotationConfigInterface";
|
|
5
5
|
import { AnnotationProcessingInterface } from "./AnnotationCollectorInterface";
|
|
6
6
|
export interface FeaturePositionGaps extends FeaturePosition {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnnotationTrack } from "./AnnotationTrack";
|
|
2
2
|
import { AnnotationFeatures } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
3
3
|
import { RcsbAnnotationConfig } from "../../RcsbAnnotationConfig/RcsbAnnotationConfig";
|
|
4
|
-
import { PolymerEntityInstanceTranslate } from "../../RcsbUtils/PolymerEntityInstanceTranslate";
|
|
4
|
+
import { PolymerEntityInstanceTranslate } from "../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
|
|
5
5
|
import { AnnotationCollectConfig } from "./AnnotationCollectorInterface";
|
|
6
6
|
export declare class AnnotationTrackManager {
|
|
7
7
|
private readonly rcsbAnnotationConfig;
|
|
@@ -12,8 +12,8 @@ export declare class AnnotationTrackManager {
|
|
|
12
12
|
getAnnotationTracks(): Map<string, AnnotationTrack>;
|
|
13
13
|
private getPolymerEntityInstanceTranslator;
|
|
14
14
|
setPolymerEntityInstanceTranslator(p: PolymerEntityInstanceTranslate): void;
|
|
15
|
-
private mergeTracks;
|
|
16
|
-
private buildType;
|
|
17
15
|
private addAnnotationToTracks;
|
|
18
16
|
private addFeature;
|
|
17
|
+
private buildType;
|
|
18
|
+
private mergeTracks;
|
|
19
19
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PolymerEntityInstanceTranslate } from "../RcsbUtils/PolymerEntityInstanceTranslate";
|
|
1
|
+
import { PolymerEntityInstanceTranslate } from "../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
|
|
2
2
|
import { RcsbClient } from "../RcsbGraphQL/RcsbClient";
|
|
3
3
|
import { ExternalTrackBuilderInterface } from "./FeatureTools/ExternalTrackBuilderInterface";
|
|
4
4
|
export interface CoreCollectorInterface {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RcsbClient } from "../../RcsbGraphQL/RcsbClient";
|
|
2
2
|
import { CollectAlignmentInterface, SequenceCollectorInterface } from "./SequenceCollectorInterface";
|
|
3
3
|
import { SequenceCollectorDataInterface } from "./SequenceCollector";
|
|
4
|
-
import { PolymerEntityInstanceTranslate } from "../../RcsbUtils/PolymerEntityInstanceTranslate";
|
|
4
|
+
import { PolymerEntityInstanceTranslate } from "../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
|
|
5
5
|
import { AlignmentResponse } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
6
6
|
import { ExternalTrackBuilderInterface } from "../FeatureTools/ExternalTrackBuilderInterface";
|
|
7
7
|
export declare class GenomeMapCollector implements SequenceCollectorInterface {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AlignmentResponse } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
2
2
|
import { SequenceCollectorDataInterface } from "./SequenceCollector";
|
|
3
|
-
import { PolymerEntityInstanceTranslate } from "../../RcsbUtils/PolymerEntityInstanceTranslate";
|
|
3
|
+
import { PolymerEntityInstanceTranslate } from "../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
|
|
4
4
|
import { RcsbClient } from "../../RcsbGraphQL/RcsbClient";
|
|
5
5
|
import { AlignmentCollectConfig, SequenceCollectorInterface } from "./SequenceCollectorInterface";
|
|
6
6
|
import { ExternalTrackBuilderInterface } from "../FeatureTools/ExternalTrackBuilderInterface";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RcsbFvRowConfigInterface } from '@rcsb/rcsb-saguaro';
|
|
2
2
|
import { AlignedRegion, AlignmentResponse } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
3
|
-
import { PolymerEntityInstanceTranslate, TranslateContextInterface } from "../../RcsbUtils/PolymerEntityInstanceTranslate";
|
|
3
|
+
import { PolymerEntityInstanceTranslate, TranslateContextInterface } from "../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
|
|
4
4
|
import { RcsbClient } from "../../RcsbGraphQL/RcsbClient";
|
|
5
5
|
import { AlignmentCollectConfig, SequenceCollectorInterface } from "./SequenceCollectorInterface";
|
|
6
6
|
import { ExternalTrackBuilderInterface } from "../FeatureTools/ExternalTrackBuilderInterface";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PolymerEntityInstanceTranslate, TranslateContextInterface } from "../../RcsbUtils/PolymerEntityInstanceTranslate";
|
|
1
|
+
import { PolymerEntityInstanceTranslate, TranslateContextInterface } from "../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
|
|
2
2
|
import { AlignedRegion, SequenceReference, TargetAlignment } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
3
3
|
import { RcsbFvLink, RcsbFvRowConfigInterface, RcsbFvTrackDataElementInterface } from "@rcsb/rcsb-saguaro";
|
|
4
4
|
import { AlignedObservedRegion } from "./SequenceCollector";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { QueryAssembliesArgs } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Yosemite/GqlTypes";
|
|
2
|
+
export interface AssemblyInterfacesInterface {
|
|
3
|
+
rcsbId: string;
|
|
4
|
+
interfaceIds: Array<string>;
|
|
5
|
+
}
|
|
6
|
+
export declare class AssemblyInterfacesCollector {
|
|
7
|
+
private readonly rcsbFvQuery;
|
|
8
|
+
collect(requestConfig: QueryAssembliesArgs): Promise<Array<AssemblyInterfacesInterface>>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Type } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
2
|
+
declare const ExtendedTypes: {
|
|
3
|
+
BurialFraction: Type;
|
|
4
|
+
BuriedResidues: Type;
|
|
5
|
+
};
|
|
6
|
+
declare type MergedType = typeof Type & typeof ExtendedTypes;
|
|
7
|
+
declare const MergedType: MergedType;
|
|
8
|
+
declare type FeatureType = typeof MergedType;
|
|
9
|
+
export declare const FeatureType: FeatureType;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GroupedOptionsInterface, SelectOptionInterface } from "../RcsbFvWeb/WebTools/SelectButton";
|
|
2
|
+
import { SelectButtonConfigInterface } from "../RcsbFvWeb/WebTools/WebToolsManager";
|
|
3
|
+
export declare class RcsbFvUI {
|
|
4
|
+
static clearSelectButton(elementFvId: string, selectButtonId: string): void;
|
|
5
|
+
static createSelectButton(elementFvId: string, selectButtonId: string, options: Array<SelectOptionInterface> | Array<GroupedOptionsInterface>, config?: SelectButtonConfigInterface): void;
|
|
6
|
+
static addSelectButton(elementFvId: string, selectButtonId: string, options: Array<SelectOptionInterface>, config?: SelectButtonConfigInterface): void;
|
|
7
|
+
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { RcsbFv, RcsbFvBoardConfigInterface } from "@rcsb/rcsb-saguaro";
|
|
2
|
-
import { PolymerEntityInstanceTranslate } from "../../RcsbUtils/PolymerEntityInstanceTranslate";
|
|
3
|
-
import { EntryAssemblyTranslate } from "../../RcsbUtils/EntryAssemblyTranslate";
|
|
4
|
-
import { PolymerEntityChromosomeTranslate } from "../../RcsbUtils/PolymerEntityChromosomeTranslate";
|
|
5
|
-
import { InterfaceInstanceTranslate } from "../../RcsbUtils/InterfaceInstanceTranslate";
|
|
2
|
+
import { PolymerEntityInstanceTranslate } from "../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
|
|
3
|
+
import { EntryAssemblyTranslate } from "../../RcsbUtils/Translators/EntryAssemblyTranslate";
|
|
4
|
+
import { PolymerEntityChromosomeTranslate } from "../../RcsbUtils/Translators/PolymerEntityChromosomeTranslate";
|
|
5
|
+
import { InterfaceInstanceTranslate } from "../../RcsbUtils/Translators/InterfaceInstanceTranslate";
|
|
6
6
|
declare class RcsbFvContextManager {
|
|
7
7
|
private rcsbFvManager;
|
|
8
8
|
private rcsbButtonManager;
|
|
9
9
|
private polymerEntityToInstanceMap;
|
|
10
10
|
private entryToAssemblyMap;
|
|
11
11
|
private interfaceToInstanceMap;
|
|
12
|
+
private assemblyInterfacesMap;
|
|
12
13
|
getFv(elementFvId: string, boardConfig?: Partial<RcsbFvBoardConfigInterface>): RcsbFv;
|
|
13
14
|
hasFv(elementFvId: string): boolean;
|
|
14
15
|
private setFv;
|
|
@@ -21,6 +22,7 @@ declare class RcsbFvContextManager {
|
|
|
21
22
|
getEntryToAssembly(entryId: string): Promise<EntryAssemblyTranslate>;
|
|
22
23
|
getEntityToChromosome(entityIds: Array<string>): Promise<PolymerEntityChromosomeTranslate>;
|
|
23
24
|
getInterfaceToInstance(interfaceId: string): Promise<InterfaceInstanceTranslate>;
|
|
25
|
+
private getAssemblyInterfaces;
|
|
24
26
|
}
|
|
25
27
|
export declare const rcsbFvCtxManager: RcsbFvContextManager;
|
|
26
28
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PolymerEntityInstanceTranslate } from "../../RcsbUtils/PolymerEntityInstanceTranslate";
|
|
1
|
+
import { PolymerEntityInstanceTranslate } from "../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
|
|
2
2
|
import { RcsbFv } from "@rcsb/rcsb-saguaro";
|
|
3
3
|
import { RcsbFvModuleBuildInterface, RcsbFvModuleInterface, RcsbFvModulePublicInterface } from "../RcsbFvModule/RcsbFvModuleInterface";
|
|
4
4
|
import { SelectButtonConfigInterface } from "../WebTools/WebToolsManager";
|
|
@@ -3,7 +3,7 @@ import { RcsbContextType, RcsbFvAdditionalConfig } from "../RcsbFvModule/RcsbFvM
|
|
|
3
3
|
import { PolymerEntityInstanceInterface } from "../../RcsbCollectTools/Translators/PolymerEntityInstancesCollector";
|
|
4
4
|
import { OptionPropsInterface } from "../WebTools/SelectButton";
|
|
5
5
|
import { RcsbFvModulePublicInterface } from "../RcsbFvModule/RcsbFvModuleInterface";
|
|
6
|
-
import { OptionProps } from "react-select/src/components/Option";
|
|
6
|
+
import { OptionProps } from "react-select/dist/declarations/src/components/Option";
|
|
7
7
|
export interface InstanceSequenceOnchangeInterface {
|
|
8
8
|
pdbId: string;
|
|
9
9
|
authId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RcsbFv, RcsbFvBoardConfigInterface, RcsbFvRowConfigInterface } from '@rcsb/rcsb-saguaro';
|
|
2
2
|
import { SequenceCollectorDataInterface } from "../../RcsbCollectTools/SequenceCollector/SequenceCollector";
|
|
3
|
-
import { PolymerEntityInstanceTranslate } from "../../RcsbUtils/PolymerEntityInstanceTranslate";
|
|
3
|
+
import { PolymerEntityInstanceTranslate } from "../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
|
|
4
4
|
import { SequenceCollectorInterface } from "../../RcsbCollectTools/SequenceCollector/SequenceCollectorInterface";
|
|
5
5
|
import { AnnotationCollectorInterface } from "../../RcsbCollectTools/AnnotationCollector/AnnotationCollectorInterface";
|
|
6
6
|
import { RcsbFvModuleBuildInterface, RcsbFvModuleInterface } from "./RcsbFvModuleInterface";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Feature, FilterInput, SequenceReference, Source } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
2
|
-
import { PolymerEntityInstanceTranslate } from "../../RcsbUtils/PolymerEntityInstanceTranslate";
|
|
2
|
+
import { PolymerEntityInstanceTranslate } from "../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
|
|
3
3
|
import { RcsbFv, RcsbFvBoardConfigInterface, RcsbFvRowConfigInterface } from "@rcsb/rcsb-saguaro";
|
|
4
4
|
import { PairwiseAlignmentInterface } from "../PairwiseAlignmentTools/PairwiseAlignmentBuilder";
|
|
5
5
|
import { AnnotationProcessingInterface } from "../../RcsbCollectTools/AnnotationCollector/AnnotationCollectorInterface";
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { OptionProps } from "react-select
|
|
2
|
+
import { OptionProps } from "react-select";
|
|
3
3
|
export interface GroupedOptionsInterface {
|
|
4
4
|
options: Array<SelectOptionInterface>;
|
|
5
5
|
label: string;
|
|
6
6
|
}
|
|
7
|
-
export interface SelectOptionInterface {
|
|
8
|
-
optId?: string;
|
|
9
|
-
label: string;
|
|
10
|
-
groupLabel?: string;
|
|
11
|
-
name?: string;
|
|
12
|
-
shortLabel?: string;
|
|
13
|
-
onChange: () => void;
|
|
14
|
-
}
|
|
15
7
|
interface SelectButtonInterface {
|
|
16
8
|
elementId: string;
|
|
17
9
|
options?: Array<SelectOptionInterface> | Array<GroupedOptionsInterface>;
|
|
@@ -20,9 +12,17 @@ interface SelectButtonInterface {
|
|
|
20
12
|
defaultValue?: string | undefined | null;
|
|
21
13
|
width?: number;
|
|
22
14
|
dropdownTitle?: string;
|
|
23
|
-
optionProps?: (props: OptionProps<OptionPropsInterface>) => JSX.Element;
|
|
15
|
+
optionProps?: (props: OptionProps<OptionPropsInterface, false, null>) => JSX.Element;
|
|
24
16
|
isAdditionalButton?: boolean;
|
|
25
17
|
}
|
|
18
|
+
export interface SelectOptionInterface {
|
|
19
|
+
optId?: string;
|
|
20
|
+
groupLabel?: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
shortLabel?: string;
|
|
23
|
+
label: string;
|
|
24
|
+
onChange: () => void;
|
|
25
|
+
}
|
|
26
26
|
export interface OptionPropsInterface extends SelectOptionInterface {
|
|
27
27
|
value: number;
|
|
28
28
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { GroupedOptionsInterface, OptionPropsInterface, SelectOptionInterface } from "./SelectButton";
|
|
3
|
-
import { OptionProps } from "react-select/src/components/Option";
|
|
3
|
+
import { OptionProps } from "react-select/dist/declarations/src/components/Option";
|
|
4
4
|
export interface SelectButtonConfigInterface {
|
|
5
5
|
addTitle?: boolean;
|
|
6
6
|
defaultValue?: string | undefined | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AlignmentResponse, AnnotationFeatures, QueryAlignmentArgs, QueryAnnotationsArgs } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
2
|
-
import { CoreEntry, CoreInterface, CorePolymerEntity, QueryEntriesArgs, QueryEntryArgs, QueryInterfacesArgs, QueryPolymer_EntitiesArgs } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Yosemite/GqlTypes";
|
|
2
|
+
import { CoreAssembly, CoreEntry, CoreInterface, CorePolymerEntity, QueryAssembliesArgs, QueryEntriesArgs, QueryEntryArgs, QueryInterfacesArgs, QueryPolymer_EntitiesArgs } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Yosemite/GqlTypes";
|
|
3
3
|
export declare class RcsbClient {
|
|
4
4
|
private rcsbQueryAnnotations;
|
|
5
5
|
private rcsbQueryAlignment;
|
|
@@ -7,10 +7,12 @@ export declare class RcsbClient {
|
|
|
7
7
|
private rcsbQueryMutipleEntityInstances;
|
|
8
8
|
private rcsbQueryEntryProperties;
|
|
9
9
|
private rcsbQueryInterfaceInstances;
|
|
10
|
+
private rcsbQueryAssemblyInterfaces;
|
|
10
11
|
requestRcsbPdbAnnotations(requestConfig: QueryAnnotationsArgs): Promise<Array<AnnotationFeatures>>;
|
|
11
12
|
requestAlignment(requestConfig: QueryAlignmentArgs): Promise<AlignmentResponse>;
|
|
12
13
|
requestEntityInstances(requestConfig: QueryEntryArgs): Promise<CoreEntry>;
|
|
13
14
|
requestMultipleEntityInstances(requestConfig: QueryPolymer_EntitiesArgs): Promise<Array<CorePolymerEntity>>;
|
|
14
15
|
requestMultipleEntriesProperties(requestConfig: QueryEntriesArgs): Promise<Array<CoreEntry>>;
|
|
15
16
|
requestInterfaceInstances(requestConfig: QueryInterfacesArgs): Promise<Array<CoreInterface>>;
|
|
17
|
+
requestAssemblyInterfaces(requestConfig: QueryAssembliesArgs): Promise<Array<CoreAssembly>>;
|
|
16
18
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RcsbCoreQueryInterface } from "./RcsbCoreQueryInterface";
|
|
2
|
+
import { CoreAssembly, QueryAssembliesArgs } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Yosemite/GqlTypes";
|
|
3
|
+
import { GraphQLRequest } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/GraphQLRequest";
|
|
4
|
+
export declare class RcsbQueryAssemblyInterfaces implements RcsbCoreQueryInterface<QueryAssembliesArgs, Array<CoreAssembly>> {
|
|
5
|
+
readonly client: GraphQLRequest;
|
|
6
|
+
request(requestConfig: QueryAssembliesArgs): Promise<Array<CoreAssembly>>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AnnotationFeatures } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
2
|
+
export declare function burialFraction(annotations: Array<AnnotationFeatures>): Array<AnnotationFeatures>;
|
|
3
|
+
export declare function burialFractionFilter(annotations: Array<AnnotationFeatures>): Array<AnnotationFeatures>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AnnotationFeatures } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
2
|
+
export declare function buriedResidues(annotations: Array<AnnotationFeatures>): Array<AnnotationFeatures>;
|
|
3
|
+
export declare function buriedResiduesFilter(annotations: Array<AnnotationFeatures>): Array<AnnotationFeatures>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AssemblyInterfacesInterface } from "../../RcsbCollectTools/Translators/AssemblyInterfacesCollector";
|
|
2
|
+
export declare class AssemblyInterfacesTranslate {
|
|
3
|
+
private readonly rawData;
|
|
4
|
+
private interfaceMap;
|
|
5
|
+
constructor(data: Array<AssemblyInterfacesInterface>);
|
|
6
|
+
getInterfaces(assemblyId: string): Array<string>;
|
|
7
|
+
}
|
package/build/dist/RcsbUtils/{EntryAssemblyTranslate.d.ts → Translators/EntryAssemblyTranslate.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PolymerEntityInstanceInterface } from "
|
|
1
|
+
import { PolymerEntityInstanceInterface } from "../../RcsbCollectTools/Translators/PolymerEntityInstancesCollector";
|
|
2
2
|
export declare class EntryAssemblyTranslate {
|
|
3
3
|
private readonly rawData;
|
|
4
4
|
constructor(data: Map<string, Array<PolymerEntityInstanceInterface>>);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InterfaceInstanceInterface } from "
|
|
1
|
+
import { InterfaceInstanceInterface } from "../../RcsbCollectTools/Translators/InterfaceInstanceCollector";
|
|
2
2
|
export declare class InterfaceInstanceTranslate {
|
|
3
3
|
private readonly rawData;
|
|
4
4
|
private readonly instances;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PolymerEntityInstanceTranslate } from "./PolymerEntityInstanceTranslate";
|
|
2
|
-
import { PolymerEntityInstanceInterface } from "
|
|
2
|
+
import { PolymerEntityInstanceInterface } from "../../RcsbCollectTools/Translators/PolymerEntityInstancesCollector";
|
|
3
3
|
export declare class MultipleEntityInstanceTranslate {
|
|
4
4
|
private readonly entityInstanceTranslateMap;
|
|
5
5
|
add(data: Array<PolymerEntityInstanceInterface>): void;
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PolymerEntityInstanceInterface } from "
|
|
1
|
+
import { PolymerEntityInstanceInterface } from "../../RcsbCollectTools/Translators/PolymerEntityInstancesCollector";
|
|
2
2
|
import { RcsbFvTrackDataElementInterface } from '@rcsb/rcsb-saguaro';
|
|
3
3
|
import { SequenceReference, Source } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
|
|
4
4
|
export interface TranslateContextInterface {
|
package/build/dist/app.d.ts
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import { GroupedOptionsInterface, SelectOptionInterface } from "./RcsbFvWeb/WebTools/SelectButton";
|
|
2
1
|
export { buildEntryChromosome, buildFullChromosome, buildEntityChromosome, buildChromosome, buildEntityFv, buildEntitySummaryFv, buildSingleEntitySummaryFv, buildInstanceFv, buildInstanceSequenceFv, buildMultipleInstanceSequenceFv, buildAssemblySequenceFv, buildPairwiseAlignment, buildPfv, buildMultipleAlignmentSequenceFv, buildUniprotEntityFv, buildUniprotEntityInstanceFv, buildUniprotFv, unmount } from "./RcsbFvWeb/RcsbFvBuilder";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
static clearSelectButton(elementFvId: string, selectButtonId: string): void;
|
|
7
|
-
static createSelectButton(elementFvId: string, selectButtonId: string, options: Array<SelectOptionInterface> | Array<GroupedOptionsInterface>, config?: SelectButtonConfigInterface): void;
|
|
8
|
-
static addSelectButton(elementFvId: string, selectButtonId: string, options: Array<SelectOptionInterface>, config?: SelectButtonConfigInterface): void;
|
|
9
|
-
}
|
|
10
|
-
export declare class RcsbFvContextManager {
|
|
11
|
-
static getInterfaceToInstance(interfaceId: string): Promise<InterfaceInstanceTranslate>;
|
|
12
|
-
}
|
|
2
|
+
export { RcsbFvContextManager } from "./RcsbExport/RcsbFvContextManager";
|
|
3
|
+
export { RcsbFvUI } from "./RcsbExport/RcsbFvUI";
|
|
4
|
+
export { FeatureType } from "./RcsbExport/FeatureType";
|