@teselagen/ove 0.8.24 → 0.8.25
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/index.cjs.js +33 -22
- package/index.es.js +33 -22
- package/package.json +8 -8
- package/src/LinearView/index.js +27 -25
- package/index.umd.js +0 -183052
package/index.cjs.js
CHANGED
|
@@ -84059,6 +84059,15 @@ function getAnnotationsBetweenRange(annotationsToBeAdjusted, range2, maxLength,
|
|
|
84059
84059
|
}
|
|
84060
84060
|
const overlaps = getZeroedRangeOverlaps(annotation, range2, maxLength).map(
|
|
84061
84061
|
(overlap) => {
|
|
84062
|
+
const allLocations = annotation.locations;
|
|
84063
|
+
if (allLocations && allLocations.length) {
|
|
84064
|
+
const newLocations = allLocations.filter((loc) => {
|
|
84065
|
+
return isRangeWithinRange(loc, overlap, maxLength);
|
|
84066
|
+
});
|
|
84067
|
+
return assignIn({}, annotation, overlap, {
|
|
84068
|
+
locations: newLocations
|
|
84069
|
+
});
|
|
84070
|
+
}
|
|
84062
84071
|
return assignIn({}, annotation, overlap);
|
|
84063
84072
|
}
|
|
84064
84073
|
);
|
|
@@ -116977,7 +116986,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
116977
116986
|
input.click();
|
|
116978
116987
|
}
|
|
116979
116988
|
__name(showFileDialog, "showFileDialog");
|
|
116980
|
-
const version = "0.8.
|
|
116989
|
+
const version = "0.8.25";
|
|
116981
116990
|
const packageJson = {
|
|
116982
116991
|
version
|
|
116983
116992
|
};
|
|
@@ -124356,28 +124365,30 @@ const __LinearView = class __LinearView extends React.Component {
|
|
|
124356
124365
|
maxAnnotationsToDisplay
|
|
124357
124366
|
} = this.props;
|
|
124358
124367
|
this.paredDownMessages = [];
|
|
124359
|
-
const paredDownSeqData = [
|
|
124360
|
-
|
|
124361
|
-
|
|
124362
|
-
|
|
124363
|
-
|
|
124364
|
-
|
|
124365
|
-
|
|
124368
|
+
const paredDownSeqData = [
|
|
124369
|
+
"parts",
|
|
124370
|
+
"features",
|
|
124371
|
+
"cutsites",
|
|
124372
|
+
"primers"
|
|
124373
|
+
].reduce((acc, type2) => {
|
|
124374
|
+
const nameUpper = startCase(type2);
|
|
124375
|
+
const maxToShow = (maxAnnotationsToDisplay ? maxAnnotationsToDisplay[type2] : limits[type2]) || 50;
|
|
124376
|
+
const [annotations, paredDown] = pareDownAnnotations(
|
|
124377
|
+
sequenceData2["filtered" + nameUpper] || sequenceData2[type2] || {},
|
|
124378
|
+
maxToShow
|
|
124379
|
+
);
|
|
124380
|
+
if (paredDown) {
|
|
124381
|
+
this.paredDownMessages.push(
|
|
124382
|
+
getParedDownWarning({
|
|
124383
|
+
nameUpper,
|
|
124384
|
+
isAdjustable: !maxAnnotationsToDisplay,
|
|
124385
|
+
maxToShow
|
|
124386
|
+
})
|
|
124366
124387
|
);
|
|
124367
|
-
|
|
124368
|
-
|
|
124369
|
-
|
|
124370
|
-
|
|
124371
|
-
isAdjustable: !maxAnnotationsToDisplay,
|
|
124372
|
-
maxToShow
|
|
124373
|
-
})
|
|
124374
|
-
);
|
|
124375
|
-
}
|
|
124376
|
-
acc[type2] = annotations;
|
|
124377
|
-
return acc;
|
|
124378
|
-
},
|
|
124379
|
-
{}
|
|
124380
|
-
);
|
|
124388
|
+
}
|
|
124389
|
+
acc[type2] = annotations;
|
|
124390
|
+
return acc;
|
|
124391
|
+
}, {});
|
|
124381
124392
|
this.rowData = prepareRowData(
|
|
124382
124393
|
__spreadValues(__spreadValues({}, sequenceData2), paredDownSeqData),
|
|
124383
124394
|
sequenceData2.sequence ? sequenceData2.sequence.length : 0
|
package/index.es.js
CHANGED
|
@@ -84041,6 +84041,15 @@ function getAnnotationsBetweenRange(annotationsToBeAdjusted, range2, maxLength,
|
|
|
84041
84041
|
}
|
|
84042
84042
|
const overlaps = getZeroedRangeOverlaps(annotation, range2, maxLength).map(
|
|
84043
84043
|
(overlap) => {
|
|
84044
|
+
const allLocations = annotation.locations;
|
|
84045
|
+
if (allLocations && allLocations.length) {
|
|
84046
|
+
const newLocations = allLocations.filter((loc) => {
|
|
84047
|
+
return isRangeWithinRange(loc, overlap, maxLength);
|
|
84048
|
+
});
|
|
84049
|
+
return assignIn({}, annotation, overlap, {
|
|
84050
|
+
locations: newLocations
|
|
84051
|
+
});
|
|
84052
|
+
}
|
|
84044
84053
|
return assignIn({}, annotation, overlap);
|
|
84045
84054
|
}
|
|
84046
84055
|
);
|
|
@@ -116959,7 +116968,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
116959
116968
|
input.click();
|
|
116960
116969
|
}
|
|
116961
116970
|
__name(showFileDialog, "showFileDialog");
|
|
116962
|
-
const version = "0.8.
|
|
116971
|
+
const version = "0.8.25";
|
|
116963
116972
|
const packageJson = {
|
|
116964
116973
|
version
|
|
116965
116974
|
};
|
|
@@ -124338,28 +124347,30 @@ const __LinearView = class __LinearView extends React__default.Component {
|
|
|
124338
124347
|
maxAnnotationsToDisplay
|
|
124339
124348
|
} = this.props;
|
|
124340
124349
|
this.paredDownMessages = [];
|
|
124341
|
-
const paredDownSeqData = [
|
|
124342
|
-
|
|
124343
|
-
|
|
124344
|
-
|
|
124345
|
-
|
|
124346
|
-
|
|
124347
|
-
|
|
124350
|
+
const paredDownSeqData = [
|
|
124351
|
+
"parts",
|
|
124352
|
+
"features",
|
|
124353
|
+
"cutsites",
|
|
124354
|
+
"primers"
|
|
124355
|
+
].reduce((acc, type2) => {
|
|
124356
|
+
const nameUpper = startCase(type2);
|
|
124357
|
+
const maxToShow = (maxAnnotationsToDisplay ? maxAnnotationsToDisplay[type2] : limits[type2]) || 50;
|
|
124358
|
+
const [annotations, paredDown] = pareDownAnnotations(
|
|
124359
|
+
sequenceData2["filtered" + nameUpper] || sequenceData2[type2] || {},
|
|
124360
|
+
maxToShow
|
|
124361
|
+
);
|
|
124362
|
+
if (paredDown) {
|
|
124363
|
+
this.paredDownMessages.push(
|
|
124364
|
+
getParedDownWarning({
|
|
124365
|
+
nameUpper,
|
|
124366
|
+
isAdjustable: !maxAnnotationsToDisplay,
|
|
124367
|
+
maxToShow
|
|
124368
|
+
})
|
|
124348
124369
|
);
|
|
124349
|
-
|
|
124350
|
-
|
|
124351
|
-
|
|
124352
|
-
|
|
124353
|
-
isAdjustable: !maxAnnotationsToDisplay,
|
|
124354
|
-
maxToShow
|
|
124355
|
-
})
|
|
124356
|
-
);
|
|
124357
|
-
}
|
|
124358
|
-
acc[type2] = annotations;
|
|
124359
|
-
return acc;
|
|
124360
|
-
},
|
|
124361
|
-
{}
|
|
124362
|
-
);
|
|
124370
|
+
}
|
|
124371
|
+
acc[type2] = annotations;
|
|
124372
|
+
return acc;
|
|
124373
|
+
}, {});
|
|
124363
124374
|
this.rowData = prepareRowData(
|
|
124364
124375
|
__spreadValues(__spreadValues({}, sequenceData2), paredDownSeqData),
|
|
124365
124376
|
sequenceData2.sequence ? sequenceData2.sequence.length : 0
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teselagen/ove",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.25",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"repository": "https://github.com/TeselaGen/tg-oss",
|
|
6
7
|
"exports": {
|
|
7
8
|
".": {
|
|
8
9
|
"import": "./index.es.js",
|
|
@@ -14,12 +15,12 @@
|
|
|
14
15
|
"@blueprintjs/core": "3.54.0",
|
|
15
16
|
"@hello-pangea/dnd": "16.2.0",
|
|
16
17
|
"@risingstack/react-easy-state": "^6.3.0",
|
|
17
|
-
"@teselagen/bio-parsers": "0.4.
|
|
18
|
+
"@teselagen/bio-parsers": "0.4.33",
|
|
18
19
|
"@teselagen/file-utils": "0.3.20",
|
|
19
|
-
"@teselagen/range-utils": "0.3.
|
|
20
|
+
"@teselagen/range-utils": "0.3.19",
|
|
20
21
|
"@teselagen/react-list": "0.8.18",
|
|
21
|
-
"@teselagen/sequence-utils": "0.3.
|
|
22
|
-
"@teselagen/ui": "0.10.
|
|
22
|
+
"@teselagen/sequence-utils": "0.3.41",
|
|
23
|
+
"@teselagen/ui": "0.10.16",
|
|
23
24
|
"@use-gesture/react": "10.3.0",
|
|
24
25
|
"biomsa": "^0.2.4",
|
|
25
26
|
"classnames": "^2.3.2",
|
|
@@ -62,6 +63,5 @@
|
|
|
62
63
|
"to-regex-range": "5.0.1",
|
|
63
64
|
"use-debounce": "^8.0.4",
|
|
64
65
|
"validate.io-nonnegative-integer-array": "^1.0.1"
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
}
|
|
66
|
+
}
|
|
67
|
+
}
|
package/src/LinearView/index.js
CHANGED
|
@@ -104,32 +104,34 @@ class _LinearView extends React.Component {
|
|
|
104
104
|
} = this.props;
|
|
105
105
|
// if (!isEqual(sequenceData, this.oldSeqData)) {
|
|
106
106
|
this.paredDownMessages = [];
|
|
107
|
-
const paredDownSeqData = [
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
107
|
+
const paredDownSeqData = [
|
|
108
|
+
"parts",
|
|
109
|
+
"features",
|
|
110
|
+
"cutsites",
|
|
111
|
+
"primers"
|
|
112
|
+
].reduce((acc, type) => {
|
|
113
|
+
const nameUpper = startCase(type);
|
|
114
|
+
const maxToShow =
|
|
115
|
+
(maxAnnotationsToDisplay
|
|
116
|
+
? maxAnnotationsToDisplay[type]
|
|
117
|
+
: limits[type]) || 50;
|
|
118
|
+
const [annotations, paredDown] = pareDownAnnotations(
|
|
119
|
+
sequenceData["filtered" + nameUpper] || sequenceData[type] || {},
|
|
120
|
+
maxToShow
|
|
121
|
+
);
|
|
118
122
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
{}
|
|
132
|
-
);
|
|
123
|
+
if (paredDown) {
|
|
124
|
+
this.paredDownMessages.push(
|
|
125
|
+
getParedDownWarning({
|
|
126
|
+
nameUpper,
|
|
127
|
+
isAdjustable: !maxAnnotationsToDisplay,
|
|
128
|
+
maxToShow
|
|
129
|
+
})
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
acc[type] = annotations;
|
|
133
|
+
return acc;
|
|
134
|
+
}, {});
|
|
133
135
|
this.rowData = prepareRowData(
|
|
134
136
|
{
|
|
135
137
|
...sequenceData,
|