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.es.js +4 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/store/DefaultMutationMapperStore.d.ts +2 -2
- package/dist/styles.css +3 -3
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -12059,7 +12059,7 @@ var DefaultMutationMapperStore = /** @class */ (function () {
|
|
|
12059
12059
|
var _this = this;
|
|
12060
12060
|
return this.groupedMutationsByPosition.map(function (groupedMutations) { return ({
|
|
12061
12061
|
group: groupedMutations.group,
|
|
12062
|
-
counts: _this.countUniqueMutationsByPosition(groupedMutations.mutations),
|
|
12062
|
+
counts: _this.countUniqueMutationsByPosition(groupedMutations.mutations, groupedMutations.group),
|
|
12063
12063
|
}); });
|
|
12064
12064
|
},
|
|
12065
12065
|
enumerable: false,
|
|
@@ -12076,7 +12076,7 @@ var DefaultMutationMapperStore = /** @class */ (function () {
|
|
|
12076
12076
|
enumerable: false,
|
|
12077
12077
|
configurable: true,
|
|
12078
12078
|
writable: true,
|
|
12079
|
-
value: function (mutationsByPosition) {
|
|
12079
|
+
value: function (mutationsByPosition, group) {
|
|
12080
12080
|
var _this = this;
|
|
12081
12081
|
var map = {};
|
|
12082
12082
|
Object.keys(mutationsByPosition).forEach(function (pos) {
|
|
@@ -12084,7 +12084,7 @@ var DefaultMutationMapperStore = /** @class */ (function () {
|
|
|
12084
12084
|
// for each position multiple mutations for the same patient is counted only once
|
|
12085
12085
|
var mutations = mutationsByPosition[position];
|
|
12086
12086
|
if (mutations) {
|
|
12087
|
-
map[position] = _this.countUniqueMutations(mutations);
|
|
12087
|
+
map[position] = _this.countUniqueMutations(mutations, group);
|
|
12088
12088
|
}
|
|
12089
12089
|
});
|
|
12090
12090
|
return map;
|
|
@@ -12094,7 +12094,7 @@ var DefaultMutationMapperStore = /** @class */ (function () {
|
|
|
12094
12094
|
enumerable: false,
|
|
12095
12095
|
configurable: true,
|
|
12096
12096
|
writable: true,
|
|
12097
|
-
value: function (mutations) {
|
|
12097
|
+
value: function (mutations, group) {
|
|
12098
12098
|
// assume by default all mutations are unique
|
|
12099
12099
|
// child classes need to override this method to have a custom way of counting unique mutations
|
|
12100
12100
|
return this.config.getMutationCount
|