@jbrowse/plugin-legacy-jbrowse 1.5.3 → 1.5.7
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/plugin-legacy-jbrowse.cjs.development.js +54 -100
- package/dist/plugin-legacy-jbrowse.cjs.development.js.map +1 -1
- package/dist/plugin-legacy-jbrowse.cjs.production.min.js +1 -1
- package/dist/plugin-legacy-jbrowse.cjs.production.min.js.map +1 -1
- package/dist/plugin-legacy-jbrowse.esm.js +54 -100
- package/dist/plugin-legacy-jbrowse.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/JBrowse1Connection/jb1ConfigLoad.ts +0 -3
- package/src/JBrowse1Connection/jb1ToJb2.ts +1 -1
- package/src/NCListAdapter/NCListFeature.ts +1 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-legacy-jbrowse",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.7",
|
|
4
4
|
"description": "JBrowse 2 plugin for connecting to and reading JBrowse 1 data",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "b9b69276a6760ca01c7c7d905e2172b4adf9df8d"
|
|
53
53
|
}
|
|
@@ -101,9 +101,6 @@ export async function createFinalConfig(
|
|
|
101
101
|
|
|
102
102
|
export async function fetchConfigFile(location: JBLocation): Promise<Config> {
|
|
103
103
|
const result = await openLocation(location).readFile('utf8')
|
|
104
|
-
if (typeof result !== 'string') {
|
|
105
|
-
throw new Error(`Error opening location: ${location}`)
|
|
106
|
-
}
|
|
107
104
|
if (isUriLocation(location)) {
|
|
108
105
|
return parseJb1(result, location.uri)
|
|
109
106
|
}
|
|
@@ -500,7 +500,7 @@ export async function createRefSeqsAdapter(
|
|
|
500
500
|
uri: refSeqs.url,
|
|
501
501
|
locationType: 'UriLocation',
|
|
502
502
|
}).readFile('utf8')
|
|
503
|
-
const refSeqsData: RefSeq[] = JSON.parse(refSeqsJson
|
|
503
|
+
const refSeqsData: RefSeq[] = JSON.parse(refSeqsJson)
|
|
504
504
|
return refSeqAdapterFromConfig(refSeqsData)
|
|
505
505
|
}
|
|
506
506
|
if ('data' in refSeqs) {
|
|
@@ -11,16 +11,12 @@ const jb1ToJb2 = { seq_id: 'refName' }
|
|
|
11
11
|
* wrapper to adapt nclist features to act like jbrowse 2 features
|
|
12
12
|
*/
|
|
13
13
|
export default class NCListFeature implements Feature {
|
|
14
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
|
-
private ncFeature: any
|
|
16
|
-
|
|
17
14
|
private parentHandle?: Feature
|
|
18
15
|
|
|
19
16
|
private uniqueId: string
|
|
20
17
|
|
|
21
18
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
22
|
-
constructor(ncFeature: any, parent?: Feature, id?: string) {
|
|
23
|
-
this.ncFeature = ncFeature
|
|
19
|
+
constructor(private ncFeature: any, parent?: Feature, id?: string) {
|
|
24
20
|
this.uniqueId = id || ncFeature.id()
|
|
25
21
|
this.parentHandle = parent
|
|
26
22
|
}
|