@jbrowse/plugin-legacy-jbrowse 1.7.0 → 1.7.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.
@@ -1,31 +1,31 @@
1
- import { Region } from '@jbrowse/core/util/types';
2
- import { BaseFeatureDataAdapter, BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter';
3
- import { Feature } from '@jbrowse/core/util/simpleFeature';
4
- import { Instance } from 'mobx-state-tree';
5
- import NCListFeature from './NCListFeature';
6
- import MyConfigSchema from './configSchema';
7
- import PluginManager from '@jbrowse/core/PluginManager';
8
- import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
9
- export default class NCListAdapter extends BaseFeatureDataAdapter {
10
- private nclist;
11
- private configRefNames?;
12
- constructor(config: Instance<typeof MyConfigSchema>, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
13
- /**
14
- * Fetch features for a certain region. Use getFeaturesInRegion() if you also
15
- * want to verify that the store has features for the given reference sequence
16
- * before fetching.
17
- * @param region -
18
- * @param opts - [signal] optional signalling object for aborting the fetch
19
- * @returns Observable of Feature objects in the region
20
- */
21
- getFeatures(region: Region, opts?: BaseOptions): import("rxjs").Observable<Feature>;
22
- wrapFeature(ncFeature: any): NCListFeature;
23
- hasDataForRefName(refName: string): Promise<boolean>;
24
- getRefNames(): Promise<string[]>;
25
- /**
26
- * called to provide a hint that data tied to a certain region
27
- * will not be needed for the forseeable future and can be purged
28
- * from caches, etc
29
- */
30
- freeResources(): void;
31
- }
1
+ import { Region } from '@jbrowse/core/util/types';
2
+ import { BaseFeatureDataAdapter, BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter';
3
+ import { Feature } from '@jbrowse/core/util/simpleFeature';
4
+ import { Instance } from 'mobx-state-tree';
5
+ import NCListFeature from './NCListFeature';
6
+ import MyConfigSchema from './configSchema';
7
+ import PluginManager from '@jbrowse/core/PluginManager';
8
+ import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
9
+ export default class NCListAdapter extends BaseFeatureDataAdapter {
10
+ private nclist;
11
+ private configRefNames?;
12
+ constructor(config: Instance<typeof MyConfigSchema>, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
13
+ /**
14
+ * Fetch features for a certain region. Use getFeaturesInRegion() if you also
15
+ * want to verify that the store has features for the given reference sequence
16
+ * before fetching.
17
+ * @param region -
18
+ * @param opts - [signal] optional signalling object for aborting the fetch
19
+ * @returns Observable of Feature objects in the region
20
+ */
21
+ getFeatures(region: Region, opts?: BaseOptions): import("rxjs").Observable<Feature>;
22
+ wrapFeature(ncFeature: any): NCListFeature;
23
+ hasDataForRefName(refName: string): Promise<boolean>;
24
+ getRefNames(): Promise<string[]>;
25
+ /**
26
+ * called to provide a hint that data tied to a certain region
27
+ * will not be needed for the forseeable future and can be purged
28
+ * from caches, etc
29
+ */
30
+ freeResources(): void;
31
+ }
@@ -1,31 +1,31 @@
1
- import { Feature, SimpleFeatureSerialized } from '@jbrowse/core/util/simpleFeature';
2
- /**
3
- * wrapper to adapt nclist features to act like jbrowse 2 features
4
- */
5
- export default class NCListFeature implements Feature {
6
- private ncFeature;
7
- private parentHandle?;
8
- private uniqueId;
9
- constructor(ncFeature: any, parent?: Feature, id?: string);
10
- set(): void;
11
- jb2TagToJb1Tag(tag: string): string;
12
- jb1TagToJb2Tag(tag: string): string;
13
- get(attrName: string): any;
14
- /**
15
- * Get an array listing which data keys are present in this feature.
16
- */
17
- tags(): string[];
18
- /**
19
- * Get the unique ID of this feature.
20
- */
21
- id(): string;
22
- /**
23
- * Get this feature's parent feature, or undefined if none.
24
- */
25
- parent(): Feature | undefined;
26
- /**
27
- * Get an array of child features, or undefined if none.
28
- */
29
- children(): Feature[] | undefined;
30
- toJSON(): SimpleFeatureSerialized;
31
- }
1
+ import { Feature, SimpleFeatureSerialized } from '@jbrowse/core/util/simpleFeature';
2
+ /**
3
+ * wrapper to adapt nclist features to act like jbrowse 2 features
4
+ */
5
+ export default class NCListFeature implements Feature {
6
+ private ncFeature;
7
+ private parentHandle?;
8
+ private uniqueId;
9
+ constructor(ncFeature: any, parent?: Feature, id?: string);
10
+ set(): void;
11
+ jb2TagToJb1Tag(tag: string): string;
12
+ jb1TagToJb2Tag(tag: string): string;
13
+ get(attrName: string): any;
14
+ /**
15
+ * Get an array listing which data keys are present in this feature.
16
+ */
17
+ tags(): string[];
18
+ /**
19
+ * Get the unique ID of this feature.
20
+ */
21
+ id(): string;
22
+ /**
23
+ * Get this feature's parent feature, or undefined if none.
24
+ */
25
+ parent(): Feature | undefined;
26
+ /**
27
+ * Get an array of child features, or undefined if none.
28
+ */
29
+ children(): Feature[] | undefined;
30
+ toJSON(): SimpleFeatureSerialized;
31
+ }
@@ -1,2 +1,2 @@
1
- declare const _default: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
2
- export default _default;
1
+ declare const _default: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
2
+ export default _default;
@@ -1 +1 @@
1
- export { default as configSchema } from './configSchema';
1
+ export { default as configSchema } from './configSchema';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import Plugin from '@jbrowse/core/Plugin';
2
- import PluginManager from '@jbrowse/core/PluginManager';
3
- export default class LegacyJBrowsePlugin extends Plugin {
4
- name: string;
5
- install(pluginManager: PluginManager): void;
6
- }
1
+ import Plugin from '@jbrowse/core/Plugin';
2
+ import PluginManager from '@jbrowse/core/PluginManager';
3
+ export default class LegacyJBrowsePlugin extends Plugin {
4
+ name: string;
5
+ install(pluginManager: PluginManager): void;
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-legacy-jbrowse",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "JBrowse 2 plugin for connecting to and reading JBrowse 1 data",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -29,7 +29,8 @@
29
29
  "prepack": "yarn build; yarn useDist",
30
30
  "postpack": "yarn useSrc",
31
31
  "useDist": "node ../../scripts/useDist.js",
32
- "useSrc": "node ../../scripts/useSrc.js"
32
+ "useSrc": "node ../../scripts/useSrc.js",
33
+ "postbuild": "tsc --build tsconfig.build.json"
33
34
  },
34
35
  "dependencies": {
35
36
  "@gmod/nclist": "^0.2.1",
@@ -46,5 +47,5 @@
46
47
  "publishConfig": {
47
48
  "access": "public"
48
49
  },
49
- "gitHead": "cc13844074d11881d211342a6a7eea113561b70b"
50
+ "gitHead": "6da232090c90f22ac96fd464c33082c89b8da14b"
50
51
  }
@@ -1 +0,0 @@
1
- export {};