react-mutation-mapper 0.8.58 → 0.8.59

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/dist/index.js CHANGED
@@ -12096,7 +12096,7 @@ var DefaultMutationMapperStore = /** @class */ (function () {
12096
12096
  var _this = this;
12097
12097
  return this.groupedMutationsByPosition.map(function (groupedMutations) { return ({
12098
12098
  group: groupedMutations.group,
12099
- counts: _this.countUniqueMutationsByPosition(groupedMutations.mutations),
12099
+ counts: _this.countUniqueMutationsByPosition(groupedMutations.mutations, groupedMutations.group),
12100
12100
  }); });
12101
12101
  },
12102
12102
  enumerable: false,
@@ -12113,7 +12113,7 @@ var DefaultMutationMapperStore = /** @class */ (function () {
12113
12113
  enumerable: false,
12114
12114
  configurable: true,
12115
12115
  writable: true,
12116
- value: function (mutationsByPosition) {
12116
+ value: function (mutationsByPosition, group) {
12117
12117
  var _this = this;
12118
12118
  var map = {};
12119
12119
  Object.keys(mutationsByPosition).forEach(function (pos) {
@@ -12121,7 +12121,7 @@ var DefaultMutationMapperStore = /** @class */ (function () {
12121
12121
  // for each position multiple mutations for the same patient is counted only once
12122
12122
  var mutations = mutationsByPosition[position];
12123
12123
  if (mutations) {
12124
- map[position] = _this.countUniqueMutations(mutations);
12124
+ map[position] = _this.countUniqueMutations(mutations, group);
12125
12125
  }
12126
12126
  });
12127
12127
  return map;
@@ -12131,7 +12131,7 @@ var DefaultMutationMapperStore = /** @class */ (function () {
12131
12131
  enumerable: false,
12132
12132
  configurable: true,
12133
12133
  writable: true,
12134
- value: function (mutations) {
12134
+ value: function (mutations, group) {
12135
12135
  // assume by default all mutations are unique
12136
12136
  // child classes need to override this method to have a custom way of counting unique mutations
12137
12137
  return this.config.getMutationCount