jbrowse-plugin-mafviewer 1.2.0 → 1.2.1
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/BgzipTaffyAdapter/BgzipTaffyAdapter.js +0 -1
- package/dist/BgzipTaffyAdapter/BgzipTaffyAdapter.js.map +1 -1
- package/dist/LinearMafDisplay/stateModel.js +1 -1
- package/dist/LinearMafDisplay/stateModel.js.map +1 -1
- package/dist/LinearMafRenderer/makeImageData.js +1 -1
- package/dist/LinearMafRenderer/makeImageData.js.map +1 -1
- package/dist/LinearMafRenderer/util.js.map +1 -1
- package/dist/MafTabixAdapter/MafTabixAdapter.js +1 -6
- package/dist/MafTabixAdapter/MafTabixAdapter.js.map +1 -1
- package/dist/jbrowse-plugin-mafviewer.umd.production.min.js +6 -6
- package/dist/jbrowse-plugin-mafviewer.umd.production.min.js.map +3 -3
- package/package.json +2 -1
- package/src/BgzipTaffyAdapter/BgzipTaffyAdapter.ts +1 -2
- package/src/LinearMafDisplay/stateModel.ts +1 -1
- package/src/LinearMafRenderer/makeImageData.ts +0 -1
- package/src/LinearMafRenderer/util.ts +1 -0
- package/src/MafTabixAdapter/MafTabixAdapter.ts +1 -11
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.2.
|
|
2
|
+
"version": "1.2.1",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"name": "jbrowse-plugin-mafviewer",
|
|
5
5
|
"keywords": [
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"buffer": "^6.0.3",
|
|
67
67
|
"d3-array": "^3.2.4",
|
|
68
68
|
"d3-hierarchy": "^3.1.2",
|
|
69
|
+
"fast-deep-equal": "^3.1.3",
|
|
69
70
|
"generic-filehandle2": "^1.0.0",
|
|
70
71
|
"long": "^5.2.3"
|
|
71
72
|
}
|
|
@@ -17,9 +17,9 @@ import VirtualOffset from './virtualOffset'
|
|
|
17
17
|
import parseNewick from '../parseNewick'
|
|
18
18
|
import { normalize } from '../util'
|
|
19
19
|
import { parseRowInstructions } from './rowInstructions'
|
|
20
|
+
import { parseLineByLine } from './util'
|
|
20
21
|
|
|
21
22
|
import type { IndexData, OrganismRecord } from './types'
|
|
22
|
-
import { parseLineByLine } from './util'
|
|
23
23
|
interface Entry {
|
|
24
24
|
type: string
|
|
25
25
|
row: number
|
|
@@ -101,7 +101,6 @@ export default class BgzipTaffyAdapter extends BaseFeatureDataAdapter {
|
|
|
101
101
|
|
|
102
102
|
getFeatures(query: Region, opts?: BaseOptions) {
|
|
103
103
|
const { statusCallback = () => {} } = opts || {}
|
|
104
|
-
console.log(query.start, query.end, 'wtf')
|
|
105
104
|
return ObservableCreate<Feature>(async observer => {
|
|
106
105
|
try {
|
|
107
106
|
const byteRanges = await this.setup()
|
|
@@ -3,9 +3,9 @@ import { getEnv, getSession } from '@jbrowse/core/util'
|
|
|
3
3
|
import { getRpcSessionId } from '@jbrowse/core/util/tracks'
|
|
4
4
|
import { ascending } from 'd3-array'
|
|
5
5
|
import { cluster, hierarchy } from 'd3-hierarchy'
|
|
6
|
+
import deepEqual from 'fast-deep-equal'
|
|
6
7
|
import { autorun } from 'mobx'
|
|
7
8
|
import { addDisposer, isAlive, types } from 'mobx-state-tree'
|
|
8
|
-
import deepEqual from 'fast-deep-equal'
|
|
9
9
|
|
|
10
10
|
import SetRowHeightDialog from './components/SetRowHeight'
|
|
11
11
|
import { maxLength, setBrLength } from './types'
|
|
@@ -85,6 +85,7 @@ export default class MafTabixAdapter extends BaseFeatureDataAdapter {
|
|
|
85
85
|
const data = (feature.get('field5') as string).split(',')
|
|
86
86
|
const alignments = {} as Record<string, OrganismRecord>
|
|
87
87
|
|
|
88
|
+
// eslint-disable-next-line @typescript-eslint/prefer-for-of
|
|
88
89
|
for (let j = 0; j < data.length; j++) {
|
|
89
90
|
const elt = data[j]!
|
|
90
91
|
const seq = elt.split(':')[5]!
|
|
@@ -116,17 +117,6 @@ export default class MafTabixAdapter extends BaseFeatureDataAdapter {
|
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
119
|
|
|
119
|
-
console.log(
|
|
120
|
-
{
|
|
121
|
-
alignments,
|
|
122
|
-
firstAssemblyNameFound,
|
|
123
|
-
refAssemblyName,
|
|
124
|
-
q: query.assemblyName,
|
|
125
|
-
},
|
|
126
|
-
alignments[refAssemblyName],
|
|
127
|
-
alignments[query.assemblyName],
|
|
128
|
-
alignments[firstAssemblyNameFound],
|
|
129
|
-
)
|
|
130
120
|
observer.next(
|
|
131
121
|
new SimpleFeature({
|
|
132
122
|
id: feature.id(),
|