@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.
Files changed (112) hide show
  1. package/build/app.js +1 -1
  2. package/build/constants.js +1 -1
  3. package/build/plot.js +1 -1
  4. package/build/plot.js.LICENSE.txt +2 -2
  5. package/build/worker.js +1 -1
  6. package/lib/RcsbAnnotationConfig/RcsbAnnotationConfig.js +1 -1
  7. package/lib/RcsbChartWeb/HistogramChartComponent.d.ts +1 -0
  8. package/lib/RcsbCollectTools/AlignmentCollector/AlignmentCollector.js +1 -1
  9. package/lib/RcsbCollectTools/AnnotationCollector/AnnotationCollector.js +1 -1
  10. package/lib/RcsbCollectTools/FeatureTools/FeatureTools.js +2 -2
  11. package/lib/RcsbFvExamples/ExternalDataProvider.js +1 -1
  12. package/lib/RcsbFvUI/Components/FilterItemComponent.d.ts +1 -0
  13. package/lib/RcsbFvUI/Components/PaginationItemComponent.d.ts +1 -0
  14. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvCoreBuilder.js +1 -1
  15. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvGroupAlignmentBuilder.js +1 -1
  16. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.d.ts +1 -0
  17. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.js +3 -3
  18. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvProteinSequenceBuilder.js +1 -1
  19. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvUniprotBuilder.js +2 -2
  20. package/lib/RcsbFvWeb/RcsbFvComponents/ComponentsManager.d.ts +1 -0
  21. package/lib/RcsbFvWeb/RcsbFvComponents/MountableComponent.d.ts +1 -1
  22. package/lib/RcsbFvWeb/RcsbFvComponents/MountableComponent.js +5 -2
  23. package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/AlignmentBlockFactory.js +4 -4
  24. package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/AnnotationBlockManager.js +2 -2
  25. package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/SequenceTrackFactory.js +1 -1
  26. package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/AnnotationsTrackTitleFactory.js +2 -2
  27. package/lib/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/SequenceTrackTitleFactory.js +3 -3
  28. package/lib/RcsbFvWeb/RcsbFvGroup/GroupPfvTabs.js +1 -1
  29. package/lib/RcsbFvWeb/RcsbFvGroup/GroupTabs/GroupPfvApp.js +3 -3
  30. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvAbstractModule.js +3 -3
  31. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvChromosome.js +3 -3
  32. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvDataProvider.js +1 -1
  33. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvEntity.js +1 -1
  34. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAlignment.js +1 -1
  35. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAnnotation.js +1 -1
  36. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvInstance.js +1 -1
  37. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvInterface.js +2 -2
  38. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvPairwiseAlignment.js +1 -1
  39. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvProteinSequence.js +1 -1
  40. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprot.js +1 -1
  41. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotAlignment.js +1 -1
  42. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotEntity.js +2 -2
  43. package/lib/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotInstance.js +1 -1
  44. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/GroupChartTools.js +2 -2
  45. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/RcsbGroupChartComponent.js +1 -1
  46. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupContent/RcsbGroupContentComponent.js +2 -2
  47. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/GroupMembersGrid.js +1 -1
  48. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbGroupSeacrhQuery/RcsbGroupSeacrhQueryComponent.d.ts +1 -0
  49. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartTools/ResidueChartTools.js +1 -1
  50. package/lib/RcsbRequest/RcsbRequestContextManager.js +1 -1
  51. package/lib/RcsbSeacrh/FacetTools.d.ts +15 -15
  52. package/lib/RcsbSeacrh/SearchRequestProperty.js +2 -2
  53. package/lib/RcsbUtils/TrackGenerators/AlignmentGlobalBindingSite.js +3 -3
  54. package/lib/RcsbUtils/TrackGenerators/UnmodeledTrackBuilder.js +4 -4
  55. package/lib/commonjs/RcsbAnnotationConfig/RcsbAnnotationConfig.js +1 -1
  56. package/lib/commonjs/RcsbChartWeb/HistogramChartComponent.d.ts +1 -0
  57. package/lib/commonjs/RcsbCollectTools/AlignmentCollector/AlignmentCollector.js +1 -1
  58. package/lib/commonjs/RcsbCollectTools/AnnotationCollector/AnnotationCollector.js +1 -1
  59. package/lib/commonjs/RcsbCollectTools/FeatureTools/FeatureTools.js +2 -2
  60. package/lib/commonjs/RcsbFvExamples/ExternalDataProvider.js +1 -1
  61. package/lib/commonjs/RcsbFvExamples/utils/events.js +3 -2
  62. package/lib/commonjs/RcsbFvUI/Components/FilterItemComponent.d.ts +1 -0
  63. package/lib/commonjs/RcsbFvUI/Components/PaginationItemComponent.d.ts +1 -0
  64. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvCoreBuilder.js +1 -1
  65. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvGroupAlignmentBuilder.js +1 -1
  66. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.d.ts +1 -0
  67. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.js +3 -3
  68. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvProteinSequenceBuilder.js +1 -1
  69. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvUniprotBuilder.js +2 -2
  70. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder.js +23 -22
  71. package/lib/commonjs/RcsbFvWeb/RcsbFvComponents/ComponentsManager.d.ts +1 -0
  72. package/lib/commonjs/RcsbFvWeb/RcsbFvComponents/MountableComponent.d.ts +1 -1
  73. package/lib/commonjs/RcsbFvWeb/RcsbFvComponents/MountableComponent.js +5 -2
  74. package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/AlignmentBlockFactory.js +4 -4
  75. package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/AnnotationBlockManager.js +2 -2
  76. package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/SequenceTrackFactory.js +1 -1
  77. package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/AnnotationsTrackTitleFactory.js +2 -2
  78. package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/SequenceTrackTitleFactory.js +3 -3
  79. package/lib/commonjs/RcsbFvWeb/RcsbFvGroup/GroupPfvTabs.js +1 -1
  80. package/lib/commonjs/RcsbFvWeb/RcsbFvGroup/GroupTabs/GroupPfvApp.js +5 -5
  81. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvAbstractModule.js +3 -3
  82. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvChromosome.js +3 -3
  83. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvDataProvider.js +1 -1
  84. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvEntity.js +1 -1
  85. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAlignment.js +1 -1
  86. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAnnotation.js +1 -1
  87. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvInstance.js +1 -1
  88. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvInterface.js +5 -5
  89. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvPairwiseAlignment.js +1 -1
  90. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvProteinSequence.js +1 -1
  91. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprot.js +1 -1
  92. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotAlignment.js +1 -1
  93. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotEntity.js +2 -2
  94. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotInstance.js +1 -1
  95. package/lib/commonjs/RcsbGroupWeb/RcsbGroupBuilder.js +6 -6
  96. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/GroupChartTools.js +2 -2
  97. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/RcsbGroupChartComponent.js +1 -1
  98. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupContent/RcsbGroupContentComponent.js +2 -2
  99. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/Components/Slider.js +2 -2
  100. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/GroupMembersGrid.js +1 -1
  101. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/RcsbGroupMembersComponent.js +2 -2
  102. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupSeacrhQuery/RcsbGroupSeacrhQueryComponent.d.ts +1 -0
  103. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartTools/ResidueChartTools.js +1 -1
  104. package/lib/commonjs/RcsbRequest/RcsbRequestContextManager.js +1 -1
  105. package/lib/commonjs/RcsbSeacrh/FacetTools.d.ts +15 -15
  106. package/lib/commonjs/RcsbSeacrh/SearchRequestProperty.js +2 -2
  107. package/lib/commonjs/RcsbUtils/TrackGenerators/AlignmentGlobalBindingSite.js +5 -4
  108. package/lib/commonjs/RcsbUtils/TrackGenerators/BurialFraction.js +3 -2
  109. package/lib/commonjs/RcsbUtils/TrackGenerators/BuriedResidues.js +3 -2
  110. package/lib/commonjs/RcsbUtils/TrackGenerators/GroupExternalTrackBuilder.js +2 -1
  111. package/lib/commonjs/RcsbUtils/TrackGenerators/UnmodeledTrackBuilder.js +6 -6
  112. package/package.json +1 -1
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GroupPfvApp = void 0;
4
- exports.getReferenceFromGroupProvenance = getReferenceFromGroupProvenance;
3
+ exports.getReferenceFromGroupProvenance = exports.GroupPfvApp = void 0;
5
4
  const tslib_1 = require("tslib");
6
5
  const DwEnums_1 = require("@rcsb/rcsb-api-tools/build/RcsbDw/Types/DwEnums");
7
6
  const RcsbFvUniprotBuilder_1 = require("../../RcsbFvBuilder/RcsbFvUniprotBuilder");
@@ -16,8 +15,8 @@ const PaginationItemComponent_1 = require("../../../RcsbFvUI/Components/Paginati
16
15
  var GroupPfvApp;
17
16
  (function (GroupPfvApp) {
18
17
  function alignment(elementId, groupProvenanceId, groupId, entityCount, additionalConfig) {
18
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
19
19
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
20
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
21
20
  switch (groupProvenanceId) {
22
21
  case DwEnums_1.GroupProvenanceId.ProvenanceMatchingUniprotAccession:
23
22
  return RcsbFvUniprotBuilder_1.RcsbFvUniprotBuilder.buildUniprotMultipleEntitySequenceFv(elementId, elementId + RcsbTabs_1.RcsbTabs.SELECT_SUFFIX, groupId, {}, additionalConfig);
@@ -53,8 +52,8 @@ var GroupPfvApp;
53
52
  }
54
53
  GroupPfvApp.alignment = alignment;
55
54
  function structure(elementId, groupProvenanceId, groupId, nTargets, additionalConfig) {
55
+ var _a;
56
56
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
57
- var _a;
58
57
  additionalConfig = Object.assign(Object.assign({}, additionalConfig), { filters: [...((_a = additionalConfig === null || additionalConfig === void 0 ? void 0 : additionalConfig.filters) !== null && _a !== void 0 ? _a : []), {
59
58
  field: GqlTypes_1.FieldName.Type,
60
59
  values: [GqlTypes_1.Type.HelixP, GqlTypes_1.Type.Sheet, GqlTypes_1.Type.Cath, GqlTypes_1.Type.Scop],
@@ -78,8 +77,8 @@ var GroupPfvApp;
78
77
  }
79
78
  GroupPfvApp.structure = structure;
80
79
  function bindingSites(elementId, groupProvenanceId, groupId, nTargets, additionalConfig) {
80
+ var _a;
81
81
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
82
- var _a;
83
82
  additionalConfig = Object.assign(Object.assign({}, additionalConfig), { filters: [...((_a = additionalConfig === null || additionalConfig === void 0 ? void 0 : additionalConfig.filters) !== null && _a !== void 0 ? _a : []), {
84
83
  field: GqlTypes_1.FieldName.Type,
85
84
  values: [GqlTypes_1.Type.BindingSite],
@@ -133,3 +132,4 @@ function getReferenceFromGroupProvenance(groupProvenanceId) {
133
132
  return GqlTypes_1.GroupReference.MatchingUniprotAccession;
134
133
  }
135
134
  }
135
+ exports.getReferenceFromGroupProvenance = getReferenceFromGroupProvenance;
@@ -94,8 +94,8 @@ class RcsbFvAbstractModule {
94
94
  return this.rcsbFvRowUpdatePromise;
95
95
  }
96
96
  buildAlignmentTracks(alignmentRequestContext, alignmentResponse, trackFactories) {
97
+ var _a, _b, _c, _d;
97
98
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
98
- var _a, _b, _c, _d;
99
99
  const sequenceTrackFactory = (_a = trackFactories === null || trackFactories === void 0 ? void 0 : trackFactories.sequenceTrackFactory) !== null && _a !== void 0 ? _a : new SequenceTrackFactory_1.SequenceTrackFactory(this.getPolymerEntityInstanceTranslator());
100
100
  if (alignmentResponse.query_sequence)
101
101
  this.referenceTrack = yield sequenceTrackFactory.getTrack(alignmentRequestContext, alignmentResponse.query_sequence);
@@ -104,8 +104,8 @@ class RcsbFvAbstractModule {
104
104
  });
105
105
  }
106
106
  buildAnnotationsTrack(annotationsRequestContext, annotationsFeatures, annotationConfigMap) {
107
+ var _a, _b;
107
108
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
108
- var _a, _b;
109
109
  const defaultAnnotationConfigMap = annotationConfigMap !== null && annotationConfigMap !== void 0 ? annotationConfigMap : acm;
110
110
  const annotationsBlockFactory = new AnnotationsBlockFactory_1.AnnotationsBlockFactory(new AnnotationBlockManager_1.AnnotationBlockManager(new AnnotationTrackManager_1.AnnotationTrackManagerFactory(), new RcsbAnnotationConfig_1.RcsbAnnotationConfig(defaultAnnotationConfigMap), this.getPolymerEntityInstanceTranslator()), new AnnotationsTrackFactory_1.AnnotationsTrackFactory(), (_b = (_a = this.buildConfig.additionalConfig) === null || _a === void 0 ? void 0 : _a.trackConfigModifier) === null || _b === void 0 ? void 0 : _b.annotations);
111
111
  this.annotationTracks = yield annotationsBlockFactory.getBlock(annotationsRequestContext, annotationsFeatures);
@@ -122,8 +122,8 @@ class RcsbFvAbstractModule {
122
122
  });
123
123
  }
124
124
  buildExternalTracks() {
125
+ var _a, _b;
125
126
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
126
- var _a, _b;
127
127
  const externalTrackBuilder = (_a = this.buildConfig.additionalConfig) === null || _a === void 0 ? void 0 : _a.externalTrackBuilder;
128
128
  const rcsbContext = (_b = this.buildConfig.additionalConfig) === null || _b === void 0 ? void 0 : _b.rcsbContext;
129
129
  if (!externalTrackBuilder)
@@ -142,8 +142,8 @@ class RcsbFvChromosome extends RcsbFvAbstractModule_1.RcsbFvAbstractModule {
142
142
  this.collectChromosomeAlignments(chrId, GqlTypes_1.SequenceReference.NcbiProtein);
143
143
  }
144
144
  collectPdbWorkerResults(ar, pdbEntityId, chrId) {
145
+ var _c, _d;
145
146
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
146
- var _c, _d;
147
147
  assertElementListDefined(ar.target_alignment);
148
148
  const exonTracks = this.collectExons(ar.target_alignment, "target", RcsbAnnotationConstants_1.RcsbAnnotationConstants.provenanceColorCode.rcsbPdb, RcsbAnnotationConstants_1.RcsbAnnotationConstants.provenanceColorCode.rcsbPdb, GqlTypes_1.SequenceReference.PdbEntity, chrId);
149
149
  this.pdbEntityTrack = this.mergeExonTracks(exonTracks, GqlTypes_1.SequenceReference.PdbEntity)[0];
@@ -624,8 +624,8 @@ class RcsbFvChromosome extends RcsbFvAbstractModule_1.RcsbFvAbstractModule {
624
624
  });
625
625
  }
626
626
  setDisplayView() {
627
+ var _c, _d, _e, _f, _g, _h, _j;
627
628
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
628
- var _c, _d, _e, _f, _g, _h, _j;
629
629
  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) {
630
630
  const d = (_f = this.pdbEntityTrack.displayConfig) === null || _f === void 0 ? void 0 : _f[0].displayData;
631
631
  if (!d)
@@ -662,8 +662,8 @@ class RcsbFvChromosome extends RcsbFvAbstractModule_1.RcsbFvAbstractModule {
662
662
  });
663
663
  }
664
664
  plot() {
665
+ var _c, _d, _e, _f;
665
666
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
666
- var _c, _d, _e, _f;
667
667
  console.log("PROCESSING");
668
668
  let tracks = new Array();
669
669
  let ncbiTracks = new Array();
@@ -6,8 +6,8 @@ const RcsbFvAbstractModule_1 = require("./RcsbFvAbstractModule");
6
6
  const PlainAlignmentTrackFactory_1 = require("../RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/PlainAlignmentTrackFactory");
7
7
  class RcsbFvDataProvider extends RcsbFvAbstractModule_1.RcsbFvAbstractModule {
8
8
  protectedBuild() {
9
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
9
10
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
10
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
11
11
  if ((_b = (_a = this.buildConfig.additionalConfig) === null || _a === void 0 ? void 0 : _a.dataProvider) === null || _b === void 0 ? void 0 : _b.alignments) {
12
12
  this.alignmentCollector = this.buildConfig.additionalConfig.dataProvider.alignments.collector;
13
13
  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);
@@ -14,8 +14,8 @@ class RcsbFvEntity extends RcsbFvAbstractModule_1.RcsbFvAbstractModule {
14
14
  this.unmodeledTrackBuilder = new UnmodeledTrackBuilder_1.UnmodeledTrackBuilder();
15
15
  }
16
16
  protectedBuild() {
17
+ var _a, _b, _c, _d, _e, _f, _g;
17
18
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
18
- var _a, _b, _c, _d, _e, _f, _g;
19
19
  const buildConfig = this.buildConfig;
20
20
  assertDefined(buildConfig.entityId);
21
21
  const alignmentRequestContext = {
@@ -12,8 +12,8 @@ const Operator_1 = require("../../RcsbUtils/Helpers/Operator");
12
12
  const RcsbRequestContextManager_1 = require("../../RcsbRequest/RcsbRequestContextManager");
13
13
  class RcsbFvGroupAlignment extends RcsbFvAbstractModule_1.RcsbFvAbstractModule {
14
14
  protectedBuild() {
15
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
15
16
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
17
17
  const buildConfig = this.buildConfig;
18
18
  assertDefined(buildConfig.groupId), assertDefined(buildConfig.group), assertDefined((_a = buildConfig.additionalConfig) === null || _a === void 0 ? void 0 : _a.page);
19
19
  const alignmentRequestContext = {
@@ -10,8 +10,8 @@ var assertDefined = Assertions_1.Assertions.assertDefined;
10
10
  const annotationConfigMap = acm;
11
11
  class RcsbFvGroupAnnotation extends RcsbFvAbstractModule_1.RcsbFvAbstractModule {
12
12
  protectedBuild() {
13
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
13
14
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
14
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
15
15
  const buildConfig = this.buildConfig;
16
16
  assertDefined(buildConfig.group), assertDefined(buildConfig.groupId), assertDefined((_a = buildConfig.additionalConfig) === null || _a === void 0 ? void 0 : _a.page);
17
17
  const alignmentRequestContext = {
@@ -11,8 +11,8 @@ const Assertions_1 = require("../../RcsbUtils/Helpers/Assertions");
11
11
  var assertDefined = Assertions_1.Assertions.assertDefined;
12
12
  class RcsbFvInstance extends RcsbFvAbstractModule_1.RcsbFvAbstractModule {
13
13
  protectedBuild() {
14
+ var _a, _b, _c, _d;
14
15
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
15
- var _a, _b, _c, _d;
16
16
  const buildConfig = this.buildConfig;
17
17
  const instanceId = buildConfig.instanceId;
18
18
  assertDefined(instanceId);
@@ -1,8 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RcsbFvInterface = void 0;
4
- exports.interfaceAnnotations = interfaceAnnotations;
5
- exports.filter = filter;
3
+ exports.filter = exports.interfaceAnnotations = exports.RcsbFvInterface = void 0;
6
4
  const tslib_1 = require("tslib");
7
5
  const GqlTypes_1 = require("@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes");
8
6
  const RcsbFvAbstractModule_1 = require("./RcsbFvAbstractModule");
@@ -19,8 +17,8 @@ const TagDelimiter_1 = require("@rcsb/rcsb-api-tools/build/RcsbUtils/TagDelimite
19
17
  const annotationConfigMap = acm;
20
18
  class RcsbFvInterface extends RcsbFvAbstractModule_1.RcsbFvAbstractModule {
21
19
  protectedBuild() {
20
+ var _a, _b, _c, _d, _e;
22
21
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
- var _a, _b, _c, _d, _e;
24
22
  const buildConfig = this.buildConfig;
25
23
  const instanceId = buildConfig.instanceId;
26
24
  assertDefined(instanceId);
@@ -65,8 +63,8 @@ class RcsbFvInterface extends RcsbFvAbstractModule_1.RcsbFvAbstractModule {
65
63
  this.alignmentTracks.concat(this.annotationTracks);
66
64
  }
67
65
  typeSuffix(ann, d) {
66
+ var _a;
68
67
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
69
- var _a;
70
68
  if (ann.source === GqlTypes_1.Source.PdbInterface && ((_a = ann.target_identifiers) === null || _a === void 0 ? void 0 : _a.interface_id)) {
71
69
  return ann.target_identifiers.interface_id + "|" + ann.target_identifiers.interface_partner_index;
72
70
  }
@@ -122,8 +120,10 @@ function interfaceAnnotations(annotations) {
122
120
  resolve(out);
123
121
  });
124
122
  }
123
+ exports.interfaceAnnotations = interfaceAnnotations;
125
124
  function filter(ann) {
126
125
  return new Promise(resolve => {
127
126
  resolve((0, BurialFraction_1.burialFractionFilter)((0, BuriedResidues_1.buriedResiduesFilter)(ann)));
128
127
  });
129
128
  }
129
+ exports.filter = filter;
@@ -8,8 +8,8 @@ const Assertions_1 = require("../../RcsbUtils/Helpers/Assertions");
8
8
  var assertDefined = Assertions_1.Assertions.assertDefined;
9
9
  class RcsbFvPairwiseAlignment extends RcsbFvAbstractModule_1.RcsbFvAbstractModule {
10
10
  protectedBuild() {
11
+ var _a;
11
12
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
12
- var _a;
13
13
  const buildConfig = this.buildConfig;
14
14
  assertDefined(buildConfig.psa);
15
15
  const pab = new PairwiseAlignmentBuilder_1.PairwiseAlignmentBuilder(buildConfig.psa);
@@ -8,8 +8,8 @@ const Assertions_1 = require("../../RcsbUtils/Helpers/Assertions");
8
8
  var assertDefined = Assertions_1.Assertions.assertDefined;
9
9
  class RcsbFvProteinSequence extends RcsbFvAbstractModule_1.RcsbFvAbstractModule {
10
10
  protectedBuild() {
11
+ var _a, _b, _c, _d, _e;
11
12
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
12
- var _a, _b, _c, _d, _e;
13
13
  const buildConfig = this.buildConfig;
14
14
  const queryId = buildConfig.queryId;
15
15
  assertDefined(queryId);
@@ -10,8 +10,8 @@ const Assertions_1 = require("../../RcsbUtils/Helpers/Assertions");
10
10
  var assertDefined = Assertions_1.Assertions.assertDefined;
11
11
  class RcsbFvUniprot extends RcsbFvAbstractModule_1.RcsbFvAbstractModule {
12
12
  protectedBuild() {
13
+ var _a, _b, _c, _d;
13
14
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
14
- var _a, _b, _c, _d;
15
15
  const buildConfig = this.buildConfig;
16
16
  const upAcc = buildConfig.upAcc;
17
17
  assertDefined(upAcc);
@@ -10,8 +10,8 @@ const Assertions_1 = require("../../RcsbUtils/Helpers/Assertions");
10
10
  var assertDefined = Assertions_1.Assertions.assertDefined;
11
11
  class RcsbFvUniprotAlignment extends RcsbFvAbstractModule_1.RcsbFvAbstractModule {
12
12
  protectedBuild() {
13
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
13
14
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
14
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
15
15
  const buildConfig = this.buildConfig;
16
16
  assertDefined((_a = buildConfig.additionalConfig) === null || _a === void 0 ? void 0 : _a.page), assertDefined(buildConfig.upAcc);
17
17
  const alignmentRequestContext = {
@@ -14,8 +14,8 @@ class RcsbFvUniprotEntity extends RcsbFvAbstractModule_1.RcsbFvAbstractModule {
14
14
  this.unmodeledTrackBuilder = new UnmodeledTrackBuilder_1.UnmodeledTrackBuilder();
15
15
  }
16
16
  protectedBuild() {
17
+ var _a, _b, _c;
17
18
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
18
- var _a, _b, _c;
19
19
  const buildConfig = this.buildConfig;
20
20
  const upAcc = buildConfig.upAcc;
21
21
  const entityId = buildConfig.entityId;
@@ -65,8 +65,8 @@ class RcsbFvUniprotEntity extends RcsbFvAbstractModule_1.RcsbFvAbstractModule {
65
65
  this.rowConfigData = [this.referenceTrack].concat(this.alignmentTracks).concat(this.annotationTracks);
66
66
  }
67
67
  titleSuffix(ann, d) {
68
+ var _a;
68
69
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
69
- var _a;
70
70
  if (this.polymerEntityInstance != null && ann.source === GqlTypes_1.Source.PdbInstance) {
71
71
  const labelAsymId = (_a = ann.target_id) === null || _a === void 0 ? void 0 : _a.split(TagDelimiter_1.TagDelimiter.instance)[1];
72
72
  if (!labelAsymId)
@@ -9,8 +9,8 @@ const Assertions_1 = require("../../RcsbUtils/Helpers/Assertions");
9
9
  var assertDefined = Assertions_1.Assertions.assertDefined;
10
10
  class RcsbFvUniprotInstance extends RcsbFvAbstractModule_1.RcsbFvAbstractModule {
11
11
  protectedBuild() {
12
+ var _a, _b, _c;
12
13
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
13
- var _a, _b, _c;
14
14
  const buildConfig = this.buildConfig;
15
15
  const upAcc = buildConfig.upAcc;
16
16
  const entityId = buildConfig.entityId;
@@ -1,11 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.searchQueryContextManager = void 0;
4
- exports.buildSearchRequest = buildSearchRequest;
5
- exports.buildGroup = buildGroup;
6
- exports.buildGroupMembers = buildGroupMembers;
7
- exports.buildGroupContent = buildGroupContent;
8
- exports.buildResidueDistribution = buildResidueDistribution;
3
+ exports.searchQueryContextManager = exports.buildResidueDistribution = exports.buildGroupContent = exports.buildGroupMembers = exports.buildGroup = exports.buildSearchRequest = void 0;
9
4
  const tslib_1 = require("tslib");
10
5
  const RcsbGroupDisplay_1 = require("./RcsbGroupView/RcsbGroupDisplay");
11
6
  const EntityGranularitySearchFacetStore_1 = require("../RcsbSeacrh/FacetStore/EntityGranularitySearchFacetStore");
@@ -15,20 +10,25 @@ function buildSearchRequest(elementId, searchQuery, returnType) {
15
10
  yield RcsbGroupDisplay_1.RcsbGroupDisplay.displayRcsbSearchStats(elementId, EntityGranularitySearchFacetStore_1.entityGranularityGroupFacetStore, searchQuery, returnType);
16
11
  });
17
12
  }
13
+ exports.buildSearchRequest = buildSearchRequest;
18
14
  function buildGroup(elementId, groupProvenance, groupId, query, facetLayoutGrid, additionalProperties) {
19
15
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
20
16
  yield RcsbGroupDisplay_1.RcsbGroupDisplay.displaySearchAttributes(elementId, groupProvenance, groupId, query, facetLayoutGrid, additionalProperties);
21
17
  });
22
18
  }
19
+ exports.buildGroup = buildGroup;
23
20
  function buildGroupMembers(elementId, groupProvenance, groupId, nRows, nColumns, query) {
24
21
  RcsbGroupDisplay_1.RcsbGroupDisplay.displayGroupMembers(elementId, groupProvenance, groupId, nRows, nColumns, query);
25
22
  }
23
+ exports.buildGroupMembers = buildGroupMembers;
26
24
  function buildGroupContent(elementId, groupProvenance, groupId, query, textConfig) {
27
25
  RcsbGroupDisplay_1.RcsbGroupDisplay.displayGroupContent(elementId, groupProvenance, groupId, query, textConfig);
28
26
  }
27
+ exports.buildGroupContent = buildGroupContent;
29
28
  function buildResidueDistribution(elementId, granularity, rcsbId, facetLayoutGrid, chartDisplayConfig) {
30
29
  RcsbGroupDisplay_1.RcsbGroupDisplay.displayResidueDistribution(elementId, granularity, rcsbId, facetLayoutGrid, chartDisplayConfig);
31
30
  }
31
+ exports.buildResidueDistribution = buildResidueDistribution;
32
32
  exports.searchQueryContextManager = {
33
33
  subscribe(f) {
34
34
  return SearchQueryContextManager_1.SearchQueryContextManager.subscribe(f);
@@ -11,8 +11,8 @@ const RcsbRequestContextManager_1 = require("../../../RcsbRequest/RcsbRequestCon
11
11
  var GroupChartMap;
12
12
  (function (GroupChartMap) {
13
13
  function getChartMap(groupProvenanceId, groupId, searchQuery) {
14
+ var _a;
14
15
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
15
- var _a;
16
16
  const facetStore = SearchQueryTools_1.SearchQueryTools.getFacetStoreFromGroupProvenance(groupProvenanceId);
17
17
  let facets = [];
18
18
  for (const service of facetStore.getServices()) {
@@ -48,8 +48,8 @@ var GroupChartMap;
48
48
  }
49
49
  GroupChartMap.getChartMap = getChartMap;
50
50
  function subtractSearchQuery(chartData, groupProvenanceId, groupId, searchQuery) {
51
+ var _a, _b;
51
52
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
52
- var _a, _b;
53
53
  const facetStore = SearchQueryTools_1.SearchQueryTools.getFacetStoreFromGroupProvenance(groupProvenanceId);
54
54
  let subData;
55
55
  let partialFacets = [];
@@ -26,8 +26,8 @@ class RcsbGroupChartComponent extends react_1.default.Component {
26
26
  }
27
27
  }
28
28
  updateState() {
29
+ var _a, _b, _c;
29
30
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
30
- var _a, _b, _c;
31
31
  const layout = (_a = this.props.facetLayoutGrid) !== null && _a !== void 0 ? _a : SearchQueryTools_1.SearchQueryTools.getFacetStoreFromGroupProvenance(this.props.groupProvenanceId).facetLayoutGrid;
32
32
  const chartMap = yield GroupChartTools_1.GroupChartMap.getChartMap(this.props.groupProvenanceId, this.props.groupId, this.props.searchQuery);
33
33
  if ((_b = this.props.additionalProperties) === null || _b === void 0 ? void 0 : _b.layoutConfig)
@@ -21,8 +21,8 @@ class RcsbGroupContentComponent extends react_1.default.Component {
21
21
  };
22
22
  }
23
23
  componentDidMount() {
24
+ var _a, _b;
24
25
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
25
- var _a, _b;
26
26
  this.subscribe();
27
27
  const fullGroupMembers = (_a = (yield (0, RcsbGroupMembersComponent_1.searchRequest)(this.props.groupProvenanceId, this.props.groupId))) === null || _a === void 0 ? void 0 : _a.total_count;
28
28
  const subGroupMembers = (_b = (yield (0, RcsbGroupMembersComponent_1.searchRequest)(this.props.groupProvenanceId, this.props.groupId, this.props.searchQuery))) === null || _b === void 0 ? void 0 : _b.total_count;
@@ -47,8 +47,8 @@ class RcsbGroupContentComponent extends react_1.default.Component {
47
47
  return ((_a = this.props.displayNumber) !== null && _a !== void 0 ? _a : Operator_1.Operator.digitGrouping)(x);
48
48
  }
49
49
  updateGroupContent(o) {
50
+ var _a;
50
51
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
51
- var _a;
52
52
  const subGroupMembers = (_a = (yield (0, RcsbGroupMembersComponent_1.searchRequest)(this.props.groupProvenanceId, this.props.groupId, o.searchQuery))) === null || _a === void 0 ? void 0 : _a.total_count;
53
53
  if (subGroupMembers)
54
54
  this.setState({ subGroupMembers, searchQuery: o.searchQuery });
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Slider = void 0;
4
- exports.actionIcon = actionIcon;
3
+ exports.actionIcon = exports.Slider = void 0;
5
4
  const tslib_1 = require("tslib");
6
5
  const jsx_runtime_1 = require("react/jsx-runtime");
7
6
  const react_1 = tslib_1.__importDefault(require("react"));
@@ -23,3 +22,4 @@ exports.Slider = Slider;
23
22
  function actionIcon(action) {
24
23
  return ((0, jsx_runtime_1.jsx)("span", { style: { cursor: "pointer" }, className: "h1 user-select-none", children: action == "prev" ? "❮" : "❯" }));
25
24
  }
25
+ exports.actionIcon = actionIcon;
@@ -75,8 +75,8 @@ class GroupMembersGrid extends react_1.default.Component {
75
75
  }
76
76
  exports.GroupMembersGrid = GroupMembersGrid;
77
77
  function searchRequest(groupProvenanceId, groupId, start, rows, searchQuery) {
78
+ var _a, _b, _c, _d, _e, _f, _g, _h;
78
79
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
79
- var _a, _b, _c, _d, _e, _f, _g, _h;
80
80
  return yield RcsbRequestContextManager_1.rcsbRequestCtxManager.getSearchQuery({
81
81
  query: (searchQuery === null || searchQuery === void 0 ? void 0 : searchQuery.query) ? SearchQueryTools_1.SearchQueryTools.addGroupNodeToSearchQuery(groupProvenanceId, groupId, searchQuery.query) : SearchQueryTools_1.SearchQueryTools.searchGroupQuery(groupProvenanceId, groupId),
82
82
  request_options: {
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RcsbGroupMembersComponent = void 0;
4
- exports.searchRequest = searchRequest;
3
+ exports.searchRequest = exports.RcsbGroupMembersComponent = void 0;
5
4
  const tslib_1 = require("tslib");
6
5
  const jsx_runtime_1 = require("react/jsx-runtime");
7
6
  const react_1 = tslib_1.__importDefault(require("react"));
@@ -91,6 +90,7 @@ function searchRequest(groupProvenanceId, groupId, searchQuery) {
91
90
  });
92
91
  });
93
92
  }
93
+ exports.searchRequest = searchRequest;
94
94
  function mod(n, p) {
95
95
  const r = n % p;
96
96
  return r < 0 ? p + r : r;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GroupProvenanceId } from "@rcsb/rcsb-api-tools/build/RcsbDw/Types/DwEnums";
2
3
  import { SearchQuery } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchQueryInterface";
3
4
  export declare class SearchQueryComponentFactory {
@@ -45,8 +45,8 @@ var ResidueChartTools;
45
45
  });
46
46
  }
47
47
  function getInstanceCharts(instanceId) {
48
+ var _a, _b;
48
49
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
49
- var _a, _b;
50
50
  const alignmentRequestContext = {
51
51
  queryId: instanceId,
52
52
  from: GqlTypes_1.SequenceReference.PdbInstance,
@@ -110,8 +110,8 @@ class RcsbRequestContextManager {
110
110
  });
111
111
  }
112
112
  getInterfaceToInstance(interfaceId) {
113
+ var _a, _b;
113
114
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
114
- var _a, _b;
115
115
  const key = interfaceId;
116
116
  const assemblyId = interfaceId.split(TagDelimiter_1.TagDelimiter.instance)[0];
117
117
  if (this.interfaceToInstanceMap.get(key)) {
@@ -21,32 +21,32 @@ export declare class FacetTools {
21
21
  static addChartDisplayConfig(chart: RcsbChartInterface, chartDisplayConfig: Partial<ChartDisplayConfigInterface>): {
22
22
  chartConfig: {
23
23
  chartDisplayConfig: Partial<ChartDisplayConfigInterface>;
24
- mostPopulatedGroups?: number;
25
- domainMinValue?: number;
26
- domainMaxValue?: number;
27
- domainEmptyBins?: boolean;
28
- histogramBinIncrement?: number;
24
+ mostPopulatedGroups?: number | undefined;
25
+ domainMinValue?: number | undefined;
26
+ domainMaxValue?: number | undefined;
27
+ domainEmptyBins?: boolean | undefined;
28
+ histogramBinIncrement?: number | undefined;
29
29
  tickIncrement?: {
30
30
  origin: number;
31
31
  increment: number;
32
- };
32
+ } | undefined;
33
33
  tickFormat?: {
34
- domAxis?: (x: string | number) => string;
35
- imgAxis?: (x: string | number) => string;
36
- };
37
- axisLabel?: string;
38
- barClickCallback?: import("@rcsb/rcsb-charts/lib/RcsbChartComponent/ChartConfigInterface").BarClickCallbackType;
39
- sort?: (b: import("@rcsb/rcsb-charts/lib/RcsbChartDataProvider/ChartDataProviderInterface").ChartDataColumnInterface, a: import("@rcsb/rcsb-charts/lib/RcsbChartDataProvider/ChartDataProviderInterface").ChartDataColumnInterface) => number;
40
- tooltipText?: (a: import("@rcsb/rcsb-charts/lib/RcsbChartDataProvider/ChartDataProviderInterface").ChartDataValueInterface) => string | string[] | undefined;
34
+ domAxis?: ((x: string | number) => string) | undefined;
35
+ imgAxis?: ((x: string | number) => string) | undefined;
36
+ } | undefined;
37
+ axisLabel?: string | undefined;
38
+ barClickCallback?: import("@rcsb/rcsb-charts/lib/RcsbChartComponent/ChartConfigInterface").BarClickCallbackType | undefined;
39
+ sort?: ((b: import("@rcsb/rcsb-charts/lib/RcsbChartDataProvider/ChartDataProviderInterface").ChartDataColumnInterface<any>, a: import("@rcsb/rcsb-charts/lib/RcsbChartDataProvider/ChartDataProviderInterface").ChartDataColumnInterface<any>) => number) | undefined;
40
+ tooltipText?: ((a: import("@rcsb/rcsb-charts/lib/RcsbChartDataProvider/ChartDataProviderInterface").ChartDataValueInterface<any>) => string | string[] | undefined) | undefined;
41
41
  };
42
42
  data: ChartObjectInterface<any>[];
43
- filters?: SearchFilter[];
43
+ filters?: SearchFilter[] | undefined;
44
44
  title?: string | undefined;
45
45
  attribute: RcsbSearchAttributeType;
46
46
  attributeName: string;
47
47
  chartType: import("@rcsb/rcsb-charts/lib/RcsbChartComponent/ChartConfigInterface").ChartType;
48
48
  facetConfig?: import("./FacetStore/FacetMemberInterface").FacetConfigInterface | undefined;
49
- contentType: "date" | "number" | "string";
49
+ contentType: "string" | "number" | "date";
50
50
  };
51
51
  private static includeMissingFacets;
52
52
  private static getFacetChartTypeFromAttribute;
@@ -38,8 +38,8 @@ class SearchRequestProperty {
38
38
  }
39
39
  //TODO this should be part of `SearchQueryTools`
40
40
  requestMembers(query) {
41
+ var _a, _b, _c;
41
42
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
42
- var _a, _b, _c;
43
43
  return (_c = (_b = (_a = (yield this.getClient().request({
44
44
  query: query.query,
45
45
  request_options: {
@@ -52,8 +52,8 @@ class SearchRequestProperty {
52
52
  }
53
53
  //TODO this should be part of `SearchQueryTools`
54
54
  requestCount(query) {
55
+ var _a, _b;
55
56
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
56
- var _a, _b;
57
57
  return (_b = (_a = (yield this.getClient().request({
58
58
  query: query.query,
59
59
  request_options: {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.alignmentGlobalLigandBindingSite = alignmentGlobalLigandBindingSite;
3
+ exports.alignmentGlobalLigandBindingSite = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const RcsbAnnotationConstants_1 = require("../../RcsbAnnotationConfig/RcsbAnnotationConstants");
6
6
  const GroupExternalTrackBuilder_1 = require("./GroupExternalTrackBuilder");
@@ -13,8 +13,8 @@ function alignmentGlobalLigandBindingSite() {
13
13
  const groupTrackBuilder = (0, GroupExternalTrackBuilder_1.groupExternalTrackBuilder)();
14
14
  return {
15
15
  addTo(tracks) {
16
+ var _a;
16
17
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
17
- var _a;
18
18
  if (Array.from(bindingSiteMap.values()).length > 0)
19
19
  tracks.annotationTracks.unshift({
20
20
  trackId: "annotationTrack_GLOBAL_BINDINGS",
@@ -33,15 +33,15 @@ function alignmentGlobalLigandBindingSite() {
33
33
  });
34
34
  },
35
35
  processAlignmentAndFeatures(data) {
36
+ var _a;
36
37
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
37
- var _a;
38
38
  yield ((_a = groupTrackBuilder.processAlignmentAndFeatures) === null || _a === void 0 ? void 0 : _a.call(groupTrackBuilder, data));
39
39
  processFeatures(data.annotations);
40
40
  });
41
41
  },
42
42
  filterFeatures(data) {
43
+ var _a, _b;
43
44
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
44
- var _a, _b;
45
45
  const annotations = (_b = yield ((_a = groupTrackBuilder.filterFeatures) === null || _a === void 0 ? void 0 : _a.call(groupTrackBuilder, data))) !== null && _b !== void 0 ? _b : [];
46
46
  annotations.forEach(ann => {
47
47
  var _a;
@@ -100,3 +100,4 @@ function alignmentGlobalLigandBindingSite() {
100
100
  });
101
101
  }
102
102
  }
103
+ exports.alignmentGlobalLigandBindingSite = alignmentGlobalLigandBindingSite;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.burialFraction = burialFraction;
4
- exports.burialFractionFilter = burialFractionFilter;
3
+ exports.burialFractionFilter = exports.burialFraction = void 0;
5
4
  const GqlTypes_1 = require("@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes");
6
5
  const lodash_1 = require("lodash");
7
6
  const FeatureType_1 = require("../../RcsbExport/FeatureType");
@@ -57,6 +56,7 @@ function burialFraction(annotations) {
57
56
  });
58
57
  return burialFractionOut;
59
58
  }
59
+ exports.burialFraction = burialFraction;
60
60
  function burialFractionFilter(annotations) {
61
61
  return (0, lodash_1.cloneDeep)(annotations).map(ann => {
62
62
  var _a;
@@ -64,3 +64,4 @@ function burialFractionFilter(annotations) {
64
64
  return ann;
65
65
  }).filter(ann => { var _a, _b; return (((_b = (_a = ann.features) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 0); });
66
66
  }
67
+ exports.burialFractionFilter = burialFractionFilter;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buriedResidues = buriedResidues;
4
- exports.buriedResiduesFilter = buriedResiduesFilter;
3
+ exports.buriedResiduesFilter = exports.buriedResidues = void 0;
5
4
  const GqlTypes_1 = require("@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes");
6
5
  const lodash_1 = require("lodash");
7
6
  const FeatureType_1 = require("../../RcsbExport/FeatureType");
@@ -42,6 +41,7 @@ function buriedResidues(annotations) {
42
41
  }
43
42
  return nBuried > 0 && buriedResidues ? [buriedResidues] : [];
44
43
  }
44
+ exports.buriedResidues = buriedResidues;
45
45
  function buriedResiduesFilter(annotations) {
46
46
  return (0, lodash_1.cloneDeep)(annotations).map(ann => {
47
47
  var _a;
@@ -49,3 +49,4 @@ function buriedResiduesFilter(annotations) {
49
49
  return ann;
50
50
  }).filter(ann => { var _a, _b; return (((_b = (_a = ann.features) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 0); });
51
51
  }
52
+ exports.buriedResiduesFilter = buriedResiduesFilter;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.groupExternalTrackBuilder = groupExternalTrackBuilder;
3
+ exports.groupExternalTrackBuilder = void 0;
4
4
  const Logo_1 = require("./Logo");
5
5
  const RcsbAnnotationConstants_1 = require("../../RcsbAnnotationConfig/RcsbAnnotationConstants");
6
6
  const Assertions_1 = require("../Helpers/Assertions");
@@ -97,3 +97,4 @@ function groupExternalTrackBuilder() {
97
97
  }];
98
98
  }
99
99
  }
100
+ exports.groupExternalTrackBuilder = groupExternalTrackBuilder;