@jbrowse/plugin-config 2.1.7 → 2.2.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.
- package/dist/ConfigurationEditorWidget/components/SlotEditor.d.ts +2 -2
- package/dist/FromConfigAdapter/FromConfigAdapter.d.ts +1 -1
- package/dist/FromConfigAdapter/FromConfigAdapter.js.map +1 -1
- package/dist/FromConfigAdapter/FromConfigRegionsAdapter.d.ts +2 -3
- package/dist/FromConfigAdapter/FromConfigRegionsAdapter.js.map +1 -1
- package/dist/FromConfigAdapter/configSchema.d.ts +0 -2
- package/dist/FromConfigAdapter/configSchema.js +11 -21
- package/dist/FromConfigAdapter/configSchema.js.map +1 -1
- package/dist/FromConfigAdapter/fromConfig.d.ts +2 -0
- package/dist/FromConfigAdapter/fromConfig.js +25 -0
- package/dist/FromConfigAdapter/fromConfig.js.map +1 -0
- package/dist/FromConfigAdapter/fromConfigRegions.d.ts +2 -0
- package/dist/FromConfigAdapter/fromConfigRegions.js +29 -0
- package/dist/FromConfigAdapter/fromConfigRegions.js.map +1 -0
- package/dist/FromConfigAdapter/fromConfigSequence.d.ts +2 -0
- package/dist/FromConfigAdapter/fromConfigSequence.js +25 -0
- package/dist/FromConfigAdapter/fromConfigSequence.js.map +1 -0
- package/dist/FromConfigAdapter/index.d.ts +3 -1
- package/dist/FromConfigAdapter/index.js +6 -4
- package/dist/FromConfigAdapter/index.js.map +1 -1
- package/dist/RefNameAliasAdapter/configSchema.d.ts +2 -2
- package/dist/RefNameAliasAdapter/configSchema.js +12 -1
- package/dist/RefNameAliasAdapter/configSchema.js.map +1 -1
- package/esm/ConfigurationEditorWidget/components/SlotEditor.d.ts +2 -2
- package/esm/FromConfigAdapter/FromConfigAdapter.d.ts +1 -1
- package/esm/FromConfigAdapter/FromConfigAdapter.js +1 -1
- package/esm/FromConfigAdapter/FromConfigAdapter.js.map +1 -1
- package/esm/FromConfigAdapter/FromConfigRegionsAdapter.d.ts +2 -3
- package/esm/FromConfigAdapter/FromConfigRegionsAdapter.js +1 -1
- package/esm/FromConfigAdapter/FromConfigRegionsAdapter.js.map +1 -1
- package/esm/FromConfigAdapter/configSchema.d.ts +0 -2
- package/esm/FromConfigAdapter/configSchema.js +10 -20
- package/esm/FromConfigAdapter/configSchema.js.map +1 -1
- package/esm/FromConfigAdapter/fromConfig.d.ts +2 -0
- package/esm/FromConfigAdapter/fromConfig.js +23 -0
- package/esm/FromConfigAdapter/fromConfig.js.map +1 -0
- package/esm/FromConfigAdapter/fromConfigRegions.d.ts +2 -0
- package/esm/FromConfigAdapter/fromConfigRegions.js +27 -0
- package/esm/FromConfigAdapter/fromConfigRegions.js.map +1 -0
- package/esm/FromConfigAdapter/fromConfigSequence.d.ts +2 -0
- package/esm/FromConfigAdapter/fromConfigSequence.js +23 -0
- package/esm/FromConfigAdapter/fromConfigSequence.js.map +1 -0
- package/esm/FromConfigAdapter/index.d.ts +3 -1
- package/esm/FromConfigAdapter/index.js +3 -1
- package/esm/FromConfigAdapter/index.js.map +1 -1
- package/esm/RefNameAliasAdapter/configSchema.d.ts +2 -2
- package/esm/RefNameAliasAdapter/configSchema.js +12 -1
- package/esm/RefNameAliasAdapter/configSchema.js.map +1 -1
- package/package.json +2 -2
- package/src/ConfigurationEditorWidget/components/__snapshots__/ConfigurationEditor.test.tsx.snap +89 -89
- package/src/FromConfigAdapter/FromConfigAdapter.ts +4 -2
- package/src/FromConfigAdapter/FromConfigRegionsAdapter.test.ts +1 -1
- package/src/FromConfigAdapter/FromConfigRegionsAdapter.ts +5 -4
- package/src/FromConfigAdapter/FromConfigSequenceAdapter.test.ts +2 -1
- package/src/FromConfigAdapter/configSchema.ts +11 -30
- package/src/FromConfigAdapter/fromConfig.ts +29 -0
- package/src/FromConfigAdapter/fromConfigRegions.ts +31 -0
- package/src/FromConfigAdapter/fromConfigSequence.ts +28 -0
- package/src/FromConfigAdapter/index.ts +3 -5
- package/src/RefNameAliasAdapter/configSchema.ts +14 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { toArray } from 'rxjs/operators'
|
|
2
2
|
import Adapter from './FromConfigSequenceAdapter'
|
|
3
|
-
import
|
|
3
|
+
import sequenceConfigSchema from './fromConfigSequence'
|
|
4
|
+
|
|
4
5
|
test('adapter can fetch sequences when there is just one feature representing whole refseq', async () => {
|
|
5
6
|
const features = [
|
|
6
7
|
{
|
|
@@ -1,42 +1,23 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* #config FromConfigAdapter
|
|
5
|
+
*/
|
|
6
|
+
function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
7
|
+
|
|
3
8
|
export const configSchema = ConfigurationSchema(
|
|
4
9
|
'FromConfigAdapter',
|
|
5
10
|
{
|
|
11
|
+
/**
|
|
12
|
+
* #slot
|
|
13
|
+
*/
|
|
6
14
|
features: {
|
|
7
15
|
type: 'frozen',
|
|
8
16
|
defaultValue: [],
|
|
9
17
|
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
{ explicitlyTyped: true, implicitIdentifier: 'adapterId' },
|
|
16
|
-
)
|
|
17
|
-
|
|
18
|
-
export const regionsConfigSchema = ConfigurationSchema(
|
|
19
|
-
'FromConfigRegionsAdapter',
|
|
20
|
-
{
|
|
21
|
-
features: {
|
|
22
|
-
type: 'frozen',
|
|
23
|
-
defaultValue: [],
|
|
24
|
-
},
|
|
25
|
-
featureClass: {
|
|
26
|
-
type: 'string',
|
|
27
|
-
defaultValue: 'SimpleFeature',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
{ explicitlyTyped: true, implicitIdentifier: 'adapterId' },
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
export const sequenceConfigSchema = ConfigurationSchema(
|
|
34
|
-
'FromConfigSequenceAdapter',
|
|
35
|
-
{
|
|
36
|
-
features: {
|
|
37
|
-
type: 'frozen',
|
|
38
|
-
defaultValue: [],
|
|
39
|
-
},
|
|
18
|
+
/**
|
|
19
|
+
* #slot
|
|
20
|
+
*/
|
|
40
21
|
featureClass: {
|
|
41
22
|
type: 'string',
|
|
42
23
|
defaultValue: 'SimpleFeature',
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* #config FromConfigAdapter
|
|
5
|
+
*/
|
|
6
|
+
function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
7
|
+
|
|
8
|
+
const configSchema = ConfigurationSchema(
|
|
9
|
+
'FromConfigAdapter',
|
|
10
|
+
{
|
|
11
|
+
/**
|
|
12
|
+
* #slot
|
|
13
|
+
*/
|
|
14
|
+
features: {
|
|
15
|
+
type: 'frozen',
|
|
16
|
+
defaultValue: [],
|
|
17
|
+
},
|
|
18
|
+
/**
|
|
19
|
+
* #slot
|
|
20
|
+
*/
|
|
21
|
+
featureClass: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
defaultValue: 'SimpleFeature',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
{ explicitlyTyped: true, implicitIdentifier: 'adapterId' },
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
export default configSchema
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
2
|
+
/**
|
|
3
|
+
* #config FromConfigRegionsAdapter
|
|
4
|
+
* used for specifying refNames+sizes of an assembly
|
|
5
|
+
*/
|
|
6
|
+
function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
7
|
+
|
|
8
|
+
const regionsConfigSchema = ConfigurationSchema(
|
|
9
|
+
'FromConfigRegionsAdapter',
|
|
10
|
+
{
|
|
11
|
+
/**
|
|
12
|
+
* #slot
|
|
13
|
+
*/
|
|
14
|
+
features: {
|
|
15
|
+
type: 'frozen',
|
|
16
|
+
defaultValue: [],
|
|
17
|
+
},
|
|
18
|
+
/**
|
|
19
|
+
* #slot
|
|
20
|
+
*/
|
|
21
|
+
featureClass: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
defaultValue: 'SimpleFeature',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
explicitlyTyped: true,
|
|
28
|
+
implicitIdentifier: 'adapterId',
|
|
29
|
+
},
|
|
30
|
+
)
|
|
31
|
+
export default regionsConfigSchema
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
2
|
+
/**
|
|
3
|
+
* #config FromConfigSequenceAdapter
|
|
4
|
+
*/
|
|
5
|
+
function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
6
|
+
|
|
7
|
+
const sequenceConfigSchema = ConfigurationSchema(
|
|
8
|
+
'FromConfigSequenceAdapter',
|
|
9
|
+
{
|
|
10
|
+
/**
|
|
11
|
+
* #slot
|
|
12
|
+
*/
|
|
13
|
+
features: {
|
|
14
|
+
type: 'frozen',
|
|
15
|
+
defaultValue: [],
|
|
16
|
+
},
|
|
17
|
+
/**
|
|
18
|
+
* #slot
|
|
19
|
+
*/
|
|
20
|
+
featureClass: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
defaultValue: 'SimpleFeature',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
{ explicitlyTyped: true, implicitIdentifier: 'adapterId' },
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
export default sequenceConfigSchema
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export { default as AdapterClass } from './FromConfigAdapter'
|
|
2
2
|
export { default as RegionsAdapterClass } from './FromConfigRegionsAdapter'
|
|
3
3
|
export { default as SequenceAdapterClass } from './FromConfigSequenceAdapter'
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
sequenceConfigSchema,
|
|
8
|
-
} from './configSchema'
|
|
4
|
+
export { default as configSchema } from './fromConfig'
|
|
5
|
+
export { default as regionsConfigSchema } from './fromConfig'
|
|
6
|
+
export { default as sequenceConfigSchema } from './fromConfigSequence'
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* #config RefNameAliasAdapter
|
|
5
|
+
*/
|
|
6
|
+
function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
7
|
+
|
|
8
|
+
const RefNameAliasAdapter = ConfigurationSchema(
|
|
4
9
|
'RefNameAliasAdapter',
|
|
5
10
|
{
|
|
11
|
+
/**
|
|
12
|
+
* #slot
|
|
13
|
+
*/
|
|
6
14
|
location: {
|
|
7
15
|
type: 'fileLocation',
|
|
8
16
|
defaultValue: {
|
|
@@ -10,6 +18,9 @@ export default ConfigurationSchema(
|
|
|
10
18
|
locationType: 'UriLocation',
|
|
11
19
|
},
|
|
12
20
|
},
|
|
21
|
+
/**
|
|
22
|
+
* #slot
|
|
23
|
+
*/
|
|
13
24
|
refNameColumn: {
|
|
14
25
|
type: 'number',
|
|
15
26
|
defaultValue: 0,
|
|
@@ -17,3 +28,5 @@ export default ConfigurationSchema(
|
|
|
17
28
|
},
|
|
18
29
|
{ explicitlyTyped: true },
|
|
19
30
|
)
|
|
31
|
+
|
|
32
|
+
export default RefNameAliasAdapter
|