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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.0",
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'
@@ -40,7 +40,6 @@ export function makeImageData({
40
40
  samples,
41
41
  rowProportion,
42
42
  features,
43
- statusCallback,
44
43
  } = renderArgs
45
44
  const region = regions[0]!
46
45
  const canvasWidth = (region.end - region.start) / bpPerPx
@@ -1,4 +1,5 @@
1
1
  import { measureText } from '@jbrowse/core/util'
2
+
2
3
  import type { Theme } from '@mui/material'
3
4
 
4
5
  export function getContrastBaseMap(theme: Theme) {
@@ -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(),