@jbrowse/plugin-legacy-jbrowse 2.6.1 → 2.6.2
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/GuessNCList/index.js +0 -1
- package/dist/JBrowse1Connection/configSchema.js +0 -1
- package/dist/JBrowse1Connection/index.js +0 -1
- package/dist/JBrowse1Connection/jb1ConfigLoad.js +0 -1
- package/dist/JBrowse1Connection/jb1ConfigParse.js +0 -1
- package/dist/JBrowse1Connection/jb1ToJb2.js +0 -1
- package/dist/JBrowse1Connection/model.js +0 -1
- package/dist/JBrowse1Connection/types.js +0 -1
- package/dist/JBrowse1Connection/util.js +0 -1
- package/dist/JBrowse1TextSearchAdapter/HttpMap.js +0 -1
- package/dist/JBrowse1TextSearchAdapter/JBrowse1TextSearchAdapter.js +0 -1
- package/dist/JBrowse1TextSearchAdapter/configSchema.js +0 -1
- package/dist/JBrowse1TextSearchAdapter/index.js +0 -1
- package/dist/NCListAdapter/NCListAdapter.js +0 -1
- package/dist/NCListAdapter/NCListFeature.js +0 -1
- package/dist/NCListAdapter/configSchema.js +0 -1
- package/dist/NCListAdapter/index.js +0 -1
- package/dist/index.js +0 -1
- package/esm/GuessNCList/index.js +0 -1
- package/esm/JBrowse1Connection/configSchema.js +0 -1
- package/esm/JBrowse1Connection/index.js +0 -1
- package/esm/JBrowse1Connection/jb1ConfigLoad.js +0 -1
- package/esm/JBrowse1Connection/jb1ConfigParse.js +0 -1
- package/esm/JBrowse1Connection/jb1ToJb2.js +0 -1
- package/esm/JBrowse1Connection/model.js +0 -1
- package/esm/JBrowse1Connection/types.js +0 -1
- package/esm/JBrowse1Connection/util.js +0 -1
- package/esm/JBrowse1TextSearchAdapter/HttpMap.js +0 -1
- package/esm/JBrowse1TextSearchAdapter/JBrowse1TextSearchAdapter.js +0 -1
- package/esm/JBrowse1TextSearchAdapter/configSchema.js +0 -1
- package/esm/JBrowse1TextSearchAdapter/index.js +0 -1
- package/esm/NCListAdapter/NCListAdapter.js +0 -1
- package/esm/NCListAdapter/NCListFeature.js +0 -1
- package/esm/NCListAdapter/configSchema.js +0 -1
- package/esm/NCListAdapter/index.js +0 -1
- package/esm/index.js +0 -1
- package/package.json +3 -4
- package/dist/GuessNCList/index.js.map +0 -1
- package/dist/JBrowse1Connection/configSchema.js.map +0 -1
- package/dist/JBrowse1Connection/index.js.map +0 -1
- package/dist/JBrowse1Connection/jb1ConfigLoad.js.map +0 -1
- package/dist/JBrowse1Connection/jb1ConfigParse.js.map +0 -1
- package/dist/JBrowse1Connection/jb1ToJb2.js.map +0 -1
- package/dist/JBrowse1Connection/model.js.map +0 -1
- package/dist/JBrowse1Connection/types.js.map +0 -1
- package/dist/JBrowse1Connection/util.js.map +0 -1
- package/dist/JBrowse1TextSearchAdapter/HttpMap.js.map +0 -1
- package/dist/JBrowse1TextSearchAdapter/JBrowse1TextSearchAdapter.js.map +0 -1
- package/dist/JBrowse1TextSearchAdapter/configSchema.js.map +0 -1
- package/dist/JBrowse1TextSearchAdapter/index.js.map +0 -1
- package/dist/NCListAdapter/NCListAdapter.js.map +0 -1
- package/dist/NCListAdapter/NCListFeature.js.map +0 -1
- package/dist/NCListAdapter/configSchema.js.map +0 -1
- package/dist/NCListAdapter/index.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/esm/GuessNCList/index.js.map +0 -1
- package/esm/JBrowse1Connection/configSchema.js.map +0 -1
- package/esm/JBrowse1Connection/index.js.map +0 -1
- package/esm/JBrowse1Connection/jb1ConfigLoad.js.map +0 -1
- package/esm/JBrowse1Connection/jb1ConfigParse.js.map +0 -1
- package/esm/JBrowse1Connection/jb1ToJb2.js.map +0 -1
- package/esm/JBrowse1Connection/model.js.map +0 -1
- package/esm/JBrowse1Connection/types.js.map +0 -1
- package/esm/JBrowse1Connection/util.js.map +0 -1
- package/esm/JBrowse1TextSearchAdapter/HttpMap.js.map +0 -1
- package/esm/JBrowse1TextSearchAdapter/JBrowse1TextSearchAdapter.js.map +0 -1
- package/esm/JBrowse1TextSearchAdapter/configSchema.js.map +0 -1
- package/esm/JBrowse1TextSearchAdapter/index.js.map +0 -1
- package/esm/NCListAdapter/NCListAdapter.js.map +0 -1
- package/esm/NCListAdapter/NCListFeature.js.map +0 -1
- package/esm/NCListAdapter/configSchema.js.map +0 -1
- package/esm/NCListAdapter/index.js.map +0 -1
- package/esm/index.js.map +0 -1
- package/src/GuessNCList/index.ts +0 -27
- package/src/JBrowse1Connection/configSchema.ts +0 -42
- package/src/JBrowse1Connection/index.ts +0 -20
- package/src/JBrowse1Connection/jb1ConfigLoad.ts +0 -342
- package/src/JBrowse1Connection/jb1ConfigParse.ts +0 -423
- package/src/JBrowse1Connection/jb1ToJb2.ts +0 -529
- package/src/JBrowse1Connection/model.tsx +0 -69
- package/src/JBrowse1Connection/types.ts +0 -105
- package/src/JBrowse1Connection/util.ts +0 -149
- package/src/JBrowse1TextSearchAdapter/HttpMap.test.ts +0 -49
- package/src/JBrowse1TextSearchAdapter/HttpMap.ts +0 -100
- package/src/JBrowse1TextSearchAdapter/JBrowse1TextSearchAdapter.test.ts +0 -101
- package/src/JBrowse1TextSearchAdapter/JBrowse1TextSearchAdapter.ts +0 -100
- package/src/JBrowse1TextSearchAdapter/configSchema.ts +0 -44
- package/src/JBrowse1TextSearchAdapter/index.ts +0 -18
- package/src/NCListAdapter/NCListAdapter.test.ts +0 -58
- package/src/NCListAdapter/NCListAdapter.ts +0 -92
- package/src/NCListAdapter/NCListFeature.ts +0 -94
- package/src/NCListAdapter/__snapshots__/NCListAdapter.test.ts.snap +0 -30671
- package/src/NCListAdapter/configSchema.ts +0 -32
- package/src/NCListAdapter/index.ts +0 -16
- package/src/__snapshots__/index.test.ts.snap +0 -16
- package/src/index.test.ts +0 -35
- package/src/index.ts +0 -17
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* #config NCListAdapter
|
|
5
|
-
*/
|
|
6
|
-
function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
7
|
-
|
|
8
|
-
const NCListAdapter = ConfigurationSchema(
|
|
9
|
-
'NCListAdapter',
|
|
10
|
-
{
|
|
11
|
-
/**
|
|
12
|
-
* #slot
|
|
13
|
-
*/
|
|
14
|
-
rootUrlTemplate: {
|
|
15
|
-
type: 'fileLocation',
|
|
16
|
-
defaultValue: {
|
|
17
|
-
uri: '/path/to/my/{refseq}/trackData.json',
|
|
18
|
-
locationType: 'UriLocation',
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
/**
|
|
22
|
-
* #slot
|
|
23
|
-
*/
|
|
24
|
-
refNames: {
|
|
25
|
-
type: 'stringArray',
|
|
26
|
-
defaultValue: [],
|
|
27
|
-
description: 'List of refNames used by the NCList used for aliasing',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
{ explicitlyTyped: true },
|
|
31
|
-
)
|
|
32
|
-
export default NCListAdapter
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AdapterType } from '@jbrowse/core/pluggableElementTypes'
|
|
2
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
3
|
-
|
|
4
|
-
import configSchema from './configSchema'
|
|
5
|
-
|
|
6
|
-
export default (pluginManager: PluginManager) => {
|
|
7
|
-
pluginManager.addAdapterType(
|
|
8
|
-
() =>
|
|
9
|
-
new AdapterType({
|
|
10
|
-
name: 'NCListAdapter',
|
|
11
|
-
displayName: 'NCList adapter',
|
|
12
|
-
configSchema,
|
|
13
|
-
getAdapterClass: () => import('./NCListAdapter').then(r => r.default),
|
|
14
|
-
}),
|
|
15
|
-
)
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`plugin in a stock JBrowse 1`] = `{}`;
|
|
4
|
-
|
|
5
|
-
exports[`test creating a text search adapter 1`] = `
|
|
6
|
-
{
|
|
7
|
-
"namesIndexLocation": {
|
|
8
|
-
"internetAccountId": undefined,
|
|
9
|
-
"internetAccountPreAuthorization": undefined,
|
|
10
|
-
"locationType": "UriLocation",
|
|
11
|
-
"uri": "names/",
|
|
12
|
-
},
|
|
13
|
-
"textSearchAdapterId": "JBrowse1GenerateNamesAdapterTest",
|
|
14
|
-
"type": "JBrowse1TextSearchAdapter",
|
|
15
|
-
}
|
|
16
|
-
`;
|
package/src/index.test.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
2
|
-
import { getSnapshot } from 'mobx-state-tree'
|
|
3
|
-
import ThisPlugin from '.'
|
|
4
|
-
|
|
5
|
-
test('plugin in a stock JBrowse', () => {
|
|
6
|
-
const pm = new PluginManager([new ThisPlugin()])
|
|
7
|
-
pm.createPluggableElements()
|
|
8
|
-
pm.configure()
|
|
9
|
-
expect(() => pm.addPlugin(new ThisPlugin())).toThrow(
|
|
10
|
-
/JBrowse already configured, cannot add plugins/,
|
|
11
|
-
)
|
|
12
|
-
|
|
13
|
-
const NCListAdapter = pm.getAdapterType('NCListAdapter')
|
|
14
|
-
const config = NCListAdapter.configSchema.create({ type: 'NCListAdapter' })
|
|
15
|
-
expect(getSnapshot(config)).toMatchSnapshot()
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
test('test creating a text search adapter', () => {
|
|
19
|
-
const pm = new PluginManager([new ThisPlugin()])
|
|
20
|
-
pm.createPluggableElements()
|
|
21
|
-
pm.configure()
|
|
22
|
-
|
|
23
|
-
const Adapter = pm.getTextSearchAdapterType('JBrowse1TextSearchAdapter')
|
|
24
|
-
const config = Adapter.configSchema.create({
|
|
25
|
-
type: 'JBrowse1TextSearchAdapter',
|
|
26
|
-
textSearchAdapterId: 'JBrowse1GenerateNamesAdapterTest',
|
|
27
|
-
namesIndexLocation: {
|
|
28
|
-
uri: 'names/',
|
|
29
|
-
locationType: 'UriLocation',
|
|
30
|
-
},
|
|
31
|
-
tracks: [],
|
|
32
|
-
assemblies: [],
|
|
33
|
-
})
|
|
34
|
-
expect(getSnapshot(config)).toMatchSnapshot()
|
|
35
|
-
})
|
package/src/index.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Plugin from '@jbrowse/core/Plugin'
|
|
2
|
-
import PluginManager from '@jbrowse/core/PluginManager'
|
|
3
|
-
import NCListAdapterF from './NCListAdapter'
|
|
4
|
-
import JBrowse1TextSearchAdapterF from './JBrowse1TextSearchAdapter'
|
|
5
|
-
import JBrowse1ConnectionF from './JBrowse1Connection'
|
|
6
|
-
import GuessNCListF from './GuessNCList'
|
|
7
|
-
|
|
8
|
-
export default class LegacyJBrowsePlugin extends Plugin {
|
|
9
|
-
name = 'LegacyJBrowsePlugin'
|
|
10
|
-
|
|
11
|
-
install(pluginManager: PluginManager) {
|
|
12
|
-
NCListAdapterF(pluginManager)
|
|
13
|
-
GuessNCListF(pluginManager)
|
|
14
|
-
JBrowse1TextSearchAdapterF(pluginManager)
|
|
15
|
-
JBrowse1ConnectionF(pluginManager)
|
|
16
|
-
}
|
|
17
|
-
}
|