@rcsb/rcsb-saguaro-app 6.2.3 → 6.2.4

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 (114) 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.ac.json +2 -1
  7. package/lib/RcsbAnnotationConfig/RcsbAnnotationConfig.js +1 -1
  8. package/lib/RcsbChartWeb/HistogramChartComponent.d.ts +0 -1
  9. package/lib/RcsbCollectTools/AlignmentCollector/AlignmentCollector.js +1 -1
  10. package/lib/RcsbCollectTools/AnnotationCollector/AnnotationCollector.js +1 -1
  11. package/lib/RcsbCollectTools/FeatureTools/FeatureTools.js +2 -2
  12. package/lib/RcsbFvExamples/ExternalDataProvider.js +1 -1
  13. package/lib/RcsbFvUI/Components/FilterItemComponent.d.ts +0 -1
  14. package/lib/RcsbFvUI/Components/PaginationItemComponent.d.ts +0 -1
  15. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvCoreBuilder.js +1 -1
  16. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvGroupAlignmentBuilder.js +1 -1
  17. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.d.ts +0 -1
  18. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.js +3 -3
  19. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvProteinSequenceBuilder.js +1 -1
  20. package/lib/RcsbFvWeb/RcsbFvBuilder/RcsbFvUniprotBuilder.js +2 -2
  21. package/lib/RcsbFvWeb/RcsbFvComponents/ComponentsManager.d.ts +0 -1
  22. package/lib/RcsbFvWeb/RcsbFvComponents/MountableComponent.js +5 -3
  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 +0 -1
  49. package/lib/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartTools/ResidueChartTools.js +1 -1
  50. package/lib/RcsbRequest/RcsbRequestContextManager.js +1 -1
  51. package/lib/RcsbSeacrh/FacetStore/SingleFacets.js +49 -17
  52. package/lib/RcsbSeacrh/FacetTools.d.ts +15 -15
  53. package/lib/RcsbSeacrh/SearchRequestProperty.js +2 -2
  54. package/lib/RcsbUtils/TrackGenerators/AlignmentGlobalBindingSite.js +3 -3
  55. package/lib/RcsbUtils/TrackGenerators/UnmodeledTrackBuilder.js +4 -4
  56. package/lib/commonjs/RcsbAnnotationConfig/RcsbAnnotationConfig.ac.json +2 -1
  57. package/lib/commonjs/RcsbAnnotationConfig/RcsbAnnotationConfig.js +1 -1
  58. package/lib/commonjs/RcsbChartWeb/HistogramChartComponent.d.ts +0 -1
  59. package/lib/commonjs/RcsbCollectTools/AlignmentCollector/AlignmentCollector.js +1 -1
  60. package/lib/commonjs/RcsbCollectTools/AnnotationCollector/AnnotationCollector.js +1 -1
  61. package/lib/commonjs/RcsbCollectTools/FeatureTools/FeatureTools.js +2 -2
  62. package/lib/commonjs/RcsbFvExamples/ExternalDataProvider.js +1 -1
  63. package/lib/commonjs/RcsbFvExamples/utils/events.js +2 -3
  64. package/lib/commonjs/RcsbFvUI/Components/FilterItemComponent.d.ts +0 -1
  65. package/lib/commonjs/RcsbFvUI/Components/PaginationItemComponent.d.ts +0 -1
  66. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvCoreBuilder.js +1 -1
  67. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvGroupAlignmentBuilder.js +1 -1
  68. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.d.ts +0 -1
  69. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.js +3 -3
  70. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvProteinSequenceBuilder.js +1 -1
  71. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder/RcsbFvUniprotBuilder.js +2 -2
  72. package/lib/commonjs/RcsbFvWeb/RcsbFvBuilder.js +22 -23
  73. package/lib/commonjs/RcsbFvWeb/RcsbFvComponents/ComponentsManager.d.ts +0 -1
  74. package/lib/commonjs/RcsbFvWeb/RcsbFvComponents/MountableComponent.js +5 -3
  75. package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/AlignmentBlockFactory.js +4 -4
  76. package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/AnnotationBlockManager.js +2 -2
  77. package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/SequenceTrackFactory.js +1 -1
  78. package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/AnnotationsTrackTitleFactory.js +2 -2
  79. package/lib/commonjs/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/SequenceTrackTitleFactory.js +3 -3
  80. package/lib/commonjs/RcsbFvWeb/RcsbFvGroup/GroupPfvTabs.js +1 -1
  81. package/lib/commonjs/RcsbFvWeb/RcsbFvGroup/GroupTabs/GroupPfvApp.js +5 -5
  82. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvAbstractModule.js +3 -3
  83. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvChromosome.js +3 -3
  84. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvDataProvider.js +1 -1
  85. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvEntity.js +1 -1
  86. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAlignment.js +1 -1
  87. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAnnotation.js +1 -1
  88. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvInstance.js +1 -1
  89. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvInterface.js +5 -5
  90. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvPairwiseAlignment.js +1 -1
  91. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvProteinSequence.js +1 -1
  92. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprot.js +1 -1
  93. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotAlignment.js +1 -1
  94. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotEntity.js +2 -2
  95. package/lib/commonjs/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotInstance.js +1 -1
  96. package/lib/commonjs/RcsbGroupWeb/RcsbGroupBuilder.js +6 -6
  97. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/GroupChartTools.js +2 -2
  98. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/RcsbGroupChartComponent.js +1 -1
  99. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupContent/RcsbGroupContentComponent.js +2 -2
  100. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/Components/Slider.js +2 -2
  101. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/GroupMembersGrid.js +1 -1
  102. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/RcsbGroupMembersComponent.js +2 -2
  103. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbGroupSeacrhQuery/RcsbGroupSeacrhQueryComponent.d.ts +0 -1
  104. package/lib/commonjs/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartTools/ResidueChartTools.js +1 -1
  105. package/lib/commonjs/RcsbRequest/RcsbRequestContextManager.js +1 -1
  106. package/lib/commonjs/RcsbSeacrh/FacetStore/SingleFacets.js +49 -17
  107. package/lib/commonjs/RcsbSeacrh/FacetTools.d.ts +15 -15
  108. package/lib/commonjs/RcsbSeacrh/SearchRequestProperty.js +2 -2
  109. package/lib/commonjs/RcsbUtils/TrackGenerators/AlignmentGlobalBindingSite.js +4 -5
  110. package/lib/commonjs/RcsbUtils/TrackGenerators/BurialFraction.js +2 -3
  111. package/lib/commonjs/RcsbUtils/TrackGenerators/BuriedResidues.js +2 -3
  112. package/lib/commonjs/RcsbUtils/TrackGenerators/GroupExternalTrackBuilder.js +1 -2
  113. package/lib/commonjs/RcsbUtils/TrackGenerators/UnmodeledTrackBuilder.js +6 -6
  114. package/package.json +1 -1
@@ -15,8 +15,8 @@ class SequenceTrackTitleFactory {
15
15
  this.entityInstanceTranslator = entityInstanceTranslator;
16
16
  }
17
17
  getTrackTitle(alignmentQueryContext) {
18
- var _a, _b, _c;
19
18
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
19
+ var _a, _b, _c;
20
20
  let rowTitle;
21
21
  if (!alignmentQueryContext.excludeFirstRowLink && alignmentQueryContext.from === GqlTypes_1.SequenceReference.Uniprot) {
22
22
  rowTitle = {
@@ -48,14 +48,14 @@ class SequenceTrackTitleFactory {
48
48
  });
49
49
  }
50
50
  getTrackTitlePrefix(alignmentQueryContext) {
51
- var _a;
52
51
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
52
+ var _a;
53
53
  return (alignmentQueryContext.from && !alignmentQueryContext.from.includes("PDB")) ? alignmentQueryContext.from.replace("_", " ") + " " + TagDelimiter_1.TagDelimiter.sequenceTitle : ((_a = alignmentQueryContext.sequencePrefix) !== null && _a !== void 0 ? _a : "");
54
54
  });
55
55
  }
56
56
  getTrackTitleFlagColor(alignmentQueryContext) {
57
- var _a;
58
57
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
58
+ var _a;
59
59
  const queryId = (_a = alignmentQueryContext.queryId) !== null && _a !== void 0 ? _a : alignmentQueryContext.groupId;
60
60
  assertDefined(queryId), assertDefined(alignmentQueryContext.from);
61
61
  return TrackUtils_1.TrackUtils.getProvenanceConfigFormTarget(queryId, alignmentQueryContext.from).color;
@@ -79,8 +79,8 @@ class GroupPfvTabs extends react_1.default.Component {
79
79
  });
80
80
  }
81
81
  renderPositionalFeatureViewer(tabKey) {
82
- var _a, _b, _c, _d, _e;
83
82
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
83
+ var _a, _b, _c, _d, _e;
84
84
  switch (tabKey) {
85
85
  case ALIGNMENT:
86
86
  this.featureViewers.set(tabKey, yield GroupPfvApp_1.GroupPfvApp.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 })));
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getReferenceFromGroupProvenance = exports.GroupPfvApp = void 0;
3
+ exports.GroupPfvApp = void 0;
4
+ exports.getReferenceFromGroupProvenance = getReferenceFromGroupProvenance;
4
5
  const tslib_1 = require("tslib");
5
6
  const DwEnums_1 = require("@rcsb/rcsb-api-tools/build/RcsbDw/Types/DwEnums");
6
7
  const RcsbFvUniprotBuilder_1 = require("../../RcsbFvBuilder/RcsbFvUniprotBuilder");
@@ -15,8 +16,8 @@ const PaginationItemComponent_1 = require("../../../RcsbFvUI/Components/Paginati
15
16
  var GroupPfvApp;
16
17
  (function (GroupPfvApp) {
17
18
  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;
20
21
  switch (groupProvenanceId) {
21
22
  case DwEnums_1.GroupProvenanceId.ProvenanceMatchingUniprotAccession:
22
23
  return RcsbFvUniprotBuilder_1.RcsbFvUniprotBuilder.buildUniprotMultipleEntitySequenceFv(elementId, elementId + RcsbTabs_1.RcsbTabs.SELECT_SUFFIX, groupId, {}, additionalConfig);
@@ -52,8 +53,8 @@ var GroupPfvApp;
52
53
  }
53
54
  GroupPfvApp.alignment = alignment;
54
55
  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;
57
58
  additionalConfig = Object.assign(Object.assign({}, additionalConfig), { filters: [...((_a = additionalConfig === null || additionalConfig === void 0 ? void 0 : additionalConfig.filters) !== null && _a !== void 0 ? _a : []), {
58
59
  field: GqlTypes_1.FieldName.Type,
59
60
  values: [GqlTypes_1.Type.HelixP, GqlTypes_1.Type.Sheet, GqlTypes_1.Type.Cath, GqlTypes_1.Type.Scop],
@@ -77,8 +78,8 @@ var GroupPfvApp;
77
78
  }
78
79
  GroupPfvApp.structure = structure;
79
80
  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;
82
83
  additionalConfig = Object.assign(Object.assign({}, additionalConfig), { filters: [...((_a = additionalConfig === null || additionalConfig === void 0 ? void 0 : additionalConfig.filters) !== null && _a !== void 0 ? _a : []), {
83
84
  field: GqlTypes_1.FieldName.Type,
84
85
  values: [GqlTypes_1.Type.BindingSite],
@@ -132,4 +133,3 @@ function getReferenceFromGroupProvenance(groupProvenanceId) {
132
133
  return GqlTypes_1.GroupReference.MatchingUniprotAccession;
133
134
  }
134
135
  }
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;
98
97
  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;
108
107
  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;
126
125
  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;
146
145
  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;
628
627
  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;
666
665
  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;
10
9
  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;
18
17
  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;
16
15
  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;
14
13
  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;
15
14
  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,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.filter = exports.interfaceAnnotations = exports.RcsbFvInterface = void 0;
3
+ exports.RcsbFvInterface = void 0;
4
+ exports.interfaceAnnotations = interfaceAnnotations;
5
+ exports.filter = filter;
4
6
  const tslib_1 = require("tslib");
5
7
  const GqlTypes_1 = require("@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes");
6
8
  const RcsbFvAbstractModule_1 = require("./RcsbFvAbstractModule");
@@ -17,8 +19,8 @@ const TagDelimiter_1 = require("@rcsb/rcsb-api-tools/build/RcsbUtils/TagDelimite
17
19
  const annotationConfigMap = acm;
18
20
  class RcsbFvInterface extends RcsbFvAbstractModule_1.RcsbFvAbstractModule {
19
21
  protectedBuild() {
20
- var _a, _b, _c, _d, _e;
21
22
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
23
+ var _a, _b, _c, _d, _e;
22
24
  const buildConfig = this.buildConfig;
23
25
  const instanceId = buildConfig.instanceId;
24
26
  assertDefined(instanceId);
@@ -63,8 +65,8 @@ class RcsbFvInterface extends RcsbFvAbstractModule_1.RcsbFvAbstractModule {
63
65
  this.alignmentTracks.concat(this.annotationTracks);
64
66
  }
65
67
  typeSuffix(ann, d) {
66
- var _a;
67
68
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
69
+ var _a;
68
70
  if (ann.source === GqlTypes_1.Source.PdbInterface && ((_a = ann.target_identifiers) === null || _a === void 0 ? void 0 : _a.interface_id)) {
69
71
  return ann.target_identifiers.interface_id + "|" + ann.target_identifiers.interface_partner_index;
70
72
  }
@@ -120,10 +122,8 @@ function interfaceAnnotations(annotations) {
120
122
  resolve(out);
121
123
  });
122
124
  }
123
- exports.interfaceAnnotations = interfaceAnnotations;
124
125
  function filter(ann) {
125
126
  return new Promise(resolve => {
126
127
  resolve((0, BurialFraction_1.burialFractionFilter)((0, BuriedResidues_1.buriedResiduesFilter)(ann)));
127
128
  });
128
129
  }
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;
12
11
  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;
12
11
  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;
14
13
  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;
14
13
  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;
18
17
  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;
69
68
  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;
13
12
  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,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.searchQueryContextManager = exports.buildResidueDistribution = exports.buildGroupContent = exports.buildGroupMembers = exports.buildGroup = exports.buildSearchRequest = void 0;
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;
4
9
  const tslib_1 = require("tslib");
5
10
  const RcsbGroupDisplay_1 = require("./RcsbGroupView/RcsbGroupDisplay");
6
11
  const EntityGranularitySearchFacetStore_1 = require("../RcsbSeacrh/FacetStore/EntityGranularitySearchFacetStore");
@@ -10,25 +15,20 @@ function buildSearchRequest(elementId, searchQuery, returnType) {
10
15
  yield RcsbGroupDisplay_1.RcsbGroupDisplay.displayRcsbSearchStats(elementId, EntityGranularitySearchFacetStore_1.entityGranularityGroupFacetStore, searchQuery, returnType);
11
16
  });
12
17
  }
13
- exports.buildSearchRequest = buildSearchRequest;
14
18
  function buildGroup(elementId, groupProvenance, groupId, query, facetLayoutGrid, additionalProperties) {
15
19
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
16
20
  yield RcsbGroupDisplay_1.RcsbGroupDisplay.displaySearchAttributes(elementId, groupProvenance, groupId, query, facetLayoutGrid, additionalProperties);
17
21
  });
18
22
  }
19
- exports.buildGroup = buildGroup;
20
23
  function buildGroupMembers(elementId, groupProvenance, groupId, nRows, nColumns, query) {
21
24
  RcsbGroupDisplay_1.RcsbGroupDisplay.displayGroupMembers(elementId, groupProvenance, groupId, nRows, nColumns, query);
22
25
  }
23
- exports.buildGroupMembers = buildGroupMembers;
24
26
  function buildGroupContent(elementId, groupProvenance, groupId, query, textConfig) {
25
27
  RcsbGroupDisplay_1.RcsbGroupDisplay.displayGroupContent(elementId, groupProvenance, groupId, query, textConfig);
26
28
  }
27
- exports.buildGroupContent = buildGroupContent;
28
29
  function buildResidueDistribution(elementId, granularity, rcsbId, facetLayoutGrid, chartDisplayConfig) {
29
30
  RcsbGroupDisplay_1.RcsbGroupDisplay.displayResidueDistribution(elementId, granularity, rcsbId, facetLayoutGrid, chartDisplayConfig);
30
31
  }
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;
15
14
  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;
52
51
  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;
30
29
  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;
25
24
  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;
51
50
  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,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.actionIcon = exports.Slider = void 0;
3
+ exports.Slider = void 0;
4
+ exports.actionIcon = actionIcon;
4
5
  const tslib_1 = require("tslib");
5
6
  const jsx_runtime_1 = require("react/jsx-runtime");
6
7
  const react_1 = tslib_1.__importDefault(require("react"));
@@ -22,4 +23,3 @@ exports.Slider = Slider;
22
23
  function actionIcon(action) {
23
24
  return ((0, jsx_runtime_1.jsx)("span", { style: { cursor: "pointer" }, className: "h1 user-select-none", children: action == "prev" ? "❮" : "❯" }));
24
25
  }
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;
79
78
  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,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.searchRequest = exports.RcsbGroupMembersComponent = void 0;
3
+ exports.RcsbGroupMembersComponent = void 0;
4
+ exports.searchRequest = searchRequest;
4
5
  const tslib_1 = require("tslib");
5
6
  const jsx_runtime_1 = require("react/jsx-runtime");
6
7
  const react_1 = tslib_1.__importDefault(require("react"));
@@ -90,7 +91,6 @@ function searchRequest(groupProvenanceId, groupId, searchQuery) {
90
91
  });
91
92
  });
92
93
  }
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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GroupProvenanceId } from "@rcsb/rcsb-api-tools/build/RcsbDw/Types/DwEnums";
3
2
  import { SearchQuery } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchQueryInterface";
4
3
  export declare class SearchQueryComponentFactory {
@@ -45,8 +45,8 @@ var ResidueChartTools;
45
45
  });
46
46
  }
47
47
  function getInstanceCharts(instanceId) {
48
- var _a, _b;
49
48
  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;
114
113
  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)) {
@@ -85,24 +85,56 @@ exports.TAXONOMY_COUNT_FACET = {
85
85
  title: "Number of Source Taxonomies",
86
86
  attributeName: "TAXONOMY_COUNT_FACET",
87
87
  attribute: SearchMetadata_1.RcsbSearchMetadata.RcsbPolymerEntity.RcsbSourceTaxonomyCount.path,
88
- chartType: ChartConfigInterface_1.ChartType.histogram,
89
- contentType: "number",
90
- chartConfig: {
91
- histogramBinIncrement: 0,
92
- tickFormat: {
93
- domAxis: (t) => {
94
- if (t.toString().includes('.'))
95
- return '';
96
- return t.toString();
97
- }
98
- },
99
- chartDisplayConfig: {
100
- constHeight: 225
88
+ chartType: ChartConfigInterface_1.ChartType.barplot,
89
+ contentType: "string",
90
+ facetConfig: {
91
+ facetTransform: (bucket) => {
92
+ const out = [];
93
+ const wt = bucket.find(b => parseInt(b.label.toString()) == 1);
94
+ if (wt)
95
+ out.push({
96
+ label: "Single",
97
+ labelPath: ["Single"],
98
+ population: wt.population
99
+ });
100
+ const synthetic = bucket.find(b => parseInt(b.label.toString()) == 0);
101
+ if (synthetic)
102
+ out.push({
103
+ label: "None",
104
+ labelPath: ["None"],
105
+ population: synthetic.population
106
+ });
107
+ const chimeric = bucket.filter(b => parseInt(b.label.toString()) > 1);
108
+ if ((chimeric === null || chimeric === void 0 ? void 0 : chimeric.length) > 0)
109
+ out.push({
110
+ label: "Multiple",
111
+ labelPath: ["Multiple"],
112
+ population: chimeric.reduce((c, p) => c + p.population, 0)
113
+ });
114
+ return out;
101
115
  },
102
- domainMinValue: 0,
103
- axisLabel: "Taxonomy count",
104
- tooltipText: (d) => {
105
- return `Taxonomy count ${d.x}`;
116
+ bucketClickSearchQuery: (datum, data, e) => {
117
+ if (datum.x == "Single")
118
+ return (0, SearchQueryTools_1.buildAttributeQuery)({
119
+ attribute: exports.TAXONOMY_COUNT_FACET.attribute,
120
+ value: 1,
121
+ operator: SearchEnums_1.Operator.Equals,
122
+ service: SearchEnums_1.Service.Text
123
+ });
124
+ else if (datum.x == "None")
125
+ return (0, SearchQueryTools_1.buildAttributeQuery)({
126
+ attribute: exports.TAXONOMY_COUNT_FACET.attribute,
127
+ value: 0,
128
+ operator: SearchEnums_1.Operator.Equals,
129
+ service: SearchEnums_1.Service.Text
130
+ });
131
+ else
132
+ return (0, SearchQueryTools_1.buildAttributeQuery)({
133
+ attribute: exports.TAXONOMY_COUNT_FACET.attribute,
134
+ value: 1,
135
+ operator: SearchEnums_1.Operator.Greater,
136
+ service: SearchEnums_1.Service.Text
137
+ });
106
138
  }
107
139
  },
108
140
  facet: {
@@ -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 | undefined;
25
- domainMinValue?: number | undefined;
26
- domainMaxValue?: number | undefined;
27
- domainEmptyBins?: boolean | undefined;
28
- histogramBinIncrement?: number | undefined;
24
+ mostPopulatedGroups?: number;
25
+ domainMinValue?: number;
26
+ domainMaxValue?: number;
27
+ domainEmptyBins?: boolean;
28
+ histogramBinIncrement?: number;
29
29
  tickIncrement?: {
30
30
  origin: number;
31
31
  increment: number;
32
- } | undefined;
32
+ };
33
33
  tickFormat?: {
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;
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;
41
41
  };
42
42
  data: ChartObjectInterface<any>[];
43
- filters?: SearchFilter[] | undefined;
43
+ filters?: SearchFilter[];
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: "string" | "number" | "date";
49
+ contentType: "date" | "number" | "string";
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;
42
41
  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;
56
55
  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: {