@jbrowse/plugin-config 2.17.0 → 2.18.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/BooleanEditor.js +1 -1
- package/dist/ConfigurationEditorWidget/components/CallbackEditor.js +3 -8
- package/dist/ConfigurationEditorWidget/components/ColorEditor.js +2 -2
- package/dist/ConfigurationEditorWidget/components/ConfigurationEditor.d.ts +2 -2
- package/dist/ConfigurationEditorWidget/components/ConfigurationEditor.js +4 -11
- package/dist/ConfigurationEditorWidget/components/ConfigurationTextField.d.ts +1 -1
- package/dist/ConfigurationEditorWidget/components/ConfigurationTextField.js +1 -3
- package/dist/ConfigurationEditorWidget/components/JsonEditor.js +1 -3
- package/dist/ConfigurationEditorWidget/components/NumberMapEditor.js +3 -4
- package/dist/ConfigurationEditorWidget/components/SlotEditor.d.ts +1 -1
- package/dist/ConfigurationEditorWidget/components/SlotEditor.js +11 -16
- package/dist/ConfigurationEditorWidget/components/StringArrayEditor.js +2 -3
- package/dist/ConfigurationEditorWidget/components/StringArrayMapEditor.js +3 -5
- package/dist/ConfigurationEditorWidget/components/TypeSelector.d.ts +1 -1
- package/dist/ConfigurationEditorWidget/index.d.ts +1 -1
- package/dist/ConfigurationEditorWidget/index.js +1 -1
- package/dist/ConfigurationEditorWidget/model.d.ts +1 -1
- package/dist/ConfigurationEditorWidget/model.js +1 -3
- package/dist/FromConfigAdapter/FromConfigAdapter.d.ts +5 -5
- package/dist/FromConfigAdapter/FromConfigAdapter.js +3 -4
- package/dist/FromConfigAdapter/configSchema.d.ts +0 -3
- package/dist/FromConfigAdapter/configSchema.js +1 -7
- package/dist/FromConfigAdapter/index.d.ts +1 -1
- package/dist/FromConfigRegionsAdapter/FromConfigRegionsAdapter.d.ts +5 -12
- package/dist/FromConfigRegionsAdapter/FromConfigRegionsAdapter.js +2 -12
- package/dist/FromConfigRegionsAdapter/configSchema.d.ts +0 -3
- package/dist/FromConfigRegionsAdapter/configSchema.js +1 -8
- package/dist/FromConfigRegionsAdapter/index.d.ts +1 -1
- package/dist/FromConfigSequenceAdapter/FromConfigSequenceAdapter.d.ts +3 -16
- package/dist/FromConfigSequenceAdapter/FromConfigSequenceAdapter.js +3 -18
- package/dist/FromConfigSequenceAdapter/configSchema.d.ts +0 -3
- package/dist/FromConfigSequenceAdapter/configSchema.js +1 -7
- package/dist/FromConfigSequenceAdapter/index.d.ts +1 -1
- package/dist/NcbiSequenceReportAliasAdapter/NcbiSequenceReportAliasAdapter.d.ts +2 -1
- package/dist/NcbiSequenceReportAliasAdapter/configSchema.d.ts +0 -3
- package/dist/NcbiSequenceReportAliasAdapter/configSchema.js +1 -8
- package/dist/NcbiSequenceReportAliasAdapter/index.d.ts +1 -1
- package/dist/RefNameAliasAdapter/RefNameAliasAdapter.d.ts +2 -1
- package/dist/RefNameAliasAdapter/configSchema.d.ts +0 -8
- package/dist/RefNameAliasAdapter/configSchema.js +1 -14
- package/dist/RefNameAliasAdapter/index.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/esm/ConfigurationEditorWidget/components/BooleanEditor.js +1 -1
- package/esm/ConfigurationEditorWidget/components/CallbackEditor.js +3 -8
- package/esm/ConfigurationEditorWidget/components/ColorEditor.js +2 -2
- package/esm/ConfigurationEditorWidget/components/ConfigurationEditor.d.ts +2 -2
- package/esm/ConfigurationEditorWidget/components/ConfigurationEditor.js +5 -12
- package/esm/ConfigurationEditorWidget/components/ConfigurationTextField.d.ts +1 -1
- package/esm/ConfigurationEditorWidget/components/ConfigurationTextField.js +1 -3
- package/esm/ConfigurationEditorWidget/components/HeadingComponent.js +1 -1
- package/esm/ConfigurationEditorWidget/components/JsonEditor.js +1 -3
- package/esm/ConfigurationEditorWidget/components/NumberMapEditor.js +3 -4
- package/esm/ConfigurationEditorWidget/components/SlotEditor.d.ts +1 -1
- package/esm/ConfigurationEditorWidget/components/SlotEditor.js +12 -17
- package/esm/ConfigurationEditorWidget/components/StringArrayEditor.js +2 -3
- package/esm/ConfigurationEditorWidget/components/StringArrayMapEditor.js +3 -5
- package/esm/ConfigurationEditorWidget/components/TypeSelector.d.ts +1 -1
- package/esm/ConfigurationEditorWidget/index.d.ts +1 -1
- package/esm/ConfigurationEditorWidget/index.js +1 -1
- package/esm/ConfigurationEditorWidget/model.d.ts +1 -1
- package/esm/ConfigurationEditorWidget/model.js +1 -3
- package/esm/FromConfigAdapter/FromConfigAdapter.d.ts +5 -5
- package/esm/FromConfigAdapter/FromConfigAdapter.js +3 -4
- package/esm/FromConfigAdapter/configSchema.d.ts +0 -3
- package/esm/FromConfigAdapter/configSchema.js +1 -7
- package/esm/FromConfigAdapter/index.d.ts +1 -1
- package/esm/FromConfigRegionsAdapter/FromConfigRegionsAdapter.d.ts +5 -12
- package/esm/FromConfigRegionsAdapter/FromConfigRegionsAdapter.js +3 -13
- package/esm/FromConfigRegionsAdapter/configSchema.d.ts +0 -3
- package/esm/FromConfigRegionsAdapter/configSchema.js +1 -8
- package/esm/FromConfigRegionsAdapter/index.d.ts +1 -1
- package/esm/FromConfigSequenceAdapter/FromConfigSequenceAdapter.d.ts +3 -16
- package/esm/FromConfigSequenceAdapter/FromConfigSequenceAdapter.js +3 -18
- package/esm/FromConfigSequenceAdapter/configSchema.d.ts +0 -3
- package/esm/FromConfigSequenceAdapter/configSchema.js +1 -7
- package/esm/FromConfigSequenceAdapter/index.d.ts +1 -1
- package/esm/NcbiSequenceReportAliasAdapter/NcbiSequenceReportAliasAdapter.d.ts +2 -1
- package/esm/NcbiSequenceReportAliasAdapter/NcbiSequenceReportAliasAdapter.js +1 -1
- package/esm/NcbiSequenceReportAliasAdapter/configSchema.d.ts +0 -3
- package/esm/NcbiSequenceReportAliasAdapter/configSchema.js +1 -8
- package/esm/NcbiSequenceReportAliasAdapter/index.d.ts +1 -1
- package/esm/RefNameAliasAdapter/RefNameAliasAdapter.d.ts +2 -1
- package/esm/RefNameAliasAdapter/RefNameAliasAdapter.js +1 -1
- package/esm/RefNameAliasAdapter/configSchema.d.ts +0 -8
- package/esm/RefNameAliasAdapter/configSchema.js +1 -14
- package/esm/RefNameAliasAdapter/index.d.ts +1 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.js +2 -2
- package/package.json +2 -2
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import SimpleFeature from '@jbrowse/core/util/simpleFeature';
|
|
2
1
|
import { ObservableCreate } from '@jbrowse/core/util/rxjs';
|
|
2
|
+
import SimpleFeature from '@jbrowse/core/util/simpleFeature';
|
|
3
|
+
import { firstValueFrom } from 'rxjs';
|
|
3
4
|
import { toArray } from 'rxjs/operators';
|
|
4
|
-
// locals
|
|
5
5
|
import FromConfigAdapter from '../FromConfigAdapter/FromConfigAdapter';
|
|
6
|
-
import { firstValueFrom } from 'rxjs';
|
|
7
6
|
export default class FromConfigSequenceAdapter extends FromConfigAdapter {
|
|
8
|
-
/**
|
|
9
|
-
* Fetch features for a certain region
|
|
10
|
-
* @param region - Region
|
|
11
|
-
* @returns Observable of Feature objects in the region
|
|
12
|
-
*/
|
|
13
7
|
getFeatures(region) {
|
|
14
8
|
return ObservableCreate(async (observer) => {
|
|
15
9
|
const feats = await firstValueFrom(super.getFeatures(region).pipe(toArray()));
|
|
@@ -26,12 +20,8 @@ export default class FromConfigSequenceAdapter extends FromConfigAdapter {
|
|
|
26
20
|
observer.complete();
|
|
27
21
|
});
|
|
28
22
|
}
|
|
29
|
-
/**
|
|
30
|
-
* Get refName, start, and end for all features after collapsing any overlaps
|
|
31
|
-
*/
|
|
32
23
|
async getRegions() {
|
|
33
24
|
const regions = [];
|
|
34
|
-
// recall: features are stored in this object sorted by start coordinate
|
|
35
25
|
for (const [refName, features] of this.features) {
|
|
36
26
|
let currentRegion;
|
|
37
27
|
for (const feature of features) {
|
|
@@ -57,10 +47,5 @@ export default class FromConfigSequenceAdapter extends FromConfigAdapter {
|
|
|
57
47
|
}
|
|
58
48
|
return regions;
|
|
59
49
|
}
|
|
60
|
-
|
|
61
|
-
* called to provide a hint that data tied to a certain region
|
|
62
|
-
* will not be needed for the foreseeable future and can be purged
|
|
63
|
-
* from caches, etc
|
|
64
|
-
*/
|
|
65
|
-
freeResources( /* { region } */) { }
|
|
50
|
+
freeResources() { }
|
|
66
51
|
}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
-
|
|
3
|
-
* #config FromConfigSequenceAdapter
|
|
4
|
-
*/
|
|
5
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
2
|
+
function x() { }
|
|
6
3
|
const sequenceConfigSchema = ConfigurationSchema('FromConfigSequenceAdapter', {
|
|
7
|
-
/**
|
|
8
|
-
* #slot
|
|
9
|
-
*/
|
|
10
4
|
features: {
|
|
11
5
|
type: 'frozen',
|
|
12
6
|
defaultValue: [],
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function FromConfigSequenceAdapterF(pluginManager: PluginManager): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
|
+
import type { BaseRefNameAliasAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
3
|
export default class NcbiSequenceReportAliasAdapter extends BaseAdapter implements BaseRefNameAliasAdapter {
|
|
3
4
|
getRefNameAliases(): Promise<{
|
|
4
5
|
refName: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseAdapter
|
|
1
|
+
import { BaseAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
2
|
import { openLocation } from '@jbrowse/core/util/io';
|
|
3
3
|
export default class NcbiSequenceReportAliasAdapter extends BaseAdapter {
|
|
4
4
|
async getRefNameAliases() {
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
-
|
|
3
|
-
* #config NcbiSequenceReportAliasAdapter
|
|
4
|
-
* can read "sequence_report.tsv" type files from NCBI
|
|
5
|
-
*/
|
|
6
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
2
|
+
function x() { }
|
|
7
3
|
const NcbiSequenceReportAliasAdapterConfigSchema = ConfigurationSchema('NcbiSequenceReportAliasAdapter', {
|
|
8
|
-
/**
|
|
9
|
-
* #slot
|
|
10
|
-
*/
|
|
11
4
|
location: {
|
|
12
5
|
type: 'fileLocation',
|
|
13
6
|
defaultValue: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function NcbiSequenceReportAliasAdapterF(pluginManager: PluginManager): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
|
+
import type { BaseRefNameAliasAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
3
|
export default class RefNameAliasAdapter extends BaseAdapter implements BaseRefNameAliasAdapter {
|
|
3
4
|
getRefNameAliases(): Promise<{
|
|
4
5
|
refName: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseAdapter
|
|
1
|
+
import { BaseAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
2
|
import { openLocation } from '@jbrowse/core/util/io';
|
|
3
3
|
export default class RefNameAliasAdapter extends BaseAdapter {
|
|
4
4
|
async getRefNameAliases() {
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
declare const RefNameAliasAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
-
/**
|
|
3
|
-
* #slot
|
|
4
|
-
*/
|
|
5
2
|
location: {
|
|
6
3
|
type: string;
|
|
7
4
|
defaultValue: {
|
|
@@ -9,11 +6,6 @@ declare const RefNameAliasAdapter: import("@jbrowse/core/configuration/configura
|
|
|
9
6
|
locationType: string;
|
|
10
7
|
};
|
|
11
8
|
};
|
|
12
|
-
/**
|
|
13
|
-
* #slot
|
|
14
|
-
* by default, the "ref names that match the fasta" are assumed to be in the
|
|
15
|
-
* first column (0), change this variable if needed
|
|
16
|
-
*/
|
|
17
9
|
refNameColumn: {
|
|
18
10
|
type: string;
|
|
19
11
|
defaultValue: number;
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
-
|
|
3
|
-
* #config RefNameAliasAdapter
|
|
4
|
-
* can read "chromAliases" type files from UCSC or any tab separated file of
|
|
5
|
-
* refName aliases
|
|
6
|
-
*/
|
|
7
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
2
|
+
function x() { }
|
|
8
3
|
const RefNameAliasAdapter = ConfigurationSchema('RefNameAliasAdapter', {
|
|
9
|
-
/**
|
|
10
|
-
* #slot
|
|
11
|
-
*/
|
|
12
4
|
location: {
|
|
13
5
|
type: 'fileLocation',
|
|
14
6
|
defaultValue: {
|
|
@@ -16,11 +8,6 @@ const RefNameAliasAdapter = ConfigurationSchema('RefNameAliasAdapter', {
|
|
|
16
8
|
locationType: 'UriLocation',
|
|
17
9
|
},
|
|
18
10
|
},
|
|
19
|
-
/**
|
|
20
|
-
* #slot
|
|
21
|
-
* by default, the "ref names that match the fasta" are assumed to be in the
|
|
22
|
-
* first column (0), change this variable if needed
|
|
23
|
-
*/
|
|
24
11
|
refNameColumn: {
|
|
25
12
|
type: 'number',
|
|
26
13
|
defaultValue: 0,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function RefNameAliasAdapterF(pluginManager: PluginManager): void;
|
package/esm/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Plugin from '@jbrowse/core/Plugin';
|
|
2
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
3
3
|
declare const LazyConfigurationEditorComponent: import("react").LazyExoticComponent<({ model, }: {
|
|
4
4
|
model: {
|
|
5
5
|
target: import("@jbrowse/core/configuration").AnyConfigurationModel;
|
package/esm/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { lazy } from 'react';
|
|
2
2
|
import Plugin from '@jbrowse/core/Plugin';
|
|
3
|
+
import ConfigurationEditorWidgetF from './ConfigurationEditorWidget';
|
|
3
4
|
import FromConfigAdapterF from './FromConfigAdapter';
|
|
4
5
|
import FromConfigRegionsAdapterF from './FromConfigRegionsAdapter';
|
|
5
6
|
import FromConfigSequenceAdapterF from './FromConfigSequenceAdapter';
|
|
6
|
-
import RefNameAliasAdapterF from './RefNameAliasAdapter';
|
|
7
|
-
import ConfigurationEditorWidgetF from './ConfigurationEditorWidget';
|
|
8
7
|
import NcbiSequenceReportAliasAdapterF from './NcbiSequenceReportAliasAdapter';
|
|
8
|
+
import RefNameAliasAdapterF from './RefNameAliasAdapter';
|
|
9
9
|
const LazyConfigurationEditorComponent = lazy(() => import('./ConfigurationEditorWidget/components/ConfigurationEditor'));
|
|
10
10
|
export default class ConfigurationPlugin extends Plugin {
|
|
11
11
|
constructor() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.18.0",
|
|
4
4
|
"description": "JBrowse 2 config utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"distModule": "esm/index.js",
|
|
57
57
|
"srcModule": "src/index.ts",
|
|
58
58
|
"module": "esm/index.js",
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "c344ea60099cb7e460b77f15808946b24a7eee74"
|
|
60
60
|
}
|