@rcsb/rcsb-saguaro-app 6.2.2 → 6.2.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/app.js +1 -1
- package/build/constants.js +1 -1
- package/build/plot.js +1 -1
- package/build/plot.js.LICENSE.txt +2 -2
- package/build/worker.js +1 -1
- package/lib/RcsbAnnotationConfig/RcsbAnnotationConfig.js +1 -1
- package/lib/RcsbChartWeb/HistogramChartComponent.d.ts +1 -0
- package/lib/RcsbCollectTools/AlignmentCollector/AlignmentCollector.js +1 -1
- package/lib/RcsbCollectTools/AnnotationCollector/AnnotationCollector.js +1 -1
- package/lib/RcsbCollectTools/FeatureTools/FeatureTools.js +2 -2
- package/lib/RcsbFvExamples/ExternalDataProvider.js +1 -1
- package/lib/RcsbFvUI/Components/FilterItemComponent.d.ts +1 -0
- package/lib/RcsbFvUI/Components/PaginationItemComponent.d.ts +1 -0
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvCoreBuilder.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvGroupAlignmentBuilder.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.d.ts +1 -0
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.js +3 -3
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvProteinSequenceBuilder.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvUniprotBuilder.js +2 -2
- package/lib/RcsbFvWeb/RcsbFvComponents/ComponentsManager.d.ts +1 -0
- package/lib/RcsbFvWeb/RcsbFvComponents/MountableComponent.d.ts +1 -1
- package/lib/RcsbFvWeb/RcsbFvComponents/MountableComponent.js +5 -2
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/AlignmentBlockFactory.js +4 -4
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/AnnotationBlockManager.js +2 -2
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/SequenceTrackFactory.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/AnnotationsTrackTitleFactory.js +2 -2
- package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/SequenceTrackTitleFactory.js +3 -3
- package/lib/RcsbFvWeb/RcsbFvGroup/GroupPfvTabs.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvGroup/GroupTabs/GroupPfvApp.js +3 -3
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvAbstractModule.js +3 -3
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvChromosome.js +3 -3
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvDataProvider.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvEntity.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAlignment.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAnnotation.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvInstance.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvInterface.js +2 -2
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvPairwiseAlignment.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvProteinSequence.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprot.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotAlignment.js +1 -1
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotEntity.js +2 -2
- package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotInstance.js +1 -1
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/GroupChartTools.js +2 -2
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/RcsbGroupChartComponent.js +1 -1
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupContent/RcsbGroupContentComponent.js +2 -2
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/GroupMembersGrid.js +1 -1
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupSeacrhQuery/RcsbGroupSeacrhQueryComponent.d.ts +1 -0
- package/lib/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartTools/ResidueChartTools.js +1 -1
- package/lib/RcsbRequest/RcsbRequestContextManager.js +1 -1
- package/lib/RcsbSeacrh/FacetTools.d.ts +15 -15
- package/lib/RcsbSeacrh/SearchRequestProperty.js +2 -2
- package/lib/RcsbUtils/TrackGenerators/AlignmentGlobalBindingSite.js +3 -3
- package/lib/RcsbUtils/TrackGenerators/UnmodeledTrackBuilder.js +4 -4
- package/lib/commonjs/RcsbAnnotationConfig/RcsbAnnotationConfig.js +1 -1
- package/lib/commonjs/RcsbChartWeb/HistogramChartComponent.d.ts +1 -0
- package/lib/commonjs/RcsbCollectTools/AlignmentCollector/AlignmentCollector.js +1 -1
- package/lib/commonjs/RcsbCollectTools/AnnotationCollector/AnnotationCollector.js +1 -1
- package/lib/commonjs/RcsbCollectTools/FeatureTools/FeatureTools.js +2 -2
- package/lib/commonjs/RcsbFvExamples/ExternalDataProvider.js +1 -1
- package/lib/commonjs/RcsbFvExamples/utils/events.js +3 -2
- package/lib/commonjs/RcsbFvUI/Components/FilterItemComponent.d.ts +1 -0
- package/lib/commonjs/RcsbFvUI/Components/PaginationItemComponent.d.ts +1 -0
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvCoreBuilder.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvGroupAlignmentBuilder.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.d.ts +1 -0
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.js +3 -3
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvProteinSequenceBuilder.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvUniprotBuilder.js +2 -2
- package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder.js +23 -22
- package/lib/commonjs/RcsbFvWeb/RcsbFvComponents/ComponentsManager.d.ts +1 -0
- package/lib/commonjs/RcsbFvWeb/RcsbFvComponents/MountableComponent.d.ts +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvComponents/MountableComponent.js +5 -2
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/AlignmentBlockFactory.js +4 -4
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/AnnotationBlockManager.js +2 -2
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/SequenceTrackFactory.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/AnnotationsTrackTitleFactory.js +2 -2
- package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/SequenceTrackTitleFactory.js +3 -3
- package/lib/commonjs/RcsbFvWeb/RcsbFvGroup/GroupPfvTabs.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvGroup/GroupTabs/GroupPfvApp.js +5 -5
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvAbstractModule.js +3 -3
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvChromosome.js +3 -3
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvDataProvider.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvEntity.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAlignment.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAnnotation.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvInstance.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvInterface.js +5 -5
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvPairwiseAlignment.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvProteinSequence.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprot.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotAlignment.js +1 -1
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotEntity.js +2 -2
- package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotInstance.js +1 -1
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupBuilder.js +6 -6
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/GroupChartTools.js +2 -2
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/RcsbGroupChartComponent.js +1 -1
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupContent/RcsbGroupContentComponent.js +2 -2
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/Components/Slider.js +2 -2
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/GroupMembersGrid.js +1 -1
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/RcsbGroupMembersComponent.js +2 -2
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupSeacrhQuery/RcsbGroupSeacrhQueryComponent.d.ts +1 -0
- package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartTools/ResidueChartTools.js +1 -1
- package/lib/commonjs/RcsbRequest/RcsbRequestContextManager.js +1 -1
- package/lib/commonjs/RcsbSeacrh/FacetTools.d.ts +15 -15
- package/lib/commonjs/RcsbSeacrh/SearchRequestProperty.js +2 -2
- package/lib/commonjs/RcsbUtils/TrackGenerators/AlignmentGlobalBindingSite.js +5 -4
- package/lib/commonjs/RcsbUtils/TrackGenerators/BurialFraction.js +3 -2
- package/lib/commonjs/RcsbUtils/TrackGenerators/BuriedResidues.js +3 -2
- package/lib/commonjs/RcsbUtils/TrackGenerators/GroupExternalTrackBuilder.js +2 -1
- package/lib/commonjs/RcsbUtils/TrackGenerators/UnmodeledTrackBuilder.js +6 -6
- package/package.json +1 -1
|
@@ -40,8 +40,8 @@ export class RcsbAnnotationConfig {
|
|
|
40
40
|
}
|
|
41
41
|
//TODO refactor how title and type are defined. Can this be split in two different methods ?
|
|
42
42
|
getAnnotationType(requestConfig, ann, feature) {
|
|
43
|
+
var _a, _b, _c;
|
|
43
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
-
var _a, _b, _c;
|
|
45
45
|
const trackTitle = typeof requestConfig.trackTitle === "function" ? (yield requestConfig.trackTitle(ann, feature)) : undefined;
|
|
46
46
|
const titleSuffix = typeof requestConfig.titleSuffix === "function" ? (yield requestConfig.titleSuffix(ann, feature)) : undefined;
|
|
47
47
|
const typeSuffix = typeof requestConfig.typeSuffix === "function" ? (yield requestConfig.typeSuffix(ann, feature)) : undefined;
|
|
@@ -13,8 +13,8 @@ export class AlignmentCollector {
|
|
|
13
13
|
this.alignmentLengthSubject = new Subject();
|
|
14
14
|
}
|
|
15
15
|
collect(requestConfig, filter) {
|
|
16
|
+
var _a, _b, _c, _d, _e, _f;
|
|
16
17
|
return __awaiter(this, void 0, void 0, function* () {
|
|
17
|
-
var _a, _b, _c, _d, _e, _f;
|
|
18
18
|
this.requestStatus = "pending";
|
|
19
19
|
this.alignmentResponse = yield this.requestAlignment(requestConfig);
|
|
20
20
|
const targetAlignment = (_b = (_a = this.alignmentResponse) === null || _a === void 0 ? void 0 : _a.target_alignment) !== null && _b !== void 0 ? _b : (_e = (_d = (_c = this.alignmentResponse) === null || _c === void 0 ? void 0 : _c.target_alignment_subset) === null || _d === void 0 ? void 0 : _d.edges) === null || _e === void 0 ? void 0 : _e.map(e => e === null || e === void 0 ? void 0 : e.node);
|
|
@@ -10,8 +10,8 @@ export class AnnotationCollector {
|
|
|
10
10
|
this.annotationFeaturesSubject = new Subject();
|
|
11
11
|
}
|
|
12
12
|
collect(requestConfig) {
|
|
13
|
+
var _a;
|
|
13
14
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14
|
-
var _a;
|
|
15
15
|
this.requestStatus = "pending";
|
|
16
16
|
this.annotationFeatures = yield this.requestAnnotations(requestConfig);
|
|
17
17
|
if (typeof (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.annotationGenerator) === "function") {
|
|
@@ -44,15 +44,15 @@ export class FeatureTools {
|
|
|
44
44
|
static mergeTrackBuilders(builderA, builderB) {
|
|
45
45
|
return {
|
|
46
46
|
addTo(tracks) {
|
|
47
|
+
var _a, _b;
|
|
47
48
|
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
var _a, _b;
|
|
49
49
|
yield ((_a = builderA.addTo) === null || _a === void 0 ? void 0 : _a.call(builderA, tracks));
|
|
50
50
|
yield ((_b = builderB === null || builderB === void 0 ? void 0 : builderB.addTo) === null || _b === void 0 ? void 0 : _b.call(builderB, tracks));
|
|
51
51
|
});
|
|
52
52
|
},
|
|
53
53
|
processAlignmentAndFeatures(data) {
|
|
54
|
+
var _a, _b;
|
|
54
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
var _a, _b;
|
|
56
56
|
yield ((_a = builderA.processAlignmentAndFeatures) === null || _a === void 0 ? void 0 : _a.call(builderA, data));
|
|
57
57
|
yield ((_b = builderB === null || builderB === void 0 ? void 0 : builderB.processAlignmentAndFeatures) === null || _b === void 0 ? void 0 : _b.call(builderB, data));
|
|
58
58
|
});
|
|
@@ -882,8 +882,8 @@ class RcsbStructuralAlignmentProvider {
|
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
884
|
function alignmentTransform(alignment) {
|
|
885
|
+
var _a, _b;
|
|
885
886
|
return __awaiter(this, void 0, void 0, function* () {
|
|
886
|
-
var _a, _b;
|
|
887
887
|
const alignmentRef = mergeAlignments(alignment.results);
|
|
888
888
|
const out = alignmentRef.buildAlignments();
|
|
889
889
|
const instance_ids = (_a = out.target_alignment) === null || _a === void 0 ? void 0 : _a.map(ta => ta === null || ta === void 0 ? void 0 : ta.target_id);
|
|
@@ -35,8 +35,8 @@ export class RcsbFvCoreBuilder {
|
|
|
35
35
|
* @description This method implements a centralized point where PFVs are created. All PFV should be created using this method directly or through <CreateFvInterface.getPolymerEntityInstanceMapAndBuildFv>. In any case PFV should be built using a custom implementation.
|
|
36
36
|
* */
|
|
37
37
|
static createFv(createFvI) {
|
|
38
|
+
var _a;
|
|
38
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
var _a;
|
|
40
40
|
const elementId = createFvI.elementId;
|
|
41
41
|
const fvModuleI = createFvI.fvModuleI;
|
|
42
42
|
const config = createFvI.config;
|
|
@@ -23,8 +23,8 @@ export class RcsbFvGroupAlignmentBuilder {
|
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
static buildGroupAlignmentFv(elementId, groupProvenance, groupId, query, additionalConfig) {
|
|
26
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
26
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
28
28
|
let entityCount = -1;
|
|
29
29
|
let filterEntities = undefined;
|
|
30
30
|
if (query && query.query) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { RcsbContextType, RcsbFvAdditionalConfig } from "../RcsbFvModule/RcsbFvModuleInterface";
|
|
2
3
|
import { PolymerEntityInstanceInterface } from "../../RcsbCollectTools/DataCollectors/PolymerEntityInstancesCollector";
|
|
3
4
|
import { SelectOptionProps } from "../RcsbFvComponents/SelectButton";
|
|
@@ -6,8 +6,8 @@ import { rcsbRequestCtxManager } from "../../RcsbRequest/RcsbRequestContextManag
|
|
|
6
6
|
import { TagDelimiter } from "@rcsb/rcsb-api-tools/build/RcsbUtils/TagDelimiter";
|
|
7
7
|
//TODO Find a better structure for change callbacks
|
|
8
8
|
export class RcsbFvInstanceBuilder {
|
|
9
|
-
static buildMultipleInstanceSequenceFv(
|
|
10
|
-
return __awaiter(this,
|
|
9
|
+
static buildMultipleInstanceSequenceFv(elementFvId, elementEntrySelectId, elementInstanceSelectId, entryIdList, config = {}, additionalConfig) {
|
|
10
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
RcsbFvCoreBuilder.buildSelectButton(elementFvId, elementEntrySelectId, entryIdList.map(entryId => {
|
|
12
12
|
return {
|
|
13
13
|
label: entryId,
|
|
@@ -35,8 +35,8 @@ export class RcsbFvInstanceBuilder {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
static buildSelectorInstanceFv(instanceList, elementFvId, elementSelectId, entryId, config, additionalConfig) {
|
|
38
|
+
var _a;
|
|
38
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
var _a;
|
|
40
40
|
const filteredInstanceList = instanceList.filter(i => (config.filterInstances == null || config.filterInstances.has(i.asymId)));
|
|
41
41
|
const groupedInstances = new Map();
|
|
42
42
|
filteredInstanceList.forEach((instance) => {
|
|
@@ -4,8 +4,8 @@ import { RcsbFvProteinSequence } from "../RcsbFvModule/RcsbFvProteinSequence";
|
|
|
4
4
|
import { RcsbFvCoreBuilder } from "./RcsbFvCoreBuilder";
|
|
5
5
|
export class RcsbFvProteinSequenceBuilder {
|
|
6
6
|
static buildPfv(elementId, config) {
|
|
7
|
+
var _a;
|
|
7
8
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8
|
-
var _a;
|
|
9
9
|
const alignmentSource = (_a = config.alignmentSource) !== null && _a !== void 0 ? _a : config.reference;
|
|
10
10
|
const sources = [Source.Uniprot];
|
|
11
11
|
if (config.reference == SequenceReference.PdbEntity)
|
|
@@ -9,8 +9,8 @@ import { TagDelimiter } from "@rcsb/rcsb-api-tools/build/RcsbUtils/TagDelimiter"
|
|
|
9
9
|
const ALL = "ALL";
|
|
10
10
|
//TODO Find a better structure for change callbacks
|
|
11
11
|
export class RcsbFvUniprotBuilder {
|
|
12
|
-
static buildUniprotMultipleEntitySequenceFv(
|
|
13
|
-
return __awaiter(this,
|
|
12
|
+
static buildUniprotMultipleEntitySequenceFv(elementFvId, elementSelectId, upAcc, config = {}, additionalConfig) {
|
|
13
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14
14
|
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
|
|
15
15
|
let externalContext;
|
|
16
16
|
if (typeof config.beforeChangeCallback === "function")
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { createRoot } from "react-dom/client";
|
|
2
2
|
export class MountableComponent {
|
|
3
3
|
constructor(element) {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
var _a;
|
|
5
|
+
if (!MountableComponent.ROOT.has(element.id))
|
|
6
|
+
MountableComponent.ROOT.set(element.id, createRoot(element));
|
|
7
|
+
this.root = (_a = MountableComponent.ROOT.get(element.id)) !== null && _a !== void 0 ? _a : createRoot(element);
|
|
6
8
|
}
|
|
7
9
|
render(node) {
|
|
8
10
|
this.unmount();
|
|
@@ -12,3 +14,4 @@ export class MountableComponent {
|
|
|
12
14
|
this.root.render(undefined);
|
|
13
15
|
}
|
|
14
16
|
}
|
|
17
|
+
MountableComponent.ROOT = new Map();
|
|
@@ -5,18 +5,18 @@ export class AlignmentBlockFactory {
|
|
|
5
5
|
this.trackConfigModifier = trackModifier;
|
|
6
6
|
}
|
|
7
7
|
getBlock(alignmentRequestContext, alignmentData) {
|
|
8
|
+
var _a;
|
|
8
9
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9
|
-
var _a;
|
|
10
10
|
alignmentRequestContext = Object.assign(Object.assign({}, alignmentRequestContext), { querySequence: (_a = alignmentData.query_sequence) !== null && _a !== void 0 ? _a : undefined });
|
|
11
11
|
if (!alignmentData.target_alignment)
|
|
12
12
|
return [];
|
|
13
13
|
return (yield Promise.all(alignmentData.target_alignment.map((alignment, index) => __awaiter(this, void 0, void 0, function* () {
|
|
14
|
-
var
|
|
15
|
-
if (alignmentRequestContext.filterByTargetContains != null && !((
|
|
14
|
+
var _b, _c;
|
|
15
|
+
if (alignmentRequestContext.filterByTargetContains != null && !((_b = alignment === null || alignment === void 0 ? void 0 : alignment.target_id) === null || _b === void 0 ? void 0 : _b.includes(alignmentRequestContext.filterByTargetContains)))
|
|
16
16
|
return;
|
|
17
17
|
if ((alignment === null || alignment === void 0 ? void 0 : alignment.target_sequence) == null)
|
|
18
18
|
return;
|
|
19
|
-
return Object.assign(Object.assign({}, yield this.trackFactory.getTrack(alignmentRequestContext, alignment)), yield ((
|
|
19
|
+
return Object.assign(Object.assign({}, yield this.trackFactory.getTrack(alignmentRequestContext, alignment)), yield ((_c = this.trackConfigModifier) === null || _c === void 0 ? void 0 : _c.call(this, alignmentRequestContext, alignment, alignmentData, index)));
|
|
20
20
|
})))).filter((x) => x != undefined);
|
|
21
21
|
});
|
|
22
22
|
}
|
package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/AnnotationBlockManager.js
CHANGED
|
@@ -33,8 +33,8 @@ export class AnnotationBlockManager {
|
|
|
33
33
|
].flat();
|
|
34
34
|
}
|
|
35
35
|
processAnnotations(requestConfig, data) {
|
|
36
|
+
var _a, _b;
|
|
36
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
var _a, _b;
|
|
38
38
|
yield Promise.all(data.map(ann => {
|
|
39
39
|
var _a, _b;
|
|
40
40
|
return (_b = (_a = ann.features) === null || _a === void 0 ? void 0 : _a.map((feature) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -46,8 +46,8 @@ export class AnnotationBlockManager {
|
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
addFeature(requestConfig, ann, feature) {
|
|
49
|
+
var _a, _b, _c, _d, _e;
|
|
49
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
-
var _a, _b, _c, _d, _e;
|
|
51
51
|
if (feature.type && ((_a = this.rcsbAnnotationConfig.getConfig(feature.type)) === null || _a === void 0 ? void 0 : _a.ignore))
|
|
52
52
|
return;
|
|
53
53
|
const type = yield this.rcsbAnnotationConfig.getAnnotationType(requestConfig, ann, feature);
|
package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/SequenceTrackFactory.js
CHANGED
|
@@ -12,8 +12,8 @@ export class SequenceTrackFactory {
|
|
|
12
12
|
this.trackTitleFactory = trackTitleFactory !== null && trackTitleFactory !== void 0 ? trackTitleFactory : new SequenceTrackTitleFactory(entityInstanceTranslator);
|
|
13
13
|
}
|
|
14
14
|
getTrack(alignmentQueryContext, querySequence) {
|
|
15
|
+
var _a, _b;
|
|
15
16
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
-
var _a, _b;
|
|
17
17
|
const queryId = (_a = alignmentQueryContext.queryId) !== null && _a !== void 0 ? _a : alignmentQueryContext.groupId;
|
|
18
18
|
assertDefined(queryId);
|
|
19
19
|
return {
|
|
@@ -9,8 +9,8 @@ export class AnnotationsTrackTitleFactory {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
getTrackTitleFlagColor(trackManager) {
|
|
12
|
+
var _a, _b;
|
|
12
13
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13
|
-
var _a, _b;
|
|
14
14
|
const provenance = Array.from((_b = (_a = trackManager.getConfig()) === null || _a === void 0 ? void 0 : _a.provenanceList) !== null && _b !== void 0 ? _b : []);
|
|
15
15
|
if (provenance.length == 1
|
|
16
16
|
&&
|
|
@@ -23,8 +23,8 @@ export class AnnotationsTrackTitleFactory {
|
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
getTrackTitlePrefix(trackManager) {
|
|
26
|
+
var _a, _b;
|
|
26
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
-
var _a, _b;
|
|
28
28
|
return (_b = (_a = trackManager.getConfig()) === null || _a === void 0 ? void 0 : _a.prefix) !== null && _b !== void 0 ? _b : "";
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -12,8 +12,8 @@ export class SequenceTrackTitleFactory {
|
|
|
12
12
|
this.entityInstanceTranslator = entityInstanceTranslator;
|
|
13
13
|
}
|
|
14
14
|
getTrackTitle(alignmentQueryContext) {
|
|
15
|
+
var _a, _b, _c;
|
|
15
16
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
-
var _a, _b, _c;
|
|
17
17
|
let rowTitle;
|
|
18
18
|
if (!alignmentQueryContext.excludeFirstRowLink && alignmentQueryContext.from === SequenceReference.Uniprot) {
|
|
19
19
|
rowTitle = {
|
|
@@ -45,14 +45,14 @@ export class SequenceTrackTitleFactory {
|
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
getTrackTitlePrefix(alignmentQueryContext) {
|
|
48
|
+
var _a;
|
|
48
49
|
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
var _a;
|
|
50
50
|
return (alignmentQueryContext.from && !alignmentQueryContext.from.includes("PDB")) ? alignmentQueryContext.from.replace("_", " ") + " " + TagDelimiter.sequenceTitle : ((_a = alignmentQueryContext.sequencePrefix) !== null && _a !== void 0 ? _a : "");
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
getTrackTitleFlagColor(alignmentQueryContext) {
|
|
54
|
+
var _a;
|
|
54
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
var _a;
|
|
56
56
|
const queryId = (_a = alignmentQueryContext.queryId) !== null && _a !== void 0 ? _a : alignmentQueryContext.groupId;
|
|
57
57
|
assertDefined(queryId), assertDefined(alignmentQueryContext.from);
|
|
58
58
|
return TrackUtils.getProvenanceConfigFormTarget(queryId, alignmentQueryContext.from).color;
|
|
@@ -76,8 +76,8 @@ export class GroupPfvTabs extends React.Component {
|
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
renderPositionalFeatureViewer(tabKey) {
|
|
79
|
+
var _a, _b, _c, _d, _e;
|
|
79
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
-
var _a, _b, _c, _d, _e;
|
|
81
81
|
switch (tabKey) {
|
|
82
82
|
case ALIGNMENT:
|
|
83
83
|
this.featureViewers.set(tabKey, yield GPA.alignment(tabKey.toString(), this.props.groupProvenanceId, this.props.groupId, (_a = this.entityCount) !== null && _a !== void 0 ? _a : 0, Object.assign(Object.assign({ page: { first: 50, after: "0" } }, this.props.additionalConfig), { alignmentFilter: this.filterEntities })));
|
|
@@ -12,8 +12,8 @@ import { PaginationItemComponent } from "../../../RcsbFvUI/Components/Pagination
|
|
|
12
12
|
export var GroupPfvApp;
|
|
13
13
|
(function (GroupPfvApp) {
|
|
14
14
|
function alignment(elementId, groupProvenanceId, groupId, entityCount, additionalConfig) {
|
|
15
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
15
16
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
17
17
|
switch (groupProvenanceId) {
|
|
18
18
|
case GroupProvenanceId.ProvenanceMatchingUniprotAccession:
|
|
19
19
|
return RcsbFvUniprotBuilder.buildUniprotMultipleEntitySequenceFv(elementId, elementId + RcsbTabs.SELECT_SUFFIX, groupId, {}, additionalConfig);
|
|
@@ -49,8 +49,8 @@ export var GroupPfvApp;
|
|
|
49
49
|
}
|
|
50
50
|
GroupPfvApp.alignment = alignment;
|
|
51
51
|
function structure(elementId, groupProvenanceId, groupId, nTargets, additionalConfig) {
|
|
52
|
+
var _a;
|
|
52
53
|
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
var _a;
|
|
54
54
|
additionalConfig = Object.assign(Object.assign({}, additionalConfig), { filters: [...((_a = additionalConfig === null || additionalConfig === void 0 ? void 0 : additionalConfig.filters) !== null && _a !== void 0 ? _a : []), {
|
|
55
55
|
field: FieldName.Type,
|
|
56
56
|
values: [Type.HelixP, Type.Sheet, Type.Cath, Type.Scop],
|
|
@@ -74,8 +74,8 @@ export var GroupPfvApp;
|
|
|
74
74
|
}
|
|
75
75
|
GroupPfvApp.structure = structure;
|
|
76
76
|
function bindingSites(elementId, groupProvenanceId, groupId, nTargets, additionalConfig) {
|
|
77
|
+
var _a;
|
|
77
78
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
var _a;
|
|
79
79
|
additionalConfig = Object.assign(Object.assign({}, additionalConfig), { filters: [...((_a = additionalConfig === null || additionalConfig === void 0 ? void 0 : additionalConfig.filters) !== null && _a !== void 0 ? _a : []), {
|
|
80
80
|
field: FieldName.Type,
|
|
81
81
|
values: [Type.BindingSite],
|
|
@@ -91,8 +91,8 @@ export class RcsbFvAbstractModule {
|
|
|
91
91
|
return this.rcsbFvRowUpdatePromise;
|
|
92
92
|
}
|
|
93
93
|
buildAlignmentTracks(alignmentRequestContext, alignmentResponse, trackFactories) {
|
|
94
|
+
var _a, _b, _c, _d;
|
|
94
95
|
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
-
var _a, _b, _c, _d;
|
|
96
96
|
const sequenceTrackFactory = (_a = trackFactories === null || trackFactories === void 0 ? void 0 : trackFactories.sequenceTrackFactory) !== null && _a !== void 0 ? _a : new SequenceTrackFactory(this.getPolymerEntityInstanceTranslator());
|
|
97
97
|
if (alignmentResponse.query_sequence)
|
|
98
98
|
this.referenceTrack = yield sequenceTrackFactory.getTrack(alignmentRequestContext, alignmentResponse.query_sequence);
|
|
@@ -101,8 +101,8 @@ export class RcsbFvAbstractModule {
|
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
buildAnnotationsTrack(annotationsRequestContext, annotationsFeatures, annotationConfigMap) {
|
|
104
|
+
var _a, _b;
|
|
104
105
|
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
-
var _a, _b;
|
|
106
106
|
const defaultAnnotationConfigMap = annotationConfigMap !== null && annotationConfigMap !== void 0 ? annotationConfigMap : acm;
|
|
107
107
|
const annotationsBlockFactory = new AnnotationsBlockFactory(new AnnotationBlockManager(new AnnotationTrackManagerFactory(), new RcsbAnnotationConfig(defaultAnnotationConfigMap), this.getPolymerEntityInstanceTranslator()), new AnnotationsTrackFactory(), (_b = (_a = this.buildConfig.additionalConfig) === null || _a === void 0 ? void 0 : _a.trackConfigModifier) === null || _b === void 0 ? void 0 : _b.annotations);
|
|
108
108
|
this.annotationTracks = yield annotationsBlockFactory.getBlock(annotationsRequestContext, annotationsFeatures);
|
|
@@ -119,8 +119,8 @@ export class RcsbFvAbstractModule {
|
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
buildExternalTracks() {
|
|
122
|
+
var _a, _b;
|
|
122
123
|
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
-
var _a, _b;
|
|
124
124
|
const externalTrackBuilder = (_a = this.buildConfig.additionalConfig) === null || _a === void 0 ? void 0 : _a.externalTrackBuilder;
|
|
125
125
|
const rcsbContext = (_b = this.buildConfig.additionalConfig) === null || _b === void 0 ? void 0 : _b.rcsbContext;
|
|
126
126
|
if (!externalTrackBuilder)
|
|
@@ -139,8 +139,8 @@ export class RcsbFvChromosome extends RcsbFvAbstractModule {
|
|
|
139
139
|
this.collectChromosomeAlignments(chrId, SequenceReference.NcbiProtein);
|
|
140
140
|
}
|
|
141
141
|
collectPdbWorkerResults(ar, pdbEntityId, chrId) {
|
|
142
|
+
var _c, _d;
|
|
142
143
|
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
-
var _c, _d;
|
|
144
144
|
assertElementListDefined(ar.target_alignment);
|
|
145
145
|
const exonTracks = this.collectExons(ar.target_alignment, "target", RcsbAnnotationConstants.provenanceColorCode.rcsbPdb, RcsbAnnotationConstants.provenanceColorCode.rcsbPdb, SequenceReference.PdbEntity, chrId);
|
|
146
146
|
this.pdbEntityTrack = this.mergeExonTracks(exonTracks, SequenceReference.PdbEntity)[0];
|
|
@@ -621,8 +621,8 @@ export class RcsbFvChromosome extends RcsbFvAbstractModule {
|
|
|
621
621
|
});
|
|
622
622
|
}
|
|
623
623
|
setDisplayView() {
|
|
624
|
+
var _c, _d, _e, _f, _g, _h, _j;
|
|
624
625
|
return __awaiter(this, void 0, void 0, function* () {
|
|
625
|
-
var _c, _d, _e, _f, _g, _h, _j;
|
|
626
626
|
if (this.entityBegin == 0 && this.entityEnd == 0 && ((_e = (_d = (_c = this.pdbEntityTrack) === null || _c === void 0 ? void 0 : _c.displayConfig) === null || _d === void 0 ? void 0 : _d.length) !== null && _e !== void 0 ? _e : 0) > 0) {
|
|
627
627
|
const d = (_f = this.pdbEntityTrack.displayConfig) === null || _f === void 0 ? void 0 : _f[0].displayData;
|
|
628
628
|
if (!d)
|
|
@@ -659,8 +659,8 @@ export class RcsbFvChromosome extends RcsbFvAbstractModule {
|
|
|
659
659
|
});
|
|
660
660
|
}
|
|
661
661
|
plot() {
|
|
662
|
+
var _c, _d, _e, _f;
|
|
662
663
|
return __awaiter(this, void 0, void 0, function* () {
|
|
663
|
-
var _c, _d, _e, _f;
|
|
664
664
|
console.log("PROCESSING");
|
|
665
665
|
let tracks = new Array();
|
|
666
666
|
let ncbiTracks = new Array();
|
|
@@ -3,8 +3,8 @@ import { RcsbFvAbstractModule } from "./RcsbFvAbstractModule";
|
|
|
3
3
|
import { PlainAlignmentTrackFactory } from "../RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/PlainAlignmentTrackFactory";
|
|
4
4
|
export class RcsbFvDataProvider extends RcsbFvAbstractModule {
|
|
5
5
|
protectedBuild() {
|
|
6
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
6
7
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
8
8
|
if ((_b = (_a = this.buildConfig.additionalConfig) === null || _a === void 0 ? void 0 : _a.dataProvider) === null || _b === void 0 ? void 0 : _b.alignments) {
|
|
9
9
|
this.alignmentCollector = this.buildConfig.additionalConfig.dataProvider.alignments.collector;
|
|
10
10
|
const alignmentResponse = yield this.alignmentCollector.collect(Object.assign({}, (_d = (_c = this.buildConfig.additionalConfig) === null || _c === void 0 ? void 0 : _c.dataProvider) === null || _d === void 0 ? void 0 : _d.alignments.context), (_e = this.buildConfig.additionalConfig) === null || _e === void 0 ? void 0 : _e.alignmentFilter);
|
|
@@ -11,8 +11,8 @@ export class RcsbFvEntity extends RcsbFvAbstractModule {
|
|
|
11
11
|
this.unmodeledTrackBuilder = new UnmodeledTrackBuilder();
|
|
12
12
|
}
|
|
13
13
|
protectedBuild() {
|
|
14
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
14
15
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
16
16
|
const buildConfig = this.buildConfig;
|
|
17
17
|
assertDefined(buildConfig.entityId);
|
|
18
18
|
const alignmentRequestContext = {
|
|
@@ -9,8 +9,8 @@ import { Operator } from "../../RcsbUtils/Helpers/Operator";
|
|
|
9
9
|
import { rcsbRequestCtxManager } from "../../RcsbRequest/RcsbRequestContextManager";
|
|
10
10
|
export class RcsbFvGroupAlignment extends RcsbFvAbstractModule {
|
|
11
11
|
protectedBuild() {
|
|
12
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
12
13
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
14
14
|
const buildConfig = this.buildConfig;
|
|
15
15
|
assertDefined(buildConfig.groupId), assertDefined(buildConfig.group), assertDefined((_a = buildConfig.additionalConfig) === null || _a === void 0 ? void 0 : _a.page);
|
|
16
16
|
const alignmentRequestContext = {
|
|
@@ -7,8 +7,8 @@ var assertDefined = Assertions.assertDefined;
|
|
|
7
7
|
const annotationConfigMap = acm;
|
|
8
8
|
export class RcsbFvGroupAnnotation extends RcsbFvAbstractModule {
|
|
9
9
|
protectedBuild() {
|
|
10
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
10
11
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
12
12
|
const buildConfig = this.buildConfig;
|
|
13
13
|
assertDefined(buildConfig.group), assertDefined(buildConfig.groupId), assertDefined((_a = buildConfig.additionalConfig) === null || _a === void 0 ? void 0 : _a.page);
|
|
14
14
|
const alignmentRequestContext = {
|
|
@@ -8,8 +8,8 @@ import { Assertions } from "../../RcsbUtils/Helpers/Assertions";
|
|
|
8
8
|
var assertDefined = Assertions.assertDefined;
|
|
9
9
|
export class RcsbFvInstance extends RcsbFvAbstractModule {
|
|
10
10
|
protectedBuild() {
|
|
11
|
+
var _a, _b, _c, _d;
|
|
11
12
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12
|
-
var _a, _b, _c, _d;
|
|
13
13
|
const buildConfig = this.buildConfig;
|
|
14
14
|
const instanceId = buildConfig.instanceId;
|
|
15
15
|
assertDefined(instanceId);
|
|
@@ -14,8 +14,8 @@ import { TagDelimiter } from "@rcsb/rcsb-api-tools/build/RcsbUtils/TagDelimiter"
|
|
|
14
14
|
const annotationConfigMap = acm;
|
|
15
15
|
export class RcsbFvInterface extends RcsbFvAbstractModule {
|
|
16
16
|
protectedBuild() {
|
|
17
|
+
var _a, _b, _c, _d, _e;
|
|
17
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18
|
-
var _a, _b, _c, _d, _e;
|
|
19
19
|
const buildConfig = this.buildConfig;
|
|
20
20
|
const instanceId = buildConfig.instanceId;
|
|
21
21
|
assertDefined(instanceId);
|
|
@@ -60,8 +60,8 @@ export class RcsbFvInterface extends RcsbFvAbstractModule {
|
|
|
60
60
|
this.alignmentTracks.concat(this.annotationTracks);
|
|
61
61
|
}
|
|
62
62
|
typeSuffix(ann, d) {
|
|
63
|
+
var _a;
|
|
63
64
|
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
-
var _a;
|
|
65
65
|
if (ann.source === Source.PdbInterface && ((_a = ann.target_identifiers) === null || _a === void 0 ? void 0 : _a.interface_id)) {
|
|
66
66
|
return ann.target_identifiers.interface_id + "|" + ann.target_identifiers.interface_partner_index;
|
|
67
67
|
}
|
|
@@ -5,8 +5,8 @@ import { Assertions } from "../../RcsbUtils/Helpers/Assertions";
|
|
|
5
5
|
var assertDefined = Assertions.assertDefined;
|
|
6
6
|
export class RcsbFvPairwiseAlignment extends RcsbFvAbstractModule {
|
|
7
7
|
protectedBuild() {
|
|
8
|
+
var _a;
|
|
8
9
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9
|
-
var _a;
|
|
10
10
|
const buildConfig = this.buildConfig;
|
|
11
11
|
assertDefined(buildConfig.psa);
|
|
12
12
|
const pab = new PairwiseAlignmentBuilder(buildConfig.psa);
|
|
@@ -5,8 +5,8 @@ import { Assertions } from "../../RcsbUtils/Helpers/Assertions";
|
|
|
5
5
|
var assertDefined = Assertions.assertDefined;
|
|
6
6
|
export class RcsbFvProteinSequence extends RcsbFvAbstractModule {
|
|
7
7
|
protectedBuild() {
|
|
8
|
+
var _a, _b, _c, _d, _e;
|
|
8
9
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9
|
-
var _a, _b, _c, _d, _e;
|
|
10
10
|
const buildConfig = this.buildConfig;
|
|
11
11
|
const queryId = buildConfig.queryId;
|
|
12
12
|
assertDefined(queryId);
|
|
@@ -7,8 +7,8 @@ import { Assertions } from "../../RcsbUtils/Helpers/Assertions";
|
|
|
7
7
|
var assertDefined = Assertions.assertDefined;
|
|
8
8
|
export class RcsbFvUniprot extends RcsbFvAbstractModule {
|
|
9
9
|
protectedBuild() {
|
|
10
|
+
var _a, _b, _c, _d;
|
|
10
11
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11
|
-
var _a, _b, _c, _d;
|
|
12
12
|
const buildConfig = this.buildConfig;
|
|
13
13
|
const upAcc = buildConfig.upAcc;
|
|
14
14
|
assertDefined(upAcc);
|
|
@@ -7,8 +7,8 @@ import { Assertions } from "../../RcsbUtils/Helpers/Assertions";
|
|
|
7
7
|
var assertDefined = Assertions.assertDefined;
|
|
8
8
|
export class RcsbFvUniprotAlignment extends RcsbFvAbstractModule {
|
|
9
9
|
protectedBuild() {
|
|
10
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
10
11
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
12
12
|
const buildConfig = this.buildConfig;
|
|
13
13
|
assertDefined((_a = buildConfig.additionalConfig) === null || _a === void 0 ? void 0 : _a.page), assertDefined(buildConfig.upAcc);
|
|
14
14
|
const alignmentRequestContext = {
|
|
@@ -11,8 +11,8 @@ export class RcsbFvUniprotEntity extends RcsbFvAbstractModule {
|
|
|
11
11
|
this.unmodeledTrackBuilder = new UnmodeledTrackBuilder();
|
|
12
12
|
}
|
|
13
13
|
protectedBuild() {
|
|
14
|
+
var _a, _b, _c;
|
|
14
15
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15
|
-
var _a, _b, _c;
|
|
16
16
|
const buildConfig = this.buildConfig;
|
|
17
17
|
const upAcc = buildConfig.upAcc;
|
|
18
18
|
const entityId = buildConfig.entityId;
|
|
@@ -62,8 +62,8 @@ export class RcsbFvUniprotEntity extends RcsbFvAbstractModule {
|
|
|
62
62
|
this.rowConfigData = [this.referenceTrack].concat(this.alignmentTracks).concat(this.annotationTracks);
|
|
63
63
|
}
|
|
64
64
|
titleSuffix(ann, d) {
|
|
65
|
+
var _a;
|
|
65
66
|
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
-
var _a;
|
|
67
67
|
if (this.polymerEntityInstance != null && ann.source === Source.PdbInstance) {
|
|
68
68
|
const labelAsymId = (_a = ann.target_id) === null || _a === void 0 ? void 0 : _a.split(TagDelimiter.instance)[1];
|
|
69
69
|
if (!labelAsymId)
|
|
@@ -6,8 +6,8 @@ import { Assertions } from "../../RcsbUtils/Helpers/Assertions";
|
|
|
6
6
|
var assertDefined = Assertions.assertDefined;
|
|
7
7
|
export class RcsbFvUniprotInstance extends RcsbFvAbstractModule {
|
|
8
8
|
protectedBuild() {
|
|
9
|
+
var _a, _b, _c;
|
|
9
10
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10
|
-
var _a, _b, _c;
|
|
11
11
|
const buildConfig = this.buildConfig;
|
|
12
12
|
const upAcc = buildConfig.upAcc;
|
|
13
13
|
const entityId = buildConfig.entityId;
|
|
@@ -8,8 +8,8 @@ import { rcsbRequestCtxManager } from "../../../RcsbRequest/RcsbRequestContextMa
|
|
|
8
8
|
export var GroupChartMap;
|
|
9
9
|
(function (GroupChartMap) {
|
|
10
10
|
function getChartMap(groupProvenanceId, groupId, searchQuery) {
|
|
11
|
+
var _a;
|
|
11
12
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12
|
-
var _a;
|
|
13
13
|
const facetStore = SQT.getFacetStoreFromGroupProvenance(groupProvenanceId);
|
|
14
14
|
let facets = [];
|
|
15
15
|
for (const service of facetStore.getServices()) {
|
|
@@ -45,8 +45,8 @@ export var GroupChartMap;
|
|
|
45
45
|
}
|
|
46
46
|
GroupChartMap.getChartMap = getChartMap;
|
|
47
47
|
function subtractSearchQuery(chartData, groupProvenanceId, groupId, searchQuery) {
|
|
48
|
+
var _a, _b;
|
|
48
49
|
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
var _a, _b;
|
|
50
50
|
const facetStore = SQT.getFacetStoreFromGroupProvenance(groupProvenanceId);
|
|
51
51
|
let subData;
|
|
52
52
|
let partialFacets = [];
|
|
@@ -23,8 +23,8 @@ export class RcsbGroupChartComponent extends React.Component {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
updateState() {
|
|
26
|
+
var _a, _b, _c;
|
|
26
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
-
var _a, _b, _c;
|
|
28
28
|
const layout = (_a = this.props.facetLayoutGrid) !== null && _a !== void 0 ? _a : SQT.getFacetStoreFromGroupProvenance(this.props.groupProvenanceId).facetLayoutGrid;
|
|
29
29
|
const chartMap = yield GDCM.getChartMap(this.props.groupProvenanceId, this.props.groupId, this.props.searchQuery);
|
|
30
30
|
if ((_b = this.props.additionalProperties) === null || _b === void 0 ? void 0 : _b.layoutConfig)
|
|
@@ -18,8 +18,8 @@ export class RcsbGroupContentComponent extends React.Component {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
componentDidMount() {
|
|
21
|
+
var _a, _b;
|
|
21
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
var _a, _b;
|
|
23
23
|
this.subscribe();
|
|
24
24
|
const fullGroupMembers = (_a = (yield searchRequest(this.props.groupProvenanceId, this.props.groupId))) === null || _a === void 0 ? void 0 : _a.total_count;
|
|
25
25
|
const subGroupMembers = (_b = (yield searchRequest(this.props.groupProvenanceId, this.props.groupId, this.props.searchQuery))) === null || _b === void 0 ? void 0 : _b.total_count;
|
|
@@ -44,8 +44,8 @@ export class RcsbGroupContentComponent extends React.Component {
|
|
|
44
44
|
return ((_a = this.props.displayNumber) !== null && _a !== void 0 ? _a : Operator.digitGrouping)(x);
|
|
45
45
|
}
|
|
46
46
|
updateGroupContent(o) {
|
|
47
|
+
var _a;
|
|
47
48
|
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
var _a;
|
|
49
49
|
const subGroupMembers = (_a = (yield searchRequest(this.props.groupProvenanceId, this.props.groupId, o.searchQuery))) === null || _a === void 0 ? void 0 : _a.total_count;
|
|
50
50
|
if (subGroupMembers)
|
|
51
51
|
this.setState({ subGroupMembers, searchQuery: o.searchQuery });
|
|
@@ -71,8 +71,8 @@ export class GroupMembersGrid extends React.Component {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
function searchRequest(groupProvenanceId, groupId, start, rows, searchQuery) {
|
|
74
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
74
75
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
76
76
|
return yield rcsbRequestCtxManager.getSearchQuery({
|
|
77
77
|
query: (searchQuery === null || searchQuery === void 0 ? void 0 : searchQuery.query) ? SQT.addGroupNodeToSearchQuery(groupProvenanceId, groupId, searchQuery.query) : SQT.searchGroupQuery(groupProvenanceId, groupId),
|
|
78
78
|
request_options: {
|