@@ -2,67 +2,14 @@ export interface UriLocation {
22 uri : string
33 locationType : 'UriLocation'
44}
5+
56export interface LocalPathLocation {
67 localPath : string
78 locationType : 'LocalPathLocation'
89}
9- export interface IndexedFastaAdapter {
10- type : 'IndexedFastaAdapter'
11- fastaLocation : UriLocation
12- faiLocation : UriLocation
13- }
14-
15- export interface BgzipFastaAdapter {
16- type : 'BgzipFastaAdapter'
17- fastaLocation : UriLocation
18- faiLocation : UriLocation
19- gziLocation : UriLocation
20- }
21-
22- export interface TwoBitAdapter {
23- type : 'TwoBitAdapter'
24- twoBitLocation : UriLocation
25- }
26-
27- export interface ChromeSizesAdapter {
28- type : 'ChromSizesAdapter'
29- chromSizesLocation : UriLocation
30- }
3110
32- export interface CustomSequenceAdapter {
33- type : string
34- }
35-
36- export interface RefNameAliasAdapter {
37- type : 'RefNameAliasAdapter'
38- location : UriLocation
39- }
40-
41- export interface CustomRefNameAliasAdapter {
42- type : string
43- }
44- export interface Assembly {
45- displayName ?: string
46- name : string
47- aliases ?: string [ ]
48- sequence : Sequence
49- refNameAliases ?: {
50- adapter : RefNameAliasAdapter | CustomRefNameAliasAdapter
51- }
52- refNameColors ?: string [ ]
53- }
54-
55- export interface Sequence {
56- type : 'ReferenceSequenceTrack'
57- trackId : string
58- adapter :
59- | IndexedFastaAdapter
60- | BgzipFastaAdapter
61- | TwoBitAdapter
62- | ChromeSizesAdapter
63- | CustomSequenceAdapter
64- }
6511type Loc = UriLocation | LocalPathLocation
12+
6613export interface Gff3TabixAdapter {
6714 type : 'Gff3TabixAdapter'
6815 gffGzLocation : Loc
@@ -72,6 +19,7 @@ export interface Gff3Adapter {
7219 type : 'Gff3Adapter'
7320 gffLocation : Loc
7421}
22+
7523export interface GtfAdapter {
7624 type : 'GtfAdapter'
7725 gtfLocation : Loc
@@ -81,46 +29,24 @@ export interface VcfTabixAdapter {
8129 type : 'VcfTabixAdapter'
8230 vcfGzLocation : Loc
8331}
32+
8433export interface VcfAdapter {
8534 type : 'VcfAdapter'
8635 vcfLocation : Loc
8736}
8837
8938export interface Track {
9039 adapter ?: { type : string ; [ key : string ] : unknown }
91- textSearching ?: TextSearching
40+ textSearching ?: {
41+ indexingFeatureTypesToExclude ?: string [ ]
42+ indexingAttributes ?: string [ ]
43+ [ key : string ] : unknown
44+ }
9245 name : string
9346 assemblyNames : string [ ]
9447 trackId : string
9548}
9649
97- export interface TextSearching {
98- indexingFeatureTypesToExclude ?: string [ ]
99- indexingAttributes ?: string [ ]
100- textSearchAdapter : TrixTextSearchAdapter
101- }
102-
103- export interface TrixTextSearchAdapter {
104- type : string
105- textSearchAdapterId : string
106- ixFilePath : UriLocation | LocalPathLocation
107- ixxFilePath : UriLocation | LocalPathLocation
108- metaFilePath : UriLocation | LocalPathLocation
109- assemblyNames : string [ ]
110- }
111-
112- export interface Config {
113- assemblies ?: Assembly [ ]
114- assembly ?: Assembly
115- configuration ?: Record < string , unknown >
116- aggregateTextSearchAdapters ?: TrixTextSearchAdapter [ ]
117- connections ?: unknown [ ]
118- defaultSession ?: Record < string , unknown >
119- tracks ?: Track [ ]
120- }
121-
122- export type indexType = 'aggregate' | 'perTrack'
123-
12450export function decodeURIComponentNoThrow ( uri : string ) {
12551 try {
12652 return decodeURIComponent ( uri )
0 commit comments