@jbrowse/plugin-config 2.1.7 → 2.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/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/fromConfig.d.ts +2 -0
- package/dist/FromConfigAdapter/fromConfig.js +18 -0
- package/dist/FromConfigAdapter/fromConfig.js.map +1 -0
- package/dist/FromConfigAdapter/fromConfigRegions.d.ts +2 -0
- package/dist/FromConfigAdapter/fromConfigRegions.js +22 -0
- package/dist/FromConfigAdapter/fromConfigRegions.js.map +1 -0
- package/dist/FromConfigAdapter/fromConfigSequence.d.ts +2 -0
- package/dist/FromConfigAdapter/fromConfigSequence.js +18 -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 +16 -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/fromConfig.d.ts +2 -0
- package/esm/FromConfigAdapter/fromConfig.js +16 -0
- package/esm/FromConfigAdapter/fromConfig.js.map +1 -0
- package/esm/FromConfigAdapter/fromConfigRegions.d.ts +2 -0
- package/esm/FromConfigAdapter/fromConfigRegions.js +20 -0
- package/esm/FromConfigAdapter/fromConfigRegions.js.map +1 -0
- package/esm/FromConfigAdapter/fromConfigSequence.d.ts +2 -0
- package/esm/FromConfigAdapter/fromConfigSequence.js +16 -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 +16 -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.test.ts +1 -1
- 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/fromConfig.ts +22 -0
- package/src/FromConfigAdapter/fromConfigRegions.ts +24 -0
- package/src/FromConfigAdapter/fromConfigSequence.ts +21 -0
- package/src/FromConfigAdapter/index.ts +3 -5
- package/src/RefNameAliasAdapter/configSchema.ts +18 -1
- package/src/__snapshots__/index.test.js.snap +2 -2
- package/dist/FromConfigAdapter/configSchema.d.ts +0 -3
- package/dist/FromConfigAdapter/configSchema.js +0 -35
- package/dist/FromConfigAdapter/configSchema.js.map +0 -1
- package/esm/FromConfigAdapter/configSchema.d.ts +0 -3
- package/esm/FromConfigAdapter/configSchema.js +0 -32
- package/esm/FromConfigAdapter/configSchema.js.map +0 -1
- package/src/FromConfigAdapter/configSchema.ts +0 -46
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
{ explicitlyTyped: true, implicitIdentifier: 'adapterId' },
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
export default configSchema
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
{
|
|
20
|
+
explicitlyTyped: true,
|
|
21
|
+
implicitIdentifier: 'adapterId',
|
|
22
|
+
},
|
|
23
|
+
)
|
|
24
|
+
export default regionsConfigSchema
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
{ explicitlyTyped: true, implicitIdentifier: 'adapterId' },
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
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,18 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* #config RefNameAliasAdapter
|
|
5
|
+
* can read "chromAliases" type files from UCSC or any tab separated file of
|
|
6
|
+
* refName aliases
|
|
7
|
+
*/
|
|
8
|
+
function x() {} // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
9
|
+
|
|
10
|
+
const RefNameAliasAdapter = ConfigurationSchema(
|
|
4
11
|
'RefNameAliasAdapter',
|
|
5
12
|
{
|
|
13
|
+
/**
|
|
14
|
+
* #slot
|
|
15
|
+
*/
|
|
6
16
|
location: {
|
|
7
17
|
type: 'fileLocation',
|
|
8
18
|
defaultValue: {
|
|
@@ -10,6 +20,11 @@ export default ConfigurationSchema(
|
|
|
10
20
|
locationType: 'UriLocation',
|
|
11
21
|
},
|
|
12
22
|
},
|
|
23
|
+
/**
|
|
24
|
+
* #slot
|
|
25
|
+
* by default, the "ref names that match the fasta" are assumed to be in the
|
|
26
|
+
* first column (0), change this variable if needed
|
|
27
|
+
*/
|
|
13
28
|
refNameColumn: {
|
|
14
29
|
type: 'number',
|
|
15
30
|
defaultValue: 0,
|
|
@@ -17,3 +32,5 @@ export default ConfigurationSchema(
|
|
|
17
32
|
},
|
|
18
33
|
{ explicitlyTyped: true },
|
|
19
34
|
)
|
|
35
|
+
|
|
36
|
+
export default RefNameAliasAdapter
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Config editing adds config editor widget 1`] = `
|
|
3
|
+
exports[`Config editing adds config editor widget 1`] = `{}`;
|
|
4
4
|
|
|
5
5
|
exports[`Config editing creates proper FromConfigAdapter 1`] = `
|
|
6
|
-
|
|
6
|
+
{
|
|
7
7
|
"adapterId": "testFromConfigAdapterId",
|
|
8
8
|
"type": "FromConfigAdapter",
|
|
9
9
|
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const configSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
2
|
-
export declare const regionsConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
3
|
-
export declare const sequenceConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sequenceConfigSchema = exports.regionsConfigSchema = exports.configSchema = void 0;
|
|
4
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
|
-
exports.configSchema = (0, configuration_1.ConfigurationSchema)('FromConfigAdapter', {
|
|
6
|
-
features: {
|
|
7
|
-
type: 'frozen',
|
|
8
|
-
defaultValue: [],
|
|
9
|
-
},
|
|
10
|
-
featureClass: {
|
|
11
|
-
type: 'string',
|
|
12
|
-
defaultValue: 'SimpleFeature',
|
|
13
|
-
},
|
|
14
|
-
}, { explicitlyTyped: true, implicitIdentifier: 'adapterId' });
|
|
15
|
-
exports.regionsConfigSchema = (0, configuration_1.ConfigurationSchema)('FromConfigRegionsAdapter', {
|
|
16
|
-
features: {
|
|
17
|
-
type: 'frozen',
|
|
18
|
-
defaultValue: [],
|
|
19
|
-
},
|
|
20
|
-
featureClass: {
|
|
21
|
-
type: 'string',
|
|
22
|
-
defaultValue: 'SimpleFeature',
|
|
23
|
-
},
|
|
24
|
-
}, { explicitlyTyped: true, implicitIdentifier: 'adapterId' });
|
|
25
|
-
exports.sequenceConfigSchema = (0, configuration_1.ConfigurationSchema)('FromConfigSequenceAdapter', {
|
|
26
|
-
features: {
|
|
27
|
-
type: 'frozen',
|
|
28
|
-
defaultValue: [],
|
|
29
|
-
},
|
|
30
|
-
featureClass: {
|
|
31
|
-
type: 'string',
|
|
32
|
-
defaultValue: 'SimpleFeature',
|
|
33
|
-
},
|
|
34
|
-
}, { explicitlyTyped: true, implicitIdentifier: 'adapterId' });
|
|
35
|
-
//# sourceMappingURL=configSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/FromConfigAdapter/configSchema.ts"],"names":[],"mappings":";;;AAAA,+DAAiE;AAEpD,QAAA,YAAY,GAAG,IAAA,mCAAmB,EAC7C,mBAAmB,EACnB;IACE,QAAQ,EAAE;QACR,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,EAAE;KACjB;IACD,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,eAAe;KAC9B;CACF,EACD,EAAE,eAAe,EAAE,IAAI,EAAE,kBAAkB,EAAE,WAAW,EAAE,CAC3D,CAAA;AAEY,QAAA,mBAAmB,GAAG,IAAA,mCAAmB,EACpD,0BAA0B,EAC1B;IACE,QAAQ,EAAE;QACR,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,EAAE;KACjB;IACD,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,eAAe;KAC9B;CACF,EACD,EAAE,eAAe,EAAE,IAAI,EAAE,kBAAkB,EAAE,WAAW,EAAE,CAC3D,CAAA;AAEY,QAAA,oBAAoB,GAAG,IAAA,mCAAmB,EACrD,2BAA2B,EAC3B;IACE,QAAQ,EAAE;QACR,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,EAAE;KACjB;IACD,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,eAAe;KAC9B;CACF,EACD,EAAE,eAAe,EAAE,IAAI,EAAE,kBAAkB,EAAE,WAAW,EAAE,CAC3D,CAAA"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const configSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
2
|
-
export declare const regionsConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
3
|
-
export declare const sequenceConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
-
export const configSchema = ConfigurationSchema('FromConfigAdapter', {
|
|
3
|
-
features: {
|
|
4
|
-
type: 'frozen',
|
|
5
|
-
defaultValue: [],
|
|
6
|
-
},
|
|
7
|
-
featureClass: {
|
|
8
|
-
type: 'string',
|
|
9
|
-
defaultValue: 'SimpleFeature',
|
|
10
|
-
},
|
|
11
|
-
}, { explicitlyTyped: true, implicitIdentifier: 'adapterId' });
|
|
12
|
-
export const regionsConfigSchema = ConfigurationSchema('FromConfigRegionsAdapter', {
|
|
13
|
-
features: {
|
|
14
|
-
type: 'frozen',
|
|
15
|
-
defaultValue: [],
|
|
16
|
-
},
|
|
17
|
-
featureClass: {
|
|
18
|
-
type: 'string',
|
|
19
|
-
defaultValue: 'SimpleFeature',
|
|
20
|
-
},
|
|
21
|
-
}, { explicitlyTyped: true, implicitIdentifier: 'adapterId' });
|
|
22
|
-
export const sequenceConfigSchema = ConfigurationSchema('FromConfigSequenceAdapter', {
|
|
23
|
-
features: {
|
|
24
|
-
type: 'frozen',
|
|
25
|
-
defaultValue: [],
|
|
26
|
-
},
|
|
27
|
-
featureClass: {
|
|
28
|
-
type: 'string',
|
|
29
|
-
defaultValue: 'SimpleFeature',
|
|
30
|
-
},
|
|
31
|
-
}, { explicitlyTyped: true, implicitIdentifier: 'adapterId' });
|
|
32
|
-
//# sourceMappingURL=configSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/FromConfigAdapter/configSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAEjE,MAAM,CAAC,MAAM,YAAY,GAAG,mBAAmB,CAC7C,mBAAmB,EACnB;IACE,QAAQ,EAAE;QACR,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,EAAE;KACjB;IACD,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,eAAe;KAC9B;CACF,EACD,EAAE,eAAe,EAAE,IAAI,EAAE,kBAAkB,EAAE,WAAW,EAAE,CAC3D,CAAA;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG,mBAAmB,CACpD,0BAA0B,EAC1B;IACE,QAAQ,EAAE;QACR,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,EAAE;KACjB;IACD,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,eAAe;KAC9B;CACF,EACD,EAAE,eAAe,EAAE,IAAI,EAAE,kBAAkB,EAAE,WAAW,EAAE,CAC3D,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CACrD,2BAA2B,EAC3B;IACE,QAAQ,EAAE;QACR,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,EAAE;KACjB;IACD,YAAY,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,eAAe;KAC9B;CACF,EACD,EAAE,eAAe,EAAE,IAAI,EAAE,kBAAkB,EAAE,WAAW,EAAE,CAC3D,CAAA"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ConfigurationSchema } from '@jbrowse/core/configuration'
|
|
2
|
-
|
|
3
|
-
export const configSchema = ConfigurationSchema(
|
|
4
|
-
'FromConfigAdapter',
|
|
5
|
-
{
|
|
6
|
-
features: {
|
|
7
|
-
type: 'frozen',
|
|
8
|
-
defaultValue: [],
|
|
9
|
-
},
|
|
10
|
-
featureClass: {
|
|
11
|
-
type: 'string',
|
|
12
|
-
defaultValue: 'SimpleFeature',
|
|
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
|
-
},
|
|
40
|
-
featureClass: {
|
|
41
|
-
type: 'string',
|
|
42
|
-
defaultValue: 'SimpleFeature',
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
{ explicitlyTyped: true, implicitIdentifier: 'adapterId' },
|
|
46
|
-
)
|