@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.
- package/dist/JBrowse1Connection/configSchema.d.ts +2 -2
- package/dist/JBrowse1Connection/index.d.ts +2 -2
- package/dist/JBrowse1Connection/jb1ConfigLoad.d.ts +36 -36
- package/dist/JBrowse1Connection/jb1ConfigParse.d.ts +11 -11
- package/dist/JBrowse1Connection/jb1ToJb2.d.ts +47 -47
- package/dist/JBrowse1Connection/model.d.ts +15 -4
- package/dist/JBrowse1Connection/types.d.ts +91 -91
- package/dist/JBrowse1Connection/util.d.ts +26 -26
- package/dist/JBrowse1TextSeachAdapter/HttpMap.d.ts +39 -39
- package/dist/JBrowse1TextSeachAdapter/JBrowse1TextSearchAdapter.d.ts +33 -33
- package/dist/JBrowse1TextSeachAdapter/configSchema.d.ts +2 -2
- package/dist/JBrowse1TextSeachAdapter/index.d.ts +2 -2
- package/dist/NCListAdapter/NCListAdapter.d.ts +31 -31
- package/dist/NCListAdapter/NCListFeature.d.ts +31 -31
- package/dist/NCListAdapter/configSchema.d.ts +2 -2
- package/dist/NCListAdapter/index.d.ts +1 -1
- package/dist/index.d.ts +6 -6
- package/package.json +4 -3
- package/dist/index.test.d.ts +0 -1
- package/dist/plugin-legacy-jbrowse.cjs.development.js +0 -3567
- package/dist/plugin-legacy-jbrowse.cjs.development.js.map +0 -1
- package/dist/plugin-legacy-jbrowse.cjs.production.min.js +0 -2
- package/dist/plugin-legacy-jbrowse.cjs.production.min.js.map +0 -1
- package/dist/plugin-legacy-jbrowse.esm.js +0 -3561
- package/dist/plugin-legacy-jbrowse.esm.js.map +0 -1
|
@@ -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,2 +1,2 @@
|
|
|
1
|
-
export { default as modelFactory } from './model';
|
|
2
|
-
export { default as configSchema } from './configSchema';
|
|
1
|
+
export { default as modelFactory } from './model';
|
|
2
|
+
export { default as configSchema } from './configSchema';
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { JBLocation, Config } from './types';
|
|
2
|
-
export declare function fetchJb1(dataRoot?: JBLocation, baseConfig?: Config, baseConfigRoot?: JBLocation): Promise<Config>;
|
|
3
|
-
export declare function createFinalConfig(baseConfig: Config, defaults?: {
|
|
4
|
-
tracks: never[];
|
|
5
|
-
containerID: string;
|
|
6
|
-
dataRoot: string;
|
|
7
|
-
show_tracklist: boolean;
|
|
8
|
-
show_nav: boolean;
|
|
9
|
-
show_menu: boolean;
|
|
10
|
-
show_overview: boolean;
|
|
11
|
-
show_fullviewlink: boolean;
|
|
12
|
-
update_browser_title: boolean;
|
|
13
|
-
updateBrowserURL: boolean;
|
|
14
|
-
refSeqs: string;
|
|
15
|
-
include: string[];
|
|
16
|
-
nameUrl: string;
|
|
17
|
-
datasets: {
|
|
18
|
-
_DEFAULT_EXAMPLES: boolean;
|
|
19
|
-
volvox: {
|
|
20
|
-
url: string;
|
|
21
|
-
name: string;
|
|
22
|
-
};
|
|
23
|
-
modencode: {
|
|
24
|
-
url: string;
|
|
25
|
-
name: string;
|
|
26
|
-
};
|
|
27
|
-
yeast: {
|
|
28
|
-
url: string;
|
|
29
|
-
name: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
highlightSearchedRegions: boolean;
|
|
33
|
-
highResolutionMode: string;
|
|
34
|
-
}): Promise<Config>;
|
|
35
|
-
export declare function fetchConfigFile(location: JBLocation): Promise<Config>;
|
|
36
|
-
export declare function parseJb1(config: string, url?: string): Config;
|
|
1
|
+
import { JBLocation, Config } from './types';
|
|
2
|
+
export declare function fetchJb1(dataRoot?: JBLocation, baseConfig?: Config, baseConfigRoot?: JBLocation): Promise<Config>;
|
|
3
|
+
export declare function createFinalConfig(baseConfig: Config, defaults?: {
|
|
4
|
+
tracks: never[];
|
|
5
|
+
containerID: string;
|
|
6
|
+
dataRoot: string;
|
|
7
|
+
show_tracklist: boolean;
|
|
8
|
+
show_nav: boolean;
|
|
9
|
+
show_menu: boolean;
|
|
10
|
+
show_overview: boolean;
|
|
11
|
+
show_fullviewlink: boolean;
|
|
12
|
+
update_browser_title: boolean;
|
|
13
|
+
updateBrowserURL: boolean;
|
|
14
|
+
refSeqs: string;
|
|
15
|
+
include: string[];
|
|
16
|
+
nameUrl: string;
|
|
17
|
+
datasets: {
|
|
18
|
+
_DEFAULT_EXAMPLES: boolean;
|
|
19
|
+
volvox: {
|
|
20
|
+
url: string;
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
modencode: {
|
|
24
|
+
url: string;
|
|
25
|
+
name: string;
|
|
26
|
+
};
|
|
27
|
+
yeast: {
|
|
28
|
+
url: string;
|
|
29
|
+
name: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
highlightSearchedRegions: boolean;
|
|
33
|
+
highResolutionMode: string;
|
|
34
|
+
}): Promise<Config>;
|
|
35
|
+
export declare function fetchConfigFile(location: JBLocation): Promise<Config>;
|
|
36
|
+
export declare function parseJb1(config: string, url?: string): Config;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Config } from './types';
|
|
2
|
-
export declare function parseJB1Json(config: Config | string, url: string): Config;
|
|
3
|
-
export declare function parseJB1Conf(config: string, url: string): Config;
|
|
4
|
-
/**
|
|
5
|
-
* Applies defaults and any other necessary tweaks to the loaded configuration.
|
|
6
|
-
* @param conf - the object containing the configuration, which it modifies
|
|
7
|
-
* in-place
|
|
8
|
-
* @param url - URL of the config file
|
|
9
|
-
* @returns the same object it was passed
|
|
10
|
-
*/
|
|
11
|
-
export declare function regularizeConf(conf: Config, url: string): Config;
|
|
1
|
+
import { Config } from './types';
|
|
2
|
+
export declare function parseJB1Json(config: Config | string, url: string): Config;
|
|
3
|
+
export declare function parseJB1Conf(config: string, url: string): Config;
|
|
4
|
+
/**
|
|
5
|
+
* Applies defaults and any other necessary tweaks to the loaded configuration.
|
|
6
|
+
* @param conf - the object containing the configuration, which it modifies
|
|
7
|
+
* in-place
|
|
8
|
+
* @param url - URL of the config file
|
|
9
|
+
* @returns the same object it was passed
|
|
10
|
+
*/
|
|
11
|
+
export declare function regularizeConf(conf: Config, url: string): Config;
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { Track, RefSeqs } from './types';
|
|
2
|
-
interface Jb2Track {
|
|
3
|
-
trackId: string;
|
|
4
|
-
name: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
category?: string[];
|
|
7
|
-
adapter?: Jb2Adapter;
|
|
8
|
-
type?: string;
|
|
9
|
-
defaultRendering?: string;
|
|
10
|
-
}
|
|
11
|
-
interface Jb2Adapter {
|
|
12
|
-
type: string;
|
|
13
|
-
features?: Jb2Feature[];
|
|
14
|
-
bamLocation?: Jb2Location;
|
|
15
|
-
cramLocation?: Jb2Location;
|
|
16
|
-
craiLocation?: Jb2Location;
|
|
17
|
-
fastaLocation?: Jb2Location;
|
|
18
|
-
faiLocation?: Jb2Location;
|
|
19
|
-
gziLocation?: Jb2Location;
|
|
20
|
-
twoBitLocation?: Jb2Location;
|
|
21
|
-
bigWigLocation?: Jb2Location;
|
|
22
|
-
bigBedLocation?: Jb2Location;
|
|
23
|
-
vcfGzLocation?: Jb2Location;
|
|
24
|
-
gffGzLocation?: Jb2Location;
|
|
25
|
-
bedGzLocation?: Jb2Location;
|
|
26
|
-
index?: {
|
|
27
|
-
location: Jb2Location;
|
|
28
|
-
indexType?: string;
|
|
29
|
-
};
|
|
30
|
-
rootUrlTemplate?: Jb2Location;
|
|
31
|
-
sequenceAdapter?: Jb2Adapter;
|
|
32
|
-
}
|
|
33
|
-
interface Jb2Feature {
|
|
34
|
-
refName: string;
|
|
35
|
-
uniqueId: string;
|
|
36
|
-
start: number;
|
|
37
|
-
end: number;
|
|
38
|
-
}
|
|
39
|
-
interface Jb2Location {
|
|
40
|
-
uri?: string;
|
|
41
|
-
localPath?: string;
|
|
42
|
-
blobId?: string;
|
|
43
|
-
locationType?: string;
|
|
44
|
-
}
|
|
45
|
-
export declare function convertTrackConfig(jb1TrackConfig: Track, dataRoot: string, sequenceAdapter: Jb2Adapter): Jb2Track;
|
|
46
|
-
export declare function createRefSeqsAdapter(refSeqs: string | RefSeqs): Promise<Jb2Adapter>;
|
|
47
|
-
export {};
|
|
1
|
+
import { Track, RefSeqs } from './types';
|
|
2
|
+
interface Jb2Track {
|
|
3
|
+
trackId: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
category?: string[];
|
|
7
|
+
adapter?: Jb2Adapter;
|
|
8
|
+
type?: string;
|
|
9
|
+
defaultRendering?: string;
|
|
10
|
+
}
|
|
11
|
+
interface Jb2Adapter {
|
|
12
|
+
type: string;
|
|
13
|
+
features?: Jb2Feature[];
|
|
14
|
+
bamLocation?: Jb2Location;
|
|
15
|
+
cramLocation?: Jb2Location;
|
|
16
|
+
craiLocation?: Jb2Location;
|
|
17
|
+
fastaLocation?: Jb2Location;
|
|
18
|
+
faiLocation?: Jb2Location;
|
|
19
|
+
gziLocation?: Jb2Location;
|
|
20
|
+
twoBitLocation?: Jb2Location;
|
|
21
|
+
bigWigLocation?: Jb2Location;
|
|
22
|
+
bigBedLocation?: Jb2Location;
|
|
23
|
+
vcfGzLocation?: Jb2Location;
|
|
24
|
+
gffGzLocation?: Jb2Location;
|
|
25
|
+
bedGzLocation?: Jb2Location;
|
|
26
|
+
index?: {
|
|
27
|
+
location: Jb2Location;
|
|
28
|
+
indexType?: string;
|
|
29
|
+
};
|
|
30
|
+
rootUrlTemplate?: Jb2Location;
|
|
31
|
+
sequenceAdapter?: Jb2Adapter;
|
|
32
|
+
}
|
|
33
|
+
interface Jb2Feature {
|
|
34
|
+
refName: string;
|
|
35
|
+
uniqueId: string;
|
|
36
|
+
start: number;
|
|
37
|
+
end: number;
|
|
38
|
+
}
|
|
39
|
+
interface Jb2Location {
|
|
40
|
+
uri?: string;
|
|
41
|
+
localPath?: string;
|
|
42
|
+
blobId?: string;
|
|
43
|
+
locationType?: string;
|
|
44
|
+
}
|
|
45
|
+
export declare function convertTrackConfig(jb1TrackConfig: Track, dataRoot: string, sequenceAdapter: Jb2Adapter): Jb2Track;
|
|
46
|
+
export declare function createRefSeqsAdapter(refSeqs: string | RefSeqs): Promise<Jb2Adapter>;
|
|
47
|
+
export {};
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
export default function _default(pluginManager: any): import("mobx-state-tree").IModelType<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
1
|
+
export default function _default(pluginManager: any): import("mobx-state-tree").IModelType<{
|
|
2
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
3
|
+
tracks: import("mobx-state-tree").IArrayType<any>;
|
|
4
|
+
} & {
|
|
5
|
+
configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
6
|
+
type: import("mobx-state-tree").ISimpleType<"JBrowse1Connection">;
|
|
7
|
+
}, {
|
|
8
|
+
afterAttach(): void;
|
|
9
|
+
addTrackConf(trackConf: any): any;
|
|
10
|
+
addTrackConfs(trackConfs: any): any[];
|
|
11
|
+
setTrackConfs(trackConfs: any): import("mobx-state-tree").IMSTArray<any> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<any>>;
|
|
12
|
+
clear(): void;
|
|
13
|
+
} & {
|
|
14
|
+
connect(): void;
|
|
15
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
export interface ProtoTrack {
|
|
2
|
-
backendVersion?: number;
|
|
3
|
-
baseUrl?: string;
|
|
4
|
-
category?: string;
|
|
5
|
-
config?: Track;
|
|
6
|
-
dataRoot?: string;
|
|
7
|
-
features?: Feature[];
|
|
8
|
-
histograms?: Track;
|
|
9
|
-
index?: number;
|
|
10
|
-
key?: string;
|
|
11
|
-
label?: string;
|
|
12
|
-
metadata?: Metadata;
|
|
13
|
-
store?: Store | string;
|
|
14
|
-
storeClass?: string;
|
|
15
|
-
type?: string;
|
|
16
|
-
urlTemplate?: string;
|
|
17
|
-
baiUrlTemplate?: string;
|
|
18
|
-
craiUrlTemplate?: string;
|
|
19
|
-
tbiUrlTemplate?: string;
|
|
20
|
-
csiUrlTemplate?: string;
|
|
21
|
-
faiUrlTemplate?: string;
|
|
22
|
-
gziUrlTemplate?: string;
|
|
23
|
-
useAsRefSeqStore?: boolean;
|
|
24
|
-
}
|
|
25
|
-
export interface Track extends ProtoTrack {
|
|
26
|
-
label: string;
|
|
27
|
-
}
|
|
28
|
-
export interface Metadata {
|
|
29
|
-
category?: string;
|
|
30
|
-
description?: string;
|
|
31
|
-
Description?: string;
|
|
32
|
-
}
|
|
33
|
-
export interface Feature {
|
|
34
|
-
seq_id: string;
|
|
35
|
-
start: number;
|
|
36
|
-
end: number;
|
|
37
|
-
name?: string;
|
|
38
|
-
}
|
|
39
|
-
export interface Source {
|
|
40
|
-
url: string;
|
|
41
|
-
name?: string;
|
|
42
|
-
type?: string;
|
|
43
|
-
}
|
|
44
|
-
export interface TrackMetadata {
|
|
45
|
-
sources?: string | Source | (string | Source)[] | Record<string, Source>;
|
|
46
|
-
}
|
|
47
|
-
export interface Store extends ProtoTrack {
|
|
48
|
-
name?: string;
|
|
49
|
-
}
|
|
50
|
-
export interface Names {
|
|
51
|
-
baseUrl?: string;
|
|
52
|
-
}
|
|
53
|
-
export interface RefSeq {
|
|
54
|
-
name: string;
|
|
55
|
-
length: number;
|
|
56
|
-
end: number;
|
|
57
|
-
start: number;
|
|
58
|
-
}
|
|
59
|
-
export interface RefSeqs {
|
|
60
|
-
url?: string;
|
|
61
|
-
data?: RefSeq[];
|
|
62
|
-
}
|
|
63
|
-
export interface Include {
|
|
64
|
-
url: string;
|
|
65
|
-
cacheBuster?: boolean;
|
|
66
|
-
format?: string;
|
|
67
|
-
version?: number;
|
|
68
|
-
}
|
|
69
|
-
export interface Config {
|
|
70
|
-
baseUrl?: string;
|
|
71
|
-
cacheBuster?: boolean;
|
|
72
|
-
dataRoot?: string;
|
|
73
|
-
include?: string[];
|
|
74
|
-
names?: Record<string, string>;
|
|
75
|
-
nameUrl?: string;
|
|
76
|
-
refSeqs?: string | RefSeqs;
|
|
77
|
-
sourceUrl?: string;
|
|
78
|
-
stores?: Record<string, Store>;
|
|
79
|
-
trackMetadata?: TrackMetadata;
|
|
80
|
-
tracks?: Track | Track[] | Record<string, Track | ProtoTrack>;
|
|
81
|
-
}
|
|
82
|
-
export interface UriLocation {
|
|
83
|
-
uri: string;
|
|
84
|
-
baseUri?: string;
|
|
85
|
-
locationType: 'UriLocation';
|
|
86
|
-
}
|
|
87
|
-
export interface LocalPathLocation {
|
|
88
|
-
localPath: string;
|
|
89
|
-
locationType: 'LocalPathLocation';
|
|
90
|
-
}
|
|
91
|
-
export declare type JBLocation = UriLocation | LocalPathLocation;
|
|
1
|
+
export interface ProtoTrack {
|
|
2
|
+
backendVersion?: number;
|
|
3
|
+
baseUrl?: string;
|
|
4
|
+
category?: string;
|
|
5
|
+
config?: Track;
|
|
6
|
+
dataRoot?: string;
|
|
7
|
+
features?: Feature[];
|
|
8
|
+
histograms?: Track;
|
|
9
|
+
index?: number;
|
|
10
|
+
key?: string;
|
|
11
|
+
label?: string;
|
|
12
|
+
metadata?: Metadata;
|
|
13
|
+
store?: Store | string;
|
|
14
|
+
storeClass?: string;
|
|
15
|
+
type?: string;
|
|
16
|
+
urlTemplate?: string;
|
|
17
|
+
baiUrlTemplate?: string;
|
|
18
|
+
craiUrlTemplate?: string;
|
|
19
|
+
tbiUrlTemplate?: string;
|
|
20
|
+
csiUrlTemplate?: string;
|
|
21
|
+
faiUrlTemplate?: string;
|
|
22
|
+
gziUrlTemplate?: string;
|
|
23
|
+
useAsRefSeqStore?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface Track extends ProtoTrack {
|
|
26
|
+
label: string;
|
|
27
|
+
}
|
|
28
|
+
export interface Metadata {
|
|
29
|
+
category?: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
Description?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface Feature {
|
|
34
|
+
seq_id: string;
|
|
35
|
+
start: number;
|
|
36
|
+
end: number;
|
|
37
|
+
name?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface Source {
|
|
40
|
+
url: string;
|
|
41
|
+
name?: string;
|
|
42
|
+
type?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface TrackMetadata {
|
|
45
|
+
sources?: string | Source | (string | Source)[] | Record<string, Source>;
|
|
46
|
+
}
|
|
47
|
+
export interface Store extends ProtoTrack {
|
|
48
|
+
name?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface Names {
|
|
51
|
+
baseUrl?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface RefSeq {
|
|
54
|
+
name: string;
|
|
55
|
+
length: number;
|
|
56
|
+
end: number;
|
|
57
|
+
start: number;
|
|
58
|
+
}
|
|
59
|
+
export interface RefSeqs {
|
|
60
|
+
url?: string;
|
|
61
|
+
data?: RefSeq[];
|
|
62
|
+
}
|
|
63
|
+
export interface Include {
|
|
64
|
+
url: string;
|
|
65
|
+
cacheBuster?: boolean;
|
|
66
|
+
format?: string;
|
|
67
|
+
version?: number;
|
|
68
|
+
}
|
|
69
|
+
export interface Config {
|
|
70
|
+
baseUrl?: string;
|
|
71
|
+
cacheBuster?: boolean;
|
|
72
|
+
dataRoot?: string;
|
|
73
|
+
include?: string[];
|
|
74
|
+
names?: Record<string, string>;
|
|
75
|
+
nameUrl?: string;
|
|
76
|
+
refSeqs?: string | RefSeqs;
|
|
77
|
+
sourceUrl?: string;
|
|
78
|
+
stores?: Record<string, Store>;
|
|
79
|
+
trackMetadata?: TrackMetadata;
|
|
80
|
+
tracks?: Track | Track[] | Record<string, Track | ProtoTrack>;
|
|
81
|
+
}
|
|
82
|
+
export interface UriLocation {
|
|
83
|
+
uri: string;
|
|
84
|
+
baseUri?: string;
|
|
85
|
+
locationType: 'UriLocation';
|
|
86
|
+
}
|
|
87
|
+
export interface LocalPathLocation {
|
|
88
|
+
localPath: string;
|
|
89
|
+
locationType: 'LocalPathLocation';
|
|
90
|
+
}
|
|
91
|
+
export declare type JBLocation = UriLocation | LocalPathLocation;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Track, Source } from './types';
|
|
2
|
-
export declare function isTrack(arg: any): arg is Track;
|
|
3
|
-
export declare function isSource(arg: any): arg is Source;
|
|
4
|
-
/**
|
|
5
|
-
* updates a with values from b, recursively
|
|
6
|
-
*/
|
|
7
|
-
declare type Obj = Record<string, any>;
|
|
8
|
-
export declare function deepUpdate(a: Obj, b: Obj): Obj;
|
|
9
|
-
/**
|
|
10
|
-
* replace variables in a template string with values
|
|
11
|
-
* @param template - String with variable names in curly brackets
|
|
12
|
-
* e.g., `http://foo/{bar}?arg={baz.foo}`
|
|
13
|
-
* @param fillWith - object with attribute-value mappings
|
|
14
|
-
* e.g., `{ 'bar': 'someurl', 'baz': { 'foo': 42 } }`
|
|
15
|
-
* @returns the template string with variables in fillWith replaced
|
|
16
|
-
* e.g., 'htp://foo/someurl?arg=valueforbaz'
|
|
17
|
-
*/
|
|
18
|
-
export declare function fillTemplate(template: string, fillWith: Obj): string;
|
|
19
|
-
/**
|
|
20
|
-
* Clones objects (including DOM nodes) and all children.
|
|
21
|
-
* Warning: do not clone cyclic structures
|
|
22
|
-
* (Lifted from dojo https://github.com/dojo/dojo/blob/master/_base/lang.js)
|
|
23
|
-
* @param src - The object to clone
|
|
24
|
-
*/
|
|
25
|
-
export declare function clone(src: any): any;
|
|
26
|
-
export {};
|
|
1
|
+
import { Track, Source } from './types';
|
|
2
|
+
export declare function isTrack(arg: any): arg is Track;
|
|
3
|
+
export declare function isSource(arg: any): arg is Source;
|
|
4
|
+
/**
|
|
5
|
+
* updates a with values from b, recursively
|
|
6
|
+
*/
|
|
7
|
+
declare type Obj = Record<string, any>;
|
|
8
|
+
export declare function deepUpdate(a: Obj, b: Obj): Obj;
|
|
9
|
+
/**
|
|
10
|
+
* replace variables in a template string with values
|
|
11
|
+
* @param template - String with variable names in curly brackets
|
|
12
|
+
* e.g., `http://foo/{bar}?arg={baz.foo}`
|
|
13
|
+
* @param fillWith - object with attribute-value mappings
|
|
14
|
+
* e.g., `{ 'bar': 'someurl', 'baz': { 'foo': 42 } }`
|
|
15
|
+
* @returns the template string with variables in fillWith replaced
|
|
16
|
+
* e.g., 'htp://foo/someurl?arg=valueforbaz'
|
|
17
|
+
*/
|
|
18
|
+
export declare function fillTemplate(template: string, fillWith: Obj): string;
|
|
19
|
+
/**
|
|
20
|
+
* Clones objects (including DOM nodes) and all children.
|
|
21
|
+
* Warning: do not clone cyclic structures
|
|
22
|
+
* (Lifted from dojo https://github.com/dojo/dojo/blob/master/_base/lang.js)
|
|
23
|
+
* @param src - The object to clone
|
|
24
|
+
*/
|
|
25
|
+
export declare function clone(src: any): any;
|
|
26
|
+
export {};
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
export default class HttpMap {
|
|
2
|
-
url: string;
|
|
3
|
-
constructor(args: {
|
|
4
|
-
url: string;
|
|
5
|
-
});
|
|
6
|
-
/**
|
|
7
|
-
* loads meta.json file from names directory and reads number of hash_bits used
|
|
8
|
-
*/
|
|
9
|
-
readMeta(): Promise<{
|
|
10
|
-
hashHexCharacters: number;
|
|
11
|
-
compress: any;
|
|
12
|
-
tracks: any;
|
|
13
|
-
}>;
|
|
14
|
-
getHashHexCharacters(): Promise<number>;
|
|
15
|
-
getCompress(): Promise<any>;
|
|
16
|
-
getTrackNames(): Promise<any>;
|
|
17
|
-
/**
|
|
18
|
-
* Returns contents of a bucket given a key
|
|
19
|
-
* @param key - string
|
|
20
|
-
*/
|
|
21
|
-
get(key: string): Promise<any>;
|
|
22
|
-
/**
|
|
23
|
-
* Returns a bucket given a key
|
|
24
|
-
* @param key - string
|
|
25
|
-
*/
|
|
26
|
-
getBucket(key: string): Promise<any>;
|
|
27
|
-
/**
|
|
28
|
-
* Loads a file using the url and provided id.
|
|
29
|
-
* Returns response object with contents of the file
|
|
30
|
-
* @param id - string
|
|
31
|
-
*/
|
|
32
|
-
loadFile(id: string): Promise<any>;
|
|
33
|
-
/**
|
|
34
|
-
* Returns the corresponding path of the file given a hex string
|
|
35
|
-
* @param hex - hex string
|
|
36
|
-
*/
|
|
37
|
-
hexToDirPath(hex: string): Promise<string>;
|
|
38
|
-
hash(data: string): string;
|
|
39
|
-
}
|
|
1
|
+
export default class HttpMap {
|
|
2
|
+
url: string;
|
|
3
|
+
constructor(args: {
|
|
4
|
+
url: string;
|
|
5
|
+
});
|
|
6
|
+
/**
|
|
7
|
+
* loads meta.json file from names directory and reads number of hash_bits used
|
|
8
|
+
*/
|
|
9
|
+
readMeta(): Promise<{
|
|
10
|
+
hashHexCharacters: number;
|
|
11
|
+
compress: any;
|
|
12
|
+
tracks: any;
|
|
13
|
+
}>;
|
|
14
|
+
getHashHexCharacters(): Promise<number>;
|
|
15
|
+
getCompress(): Promise<any>;
|
|
16
|
+
getTrackNames(): Promise<any>;
|
|
17
|
+
/**
|
|
18
|
+
* Returns contents of a bucket given a key
|
|
19
|
+
* @param key - string
|
|
20
|
+
*/
|
|
21
|
+
get(key: string): Promise<any>;
|
|
22
|
+
/**
|
|
23
|
+
* Returns a bucket given a key
|
|
24
|
+
* @param key - string
|
|
25
|
+
*/
|
|
26
|
+
getBucket(key: string): Promise<any>;
|
|
27
|
+
/**
|
|
28
|
+
* Loads a file using the url and provided id.
|
|
29
|
+
* Returns response object with contents of the file
|
|
30
|
+
* @param id - string
|
|
31
|
+
*/
|
|
32
|
+
loadFile(id: string): Promise<any>;
|
|
33
|
+
/**
|
|
34
|
+
* Returns the corresponding path of the file given a hex string
|
|
35
|
+
* @param hex - hex string
|
|
36
|
+
*/
|
|
37
|
+
hexToDirPath(hex: string): Promise<string>;
|
|
38
|
+
hash(data: string): string;
|
|
39
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { BaseTextSearchAdapter, BaseArgs, BaseAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
|
-
import BaseResult from '@jbrowse/core/TextSearch/BaseResults';
|
|
3
|
-
import { Instance } from 'mobx-state-tree';
|
|
4
|
-
import MyConfigSchema from './configSchema';
|
|
5
|
-
import HttpMap from './HttpMap';
|
|
6
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
7
|
-
import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
|
|
8
|
-
export interface TooManyHits {
|
|
9
|
-
name: string;
|
|
10
|
-
hitLimit: number;
|
|
11
|
-
}
|
|
12
|
-
interface SearchResults {
|
|
13
|
-
prefix: ({
|
|
14
|
-
name: string;
|
|
15
|
-
} | string)[];
|
|
16
|
-
exact: [string, number, string, string, number, number][];
|
|
17
|
-
}
|
|
18
|
-
export declare type NamesIndexRecord = string | Array<string | number>;
|
|
19
|
-
export default class JBrowse1TextSearchAdapter extends BaseAdapter implements BaseTextSearchAdapter {
|
|
20
|
-
httpMap: HttpMap;
|
|
21
|
-
tracksNames?: string[];
|
|
22
|
-
constructor(config: Instance<typeof MyConfigSchema>, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
|
|
23
|
-
/**
|
|
24
|
-
* Returns the contents of the file containing the query if it exists
|
|
25
|
-
* else it returns empty
|
|
26
|
-
* @param query - string query
|
|
27
|
-
*/
|
|
28
|
-
loadIndexFile(query: string): Promise<Record<string, SearchResults>>;
|
|
29
|
-
searchIndex(args: BaseArgs): Promise<BaseResult[]>;
|
|
30
|
-
formatResults(results: SearchResults, tracks: string[], searchType?: string): BaseResult[];
|
|
31
|
-
freeResources(): void;
|
|
32
|
-
}
|
|
33
|
-
export {};
|
|
1
|
+
import { BaseTextSearchAdapter, BaseArgs, BaseAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
|
+
import BaseResult from '@jbrowse/core/TextSearch/BaseResults';
|
|
3
|
+
import { Instance } from 'mobx-state-tree';
|
|
4
|
+
import MyConfigSchema from './configSchema';
|
|
5
|
+
import HttpMap from './HttpMap';
|
|
6
|
+
import PluginManager from '@jbrowse/core/PluginManager';
|
|
7
|
+
import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
|
|
8
|
+
export interface TooManyHits {
|
|
9
|
+
name: string;
|
|
10
|
+
hitLimit: number;
|
|
11
|
+
}
|
|
12
|
+
interface SearchResults {
|
|
13
|
+
prefix: ({
|
|
14
|
+
name: string;
|
|
15
|
+
} | string)[];
|
|
16
|
+
exact: [string, number, string, string, number, number][];
|
|
17
|
+
}
|
|
18
|
+
export declare type NamesIndexRecord = string | Array<string | number>;
|
|
19
|
+
export default class JBrowse1TextSearchAdapter extends BaseAdapter implements BaseTextSearchAdapter {
|
|
20
|
+
httpMap: HttpMap;
|
|
21
|
+
tracksNames?: string[];
|
|
22
|
+
constructor(config: Instance<typeof MyConfigSchema>, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
|
|
23
|
+
/**
|
|
24
|
+
* Returns the contents of the file containing the query if it exists
|
|
25
|
+
* else it returns empty
|
|
26
|
+
* @param query - string query
|
|
27
|
+
*/
|
|
28
|
+
loadIndexFile(query: string): Promise<Record<string, SearchResults>>;
|
|
29
|
+
searchIndex(args: BaseArgs): Promise<BaseResult[]>;
|
|
30
|
+
formatResults(results: SearchResults, tracks: string[], searchType?: string): BaseResult[];
|
|
31
|
+
freeResources(): void;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
@@ -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,2 +1,2 @@
|
|
|
1
|
-
export { default as AdapterClass } from './JBrowse1TextSearchAdapter';
|
|
2
|
-
export { default as configSchema } from './configSchema';
|
|
1
|
+
export { default as AdapterClass } from './JBrowse1TextSearchAdapter';
|
|
2
|
+
export { default as configSchema } from './configSchema';
|