|
@@ -82,6 +82,8 @@ const clusterSam = (input_sam, threshold, minReads) => {
|
|
|
firstPos = e.position;
|
|
firstPos = e.position;
|
|
|
}
|
|
}
|
|
|
if (Math.abs(e.position - ((_a = a[i - 1]) === null || _a === void 0 ? void 0 : _a.position)) > threshold) {
|
|
if (Math.abs(e.position - ((_a = a[i - 1]) === null || _a === void 0 ? void 0 : _a.position)) > threshold) {
|
|
|
|
|
+ if (typeof posAll[name] === 'undefined')
|
|
|
|
|
+ posAll[name] = {};
|
|
|
posAll[name][String(cluster)] = firstPos + '-' + ((_b = a[i - 1]) === null || _b === void 0 ? void 0 : _b.position);
|
|
posAll[name][String(cluster)] = firstPos + '-' + ((_b = a[i - 1]) === null || _b === void 0 ? void 0 : _b.position);
|
|
|
cluster = cluster + 1;
|
|
cluster = cluster + 1;
|
|
|
firstPos = e.position;
|
|
firstPos = e.position;
|