@jbrowse/plugin-comparative-adapters 3.6.4 → 3.7.0
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.
|
@@ -62,7 +62,7 @@ function paf_chain2paf(buffer, opts) {
|
|
|
62
62
|
const diff_in_target = l_vec.length > 1 ? +l_vec[1] : 0;
|
|
63
63
|
const diff_in_query = l_vec.length > 2 ? +l_vec[2] : 0;
|
|
64
64
|
if (size_ungapped_alignment !== 0) {
|
|
65
|
-
num_matches +=
|
|
65
|
+
num_matches += size_ungapped_alignment;
|
|
66
66
|
cigar += `${size_ungapped_alignment}M`;
|
|
67
67
|
}
|
|
68
68
|
if (diff_in_query !== 0) {
|
|
@@ -37,10 +37,10 @@ function paf_delta2paf(buffer, opts) {
|
|
|
37
37
|
const t3 = +t[3];
|
|
38
38
|
const t4 = +t[4];
|
|
39
39
|
strand = (t0 < t1 && t2 < t3) || (t0 > t1 && t2 > t3) ? 1 : -1;
|
|
40
|
-
rs =
|
|
41
|
-
re =
|
|
42
|
-
qs =
|
|
43
|
-
qe =
|
|
40
|
+
rs = Math.min(t0, t1) - 1;
|
|
41
|
+
re = Math.max(t1, t0);
|
|
42
|
+
qs = Math.min(t2, t3) - 1;
|
|
43
|
+
qe = Math.max(t3, t2);
|
|
44
44
|
x = y = 0;
|
|
45
45
|
NM = t4;
|
|
46
46
|
cigar = [];
|
|
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
7
6
|
const BaseAdapter_1 = require("@jbrowse/core/data_adapters/BaseAdapter");
|
|
8
7
|
const util_1 = require("@jbrowse/core/util");
|
|
9
8
|
const io_1 = require("@jbrowse/core/util/io");
|
|
@@ -62,11 +61,7 @@ class PAFAdapter extends BaseAdapter_1.BaseFeatureDataAdapter {
|
|
|
62
61
|
}
|
|
63
62
|
getFeatures(query, opts = {}) {
|
|
64
63
|
return (0, rxjs_1.ObservableCreate)(async (observer) => {
|
|
65
|
-
|
|
66
|
-
const { config } = opts;
|
|
67
|
-
if (config && (0, configuration_1.readConfObject)(config, 'colorBy') === 'meanQueryIdentity') {
|
|
68
|
-
pafRecords = (0, util_3.getWeightedMeans)(pafRecords);
|
|
69
|
-
}
|
|
64
|
+
const pafRecords = (0, util_3.getWeightedMeans)(await this.setup(opts));
|
|
70
65
|
const assemblyNames = this.getAssemblyNames();
|
|
71
66
|
const { start: qstart, end: qend, refName: qref, assemblyName } = query;
|
|
72
67
|
const index = assemblyNames.indexOf(assemblyName);
|
package/esm/ChainAdapter/util.js
CHANGED
|
@@ -59,7 +59,7 @@ export function paf_chain2paf(buffer, opts) {
|
|
|
59
59
|
const diff_in_target = l_vec.length > 1 ? +l_vec[1] : 0;
|
|
60
60
|
const diff_in_query = l_vec.length > 2 ? +l_vec[2] : 0;
|
|
61
61
|
if (size_ungapped_alignment !== 0) {
|
|
62
|
-
num_matches +=
|
|
62
|
+
num_matches += size_ungapped_alignment;
|
|
63
63
|
cigar += `${size_ungapped_alignment}M`;
|
|
64
64
|
}
|
|
65
65
|
if (diff_in_query !== 0) {
|
package/esm/DeltaAdapter/util.js
CHANGED
|
@@ -34,10 +34,10 @@ export function paf_delta2paf(buffer, opts) {
|
|
|
34
34
|
const t3 = +t[3];
|
|
35
35
|
const t4 = +t[4];
|
|
36
36
|
strand = (t0 < t1 && t2 < t3) || (t0 > t1 && t2 > t3) ? 1 : -1;
|
|
37
|
-
rs =
|
|
38
|
-
re =
|
|
39
|
-
qs =
|
|
40
|
-
qe =
|
|
37
|
+
rs = Math.min(t0, t1) - 1;
|
|
38
|
+
re = Math.max(t1, t0);
|
|
39
|
+
qs = Math.min(t2, t3) - 1;
|
|
40
|
+
qe = Math.max(t3, t2);
|
|
41
41
|
x = y = 0;
|
|
42
42
|
NM = t4;
|
|
43
43
|
cigar = [];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { readConfObject } from '@jbrowse/core/configuration';
|
|
2
1
|
import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
3
2
|
import { fetchAndMaybeUnzip } from '@jbrowse/core/util';
|
|
4
3
|
import { openLocation } from '@jbrowse/core/util/io';
|
|
@@ -57,11 +56,7 @@ class PAFAdapter extends BaseFeatureDataAdapter {
|
|
|
57
56
|
}
|
|
58
57
|
getFeatures(query, opts = {}) {
|
|
59
58
|
return ObservableCreate(async (observer) => {
|
|
60
|
-
|
|
61
|
-
const { config } = opts;
|
|
62
|
-
if (config && readConfObject(config, 'colorBy') === 'meanQueryIdentity') {
|
|
63
|
-
pafRecords = getWeightedMeans(pafRecords);
|
|
64
|
-
}
|
|
59
|
+
const pafRecords = getWeightedMeans(await this.setup(opts));
|
|
65
60
|
const assemblyNames = this.getAssemblyNames();
|
|
66
61
|
const { start: qstart, end: qend, refName: qref, assemblyName } = query;
|
|
67
62
|
const index = assemblyNames.indexOf(assemblyName);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-comparative-adapters",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "JBrowse 2 comparative adapters",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@gmod/bgzf-filehandle": "^4.0.0",
|
|
40
40
|
"@gmod/tabix": "^3.0.1",
|
|
41
|
-
"@jbrowse/core": "^3.
|
|
42
|
-
"@jbrowse/plugin-alignments": "^3.
|
|
43
|
-
"@jbrowse/plugin-linear-genome-view": "^3.
|
|
41
|
+
"@jbrowse/core": "^3.7.0",
|
|
42
|
+
"@jbrowse/plugin-alignments": "^3.7.0",
|
|
43
|
+
"@jbrowse/plugin-linear-genome-view": "^3.7.0",
|
|
44
44
|
"@mui/material": "^7.0.0",
|
|
45
45
|
"generic-filehandle2": "^2.0.1",
|
|
46
46
|
"mobx": "^6.0.0",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "85bdd0d58286b7adbfd408146b15847676317635"
|
|
62
62
|
}
|