@jbrowse/plugin-linear-comparative-view 2.7.2 → 2.9.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/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.d.ts +7 -0
- package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +68 -0
- package/dist/LGVSyntenyDisplay/components/util.d.ts +8 -0
- package/dist/LGVSyntenyDisplay/components/util.js +111 -0
- package/dist/LGVSyntenyDisplay/model.d.ts +15 -14
- package/dist/LGVSyntenyDisplay/model.js +35 -104
- package/dist/LaunchLinearSyntenyView.js +6 -2
- package/dist/LinearComparativeView/model.d.ts +122 -2
- package/dist/LinearComparativeView/model.js +2 -2
- package/dist/LinearReadVsRef/LinearReadVsRef.js +1 -1
- package/dist/LinearSyntenyView/components/ImportForm/index.js +1 -1
- package/dist/LinearSyntenyView/model.d.ts +364 -4
- package/dist/SyntenyTrack/configSchema.d.ts +5 -0
- package/esm/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.d.ts +7 -0
- package/esm/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +42 -0
- package/esm/LGVSyntenyDisplay/components/util.d.ts +8 -0
- package/esm/LGVSyntenyDisplay/components/util.js +107 -0
- package/esm/LGVSyntenyDisplay/model.d.ts +15 -14
- package/esm/LGVSyntenyDisplay/model.js +14 -106
- package/esm/LaunchLinearSyntenyView.js +6 -2
- package/esm/LinearComparativeView/model.d.ts +122 -2
- package/esm/LinearComparativeView/model.js +2 -2
- package/esm/LinearReadVsRef/LinearReadVsRef.js +1 -1
- package/esm/LinearSyntenyView/components/ImportForm/index.js +1 -1
- package/esm/LinearSyntenyView/model.d.ts +364 -4
- package/esm/SyntenyTrack/configSchema.d.ts +5 -0
- package/package.json +2 -2
|
@@ -134,7 +134,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
134
134
|
} & {
|
|
135
135
|
moveTrack(movingId: string, targetId: string): void;
|
|
136
136
|
closeView(): void;
|
|
137
|
-
toggleTrack(trackId: string):
|
|
137
|
+
toggleTrack(trackId: string): boolean;
|
|
138
138
|
setTrackLabels(setting: "offset" | "hidden" | "overlapping"): void;
|
|
139
139
|
toggleCenterLine(): void;
|
|
140
140
|
setDisplayedRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
@@ -184,6 +184,126 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
184
184
|
} & {
|
|
185
185
|
moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined): void;
|
|
186
186
|
navToLocString(input: string, optAssemblyName?: string | undefined): Promise<void>;
|
|
187
|
+
navToSearchString({ input, assembly, }: {
|
|
188
|
+
input: string;
|
|
189
|
+
assembly: {
|
|
190
|
+
configuration: any;
|
|
191
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
192
|
+
error: unknown;
|
|
193
|
+
loaded: boolean;
|
|
194
|
+
loadingP: Promise<void> | undefined;
|
|
195
|
+
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
196
|
+
refNameAliases: {
|
|
197
|
+
[x: string]: string | undefined;
|
|
198
|
+
} | undefined;
|
|
199
|
+
lowerCaseRefNameAliases: {
|
|
200
|
+
[x: string]: string | undefined;
|
|
201
|
+
} | undefined;
|
|
202
|
+
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
203
|
+
} & {
|
|
204
|
+
getConf(arg: string): any;
|
|
205
|
+
} & {
|
|
206
|
+
readonly initialized: boolean;
|
|
207
|
+
readonly name: string;
|
|
208
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined; /**
|
|
209
|
+
* #property
|
|
210
|
+
*/
|
|
211
|
+
readonly aliases: string[];
|
|
212
|
+
readonly displayName: string | undefined;
|
|
213
|
+
hasName(name: string): boolean;
|
|
214
|
+
readonly allAliases: string[];
|
|
215
|
+
readonly allRefNames: string[] | undefined;
|
|
216
|
+
readonly lowerCaseRefNames: string[] | undefined;
|
|
217
|
+
readonly allRefNamesWithLowerCase: string[] | undefined;
|
|
218
|
+
readonly rpcManager: import("@jbrowse/core/rpc/RpcManager").default;
|
|
219
|
+
readonly refNameColors: string[];
|
|
220
|
+
} & {
|
|
221
|
+
readonly refNames: string[] | undefined;
|
|
222
|
+
} & {
|
|
223
|
+
getCanonicalRefName(refName: string): string | undefined;
|
|
224
|
+
getRefNameColor(refName: string): string | undefined;
|
|
225
|
+
isValidRefName(refName: string): boolean;
|
|
226
|
+
} & {
|
|
227
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
|
|
228
|
+
setError(e: unknown): void;
|
|
229
|
+
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
230
|
+
setRefNameAliases(aliases: {
|
|
231
|
+
[x: string]: string | undefined;
|
|
232
|
+
}, lcAliases: {
|
|
233
|
+
[x: string]: string | undefined;
|
|
234
|
+
}): void;
|
|
235
|
+
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
236
|
+
setLoadingP(p?: Promise<void> | undefined): void;
|
|
237
|
+
load(): Promise<void>;
|
|
238
|
+
loadPre(): Promise<void>;
|
|
239
|
+
} & {
|
|
240
|
+
getAdapterMapEntry(adapterConf: unknown, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
241
|
+
getRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
242
|
+
[x: string]: string | undefined;
|
|
243
|
+
}>;
|
|
244
|
+
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
245
|
+
[x: string]: string | undefined;
|
|
246
|
+
}>;
|
|
247
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
248
|
+
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
|
|
249
|
+
}, {
|
|
250
|
+
error: unknown;
|
|
251
|
+
loaded: boolean;
|
|
252
|
+
loadingP: Promise<void> | undefined;
|
|
253
|
+
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
254
|
+
refNameAliases: {
|
|
255
|
+
[x: string]: string | undefined;
|
|
256
|
+
} | undefined;
|
|
257
|
+
lowerCaseRefNameAliases: {
|
|
258
|
+
[x: string]: string | undefined;
|
|
259
|
+
} | undefined;
|
|
260
|
+
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
261
|
+
} & {
|
|
262
|
+
getConf(arg: string): any;
|
|
263
|
+
} & {
|
|
264
|
+
readonly initialized: boolean;
|
|
265
|
+
readonly name: string;
|
|
266
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined; /**
|
|
267
|
+
* #property
|
|
268
|
+
*/
|
|
269
|
+
readonly aliases: string[];
|
|
270
|
+
readonly displayName: string | undefined;
|
|
271
|
+
hasName(name: string): boolean;
|
|
272
|
+
readonly allAliases: string[];
|
|
273
|
+
readonly allRefNames: string[] | undefined;
|
|
274
|
+
readonly lowerCaseRefNames: string[] | undefined;
|
|
275
|
+
readonly allRefNamesWithLowerCase: string[] | undefined;
|
|
276
|
+
readonly rpcManager: import("@jbrowse/core/rpc/RpcManager").default;
|
|
277
|
+
readonly refNameColors: string[];
|
|
278
|
+
} & {
|
|
279
|
+
readonly refNames: string[] | undefined;
|
|
280
|
+
} & {
|
|
281
|
+
getCanonicalRefName(refName: string): string | undefined;
|
|
282
|
+
getRefNameColor(refName: string): string | undefined;
|
|
283
|
+
isValidRefName(refName: string): boolean;
|
|
284
|
+
} & {
|
|
285
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
|
|
286
|
+
setError(e: unknown): void;
|
|
287
|
+
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
288
|
+
setRefNameAliases(aliases: {
|
|
289
|
+
[x: string]: string | undefined;
|
|
290
|
+
}, lcAliases: {
|
|
291
|
+
[x: string]: string | undefined;
|
|
292
|
+
}): void;
|
|
293
|
+
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
294
|
+
setLoadingP(p?: Promise<void> | undefined): void;
|
|
295
|
+
load(): Promise<void>;
|
|
296
|
+
loadPre(): Promise<void>;
|
|
297
|
+
} & {
|
|
298
|
+
getAdapterMapEntry(adapterConf: unknown, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
299
|
+
getRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
300
|
+
[x: string]: string | undefined;
|
|
301
|
+
}>;
|
|
302
|
+
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
303
|
+
[x: string]: string | undefined;
|
|
304
|
+
}>;
|
|
305
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
306
|
+
}): Promise<void>;
|
|
187
307
|
navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string | undefined): Promise<void>;
|
|
188
308
|
navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation): void;
|
|
189
309
|
navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation[]): void;
|
|
@@ -385,7 +505,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
385
505
|
} & {
|
|
386
506
|
moveTrack(movingId: string, targetId: string): void;
|
|
387
507
|
closeView(): void;
|
|
388
|
-
toggleTrack(trackId: string):
|
|
508
|
+
toggleTrack(trackId: string): boolean;
|
|
389
509
|
setTrackLabels(setting: "offset" | "hidden" | "overlapping"): void;
|
|
390
510
|
toggleCenterLine(): void;
|
|
391
511
|
setDisplayedRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
@@ -435,6 +555,126 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
435
555
|
} & {
|
|
436
556
|
moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined): void;
|
|
437
557
|
navToLocString(input: string, optAssemblyName?: string | undefined): Promise<void>;
|
|
558
|
+
navToSearchString({ input, assembly, }: {
|
|
559
|
+
input: string;
|
|
560
|
+
assembly: {
|
|
561
|
+
configuration: any;
|
|
562
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
563
|
+
error: unknown;
|
|
564
|
+
loaded: boolean;
|
|
565
|
+
loadingP: Promise<void> | undefined;
|
|
566
|
+
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
567
|
+
refNameAliases: {
|
|
568
|
+
[x: string]: string | undefined;
|
|
569
|
+
} | undefined;
|
|
570
|
+
lowerCaseRefNameAliases: {
|
|
571
|
+
[x: string]: string | undefined;
|
|
572
|
+
} | undefined;
|
|
573
|
+
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
574
|
+
} & {
|
|
575
|
+
getConf(arg: string): any;
|
|
576
|
+
} & {
|
|
577
|
+
readonly initialized: boolean;
|
|
578
|
+
readonly name: string;
|
|
579
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined; /**
|
|
580
|
+
* #property
|
|
581
|
+
*/
|
|
582
|
+
readonly aliases: string[];
|
|
583
|
+
readonly displayName: string | undefined;
|
|
584
|
+
hasName(name: string): boolean;
|
|
585
|
+
readonly allAliases: string[];
|
|
586
|
+
readonly allRefNames: string[] | undefined;
|
|
587
|
+
readonly lowerCaseRefNames: string[] | undefined;
|
|
588
|
+
readonly allRefNamesWithLowerCase: string[] | undefined;
|
|
589
|
+
readonly rpcManager: import("@jbrowse/core/rpc/RpcManager").default;
|
|
590
|
+
readonly refNameColors: string[];
|
|
591
|
+
} & {
|
|
592
|
+
readonly refNames: string[] | undefined;
|
|
593
|
+
} & {
|
|
594
|
+
getCanonicalRefName(refName: string): string | undefined;
|
|
595
|
+
getRefNameColor(refName: string): string | undefined;
|
|
596
|
+
isValidRefName(refName: string): boolean;
|
|
597
|
+
} & {
|
|
598
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
|
|
599
|
+
setError(e: unknown): void;
|
|
600
|
+
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
601
|
+
setRefNameAliases(aliases: {
|
|
602
|
+
[x: string]: string | undefined;
|
|
603
|
+
}, lcAliases: {
|
|
604
|
+
[x: string]: string | undefined;
|
|
605
|
+
}): void;
|
|
606
|
+
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
607
|
+
setLoadingP(p?: Promise<void> | undefined): void;
|
|
608
|
+
load(): Promise<void>;
|
|
609
|
+
loadPre(): Promise<void>;
|
|
610
|
+
} & {
|
|
611
|
+
getAdapterMapEntry(adapterConf: unknown, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
612
|
+
getRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
613
|
+
[x: string]: string | undefined;
|
|
614
|
+
}>;
|
|
615
|
+
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
616
|
+
[x: string]: string | undefined;
|
|
617
|
+
}>;
|
|
618
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
619
|
+
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
|
|
620
|
+
}, {
|
|
621
|
+
error: unknown;
|
|
622
|
+
loaded: boolean;
|
|
623
|
+
loadingP: Promise<void> | undefined;
|
|
624
|
+
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
625
|
+
refNameAliases: {
|
|
626
|
+
[x: string]: string | undefined;
|
|
627
|
+
} | undefined;
|
|
628
|
+
lowerCaseRefNameAliases: {
|
|
629
|
+
[x: string]: string | undefined;
|
|
630
|
+
} | undefined;
|
|
631
|
+
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
632
|
+
} & {
|
|
633
|
+
getConf(arg: string): any;
|
|
634
|
+
} & {
|
|
635
|
+
readonly initialized: boolean;
|
|
636
|
+
readonly name: string;
|
|
637
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined; /**
|
|
638
|
+
* #property
|
|
639
|
+
*/
|
|
640
|
+
readonly aliases: string[];
|
|
641
|
+
readonly displayName: string | undefined;
|
|
642
|
+
hasName(name: string): boolean;
|
|
643
|
+
readonly allAliases: string[];
|
|
644
|
+
readonly allRefNames: string[] | undefined;
|
|
645
|
+
readonly lowerCaseRefNames: string[] | undefined;
|
|
646
|
+
readonly allRefNamesWithLowerCase: string[] | undefined;
|
|
647
|
+
readonly rpcManager: import("@jbrowse/core/rpc/RpcManager").default;
|
|
648
|
+
readonly refNameColors: string[];
|
|
649
|
+
} & {
|
|
650
|
+
readonly refNames: string[] | undefined;
|
|
651
|
+
} & {
|
|
652
|
+
getCanonicalRefName(refName: string): string | undefined;
|
|
653
|
+
getRefNameColor(refName: string): string | undefined;
|
|
654
|
+
isValidRefName(refName: string): boolean;
|
|
655
|
+
} & {
|
|
656
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
|
|
657
|
+
setError(e: unknown): void;
|
|
658
|
+
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
659
|
+
setRefNameAliases(aliases: {
|
|
660
|
+
[x: string]: string | undefined;
|
|
661
|
+
}, lcAliases: {
|
|
662
|
+
[x: string]: string | undefined;
|
|
663
|
+
}): void;
|
|
664
|
+
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
665
|
+
setLoadingP(p?: Promise<void> | undefined): void;
|
|
666
|
+
load(): Promise<void>;
|
|
667
|
+
loadPre(): Promise<void>;
|
|
668
|
+
} & {
|
|
669
|
+
getAdapterMapEntry(adapterConf: unknown, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
670
|
+
getRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
671
|
+
[x: string]: string | undefined;
|
|
672
|
+
}>;
|
|
673
|
+
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
674
|
+
[x: string]: string | undefined;
|
|
675
|
+
}>;
|
|
676
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
677
|
+
}): Promise<void>;
|
|
438
678
|
navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string | undefined): Promise<void>;
|
|
439
679
|
navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation): void;
|
|
440
680
|
navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation[]): void;
|
|
@@ -574,7 +814,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
574
814
|
} & {
|
|
575
815
|
moveTrack(movingId: string, targetId: string): void;
|
|
576
816
|
closeView(): void;
|
|
577
|
-
toggleTrack(trackId: string):
|
|
817
|
+
toggleTrack(trackId: string): boolean;
|
|
578
818
|
setTrackLabels(setting: "offset" | "hidden" | "overlapping"): void;
|
|
579
819
|
toggleCenterLine(): void;
|
|
580
820
|
setDisplayedRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
@@ -624,6 +864,126 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
624
864
|
} & {
|
|
625
865
|
moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined): void;
|
|
626
866
|
navToLocString(input: string, optAssemblyName?: string | undefined): Promise<void>;
|
|
867
|
+
navToSearchString({ input, assembly, }: {
|
|
868
|
+
input: string;
|
|
869
|
+
assembly: {
|
|
870
|
+
configuration: any;
|
|
871
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
872
|
+
error: unknown;
|
|
873
|
+
loaded: boolean;
|
|
874
|
+
loadingP: Promise<void> | undefined;
|
|
875
|
+
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
876
|
+
refNameAliases: {
|
|
877
|
+
[x: string]: string | undefined;
|
|
878
|
+
} | undefined;
|
|
879
|
+
lowerCaseRefNameAliases: {
|
|
880
|
+
[x: string]: string | undefined;
|
|
881
|
+
} | undefined;
|
|
882
|
+
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
883
|
+
} & {
|
|
884
|
+
getConf(arg: string): any;
|
|
885
|
+
} & {
|
|
886
|
+
readonly initialized: boolean;
|
|
887
|
+
readonly name: string;
|
|
888
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined; /**
|
|
889
|
+
* #property
|
|
890
|
+
*/
|
|
891
|
+
readonly aliases: string[];
|
|
892
|
+
readonly displayName: string | undefined;
|
|
893
|
+
hasName(name: string): boolean;
|
|
894
|
+
readonly allAliases: string[];
|
|
895
|
+
readonly allRefNames: string[] | undefined;
|
|
896
|
+
readonly lowerCaseRefNames: string[] | undefined;
|
|
897
|
+
readonly allRefNamesWithLowerCase: string[] | undefined;
|
|
898
|
+
readonly rpcManager: import("@jbrowse/core/rpc/RpcManager").default;
|
|
899
|
+
readonly refNameColors: string[];
|
|
900
|
+
} & {
|
|
901
|
+
readonly refNames: string[] | undefined;
|
|
902
|
+
} & {
|
|
903
|
+
getCanonicalRefName(refName: string): string | undefined;
|
|
904
|
+
getRefNameColor(refName: string): string | undefined;
|
|
905
|
+
isValidRefName(refName: string): boolean;
|
|
906
|
+
} & {
|
|
907
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
|
|
908
|
+
setError(e: unknown): void;
|
|
909
|
+
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
910
|
+
setRefNameAliases(aliases: {
|
|
911
|
+
[x: string]: string | undefined;
|
|
912
|
+
}, lcAliases: {
|
|
913
|
+
[x: string]: string | undefined;
|
|
914
|
+
}): void;
|
|
915
|
+
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
916
|
+
setLoadingP(p?: Promise<void> | undefined): void;
|
|
917
|
+
load(): Promise<void>;
|
|
918
|
+
loadPre(): Promise<void>;
|
|
919
|
+
} & {
|
|
920
|
+
getAdapterMapEntry(adapterConf: unknown, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
921
|
+
getRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
922
|
+
[x: string]: string | undefined;
|
|
923
|
+
}>;
|
|
924
|
+
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
925
|
+
[x: string]: string | undefined;
|
|
926
|
+
}>;
|
|
927
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
928
|
+
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
|
|
929
|
+
}, {
|
|
930
|
+
error: unknown;
|
|
931
|
+
loaded: boolean;
|
|
932
|
+
loadingP: Promise<void> | undefined;
|
|
933
|
+
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
934
|
+
refNameAliases: {
|
|
935
|
+
[x: string]: string | undefined;
|
|
936
|
+
} | undefined;
|
|
937
|
+
lowerCaseRefNameAliases: {
|
|
938
|
+
[x: string]: string | undefined;
|
|
939
|
+
} | undefined;
|
|
940
|
+
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
941
|
+
} & {
|
|
942
|
+
getConf(arg: string): any;
|
|
943
|
+
} & {
|
|
944
|
+
readonly initialized: boolean;
|
|
945
|
+
readonly name: string;
|
|
946
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined; /**
|
|
947
|
+
* #property
|
|
948
|
+
*/
|
|
949
|
+
readonly aliases: string[];
|
|
950
|
+
readonly displayName: string | undefined;
|
|
951
|
+
hasName(name: string): boolean;
|
|
952
|
+
readonly allAliases: string[];
|
|
953
|
+
readonly allRefNames: string[] | undefined;
|
|
954
|
+
readonly lowerCaseRefNames: string[] | undefined;
|
|
955
|
+
readonly allRefNamesWithLowerCase: string[] | undefined;
|
|
956
|
+
readonly rpcManager: import("@jbrowse/core/rpc/RpcManager").default;
|
|
957
|
+
readonly refNameColors: string[];
|
|
958
|
+
} & {
|
|
959
|
+
readonly refNames: string[] | undefined;
|
|
960
|
+
} & {
|
|
961
|
+
getCanonicalRefName(refName: string): string | undefined;
|
|
962
|
+
getRefNameColor(refName: string): string | undefined;
|
|
963
|
+
isValidRefName(refName: string): boolean;
|
|
964
|
+
} & {
|
|
965
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
|
|
966
|
+
setError(e: unknown): void;
|
|
967
|
+
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
968
|
+
setRefNameAliases(aliases: {
|
|
969
|
+
[x: string]: string | undefined;
|
|
970
|
+
}, lcAliases: {
|
|
971
|
+
[x: string]: string | undefined;
|
|
972
|
+
}): void;
|
|
973
|
+
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
974
|
+
setLoadingP(p?: Promise<void> | undefined): void;
|
|
975
|
+
load(): Promise<void>;
|
|
976
|
+
loadPre(): Promise<void>;
|
|
977
|
+
} & {
|
|
978
|
+
getAdapterMapEntry(adapterConf: unknown, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
979
|
+
getRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
980
|
+
[x: string]: string | undefined;
|
|
981
|
+
}>;
|
|
982
|
+
getReverseRefNameMapForAdapter(adapterConf: unknown, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
983
|
+
[x: string]: string | undefined;
|
|
984
|
+
}>;
|
|
985
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
986
|
+
}): Promise<void>;
|
|
627
987
|
navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string | undefined): Promise<void>;
|
|
628
988
|
navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation): void;
|
|
629
989
|
navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation[]): void;
|
|
@@ -667,7 +1027,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
667
1027
|
setMiddleComparativeHeight(n: number): number;
|
|
668
1028
|
toggleLinkViews(): void;
|
|
669
1029
|
activateTrackSelector(): import("@jbrowse/core/util").Widget | undefined;
|
|
670
|
-
toggleTrack(trackId: string):
|
|
1030
|
+
toggleTrack(trackId: string): boolean;
|
|
671
1031
|
showTrack(trackId: string, initialSnapshot?: {}): void;
|
|
672
1032
|
hideTrack(trackId: string): number;
|
|
673
1033
|
squareView(): void;
|
|
@@ -58,6 +58,11 @@ declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/c
|
|
|
58
58
|
defaultValue: number;
|
|
59
59
|
description: string;
|
|
60
60
|
};
|
|
61
|
+
maxDepth: {
|
|
62
|
+
type: string;
|
|
63
|
+
defaultValue: number;
|
|
64
|
+
description: string;
|
|
65
|
+
};
|
|
61
66
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
62
67
|
formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
63
68
|
config: {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { Dialog } from '@jbrowse/core/ui';
|
|
3
|
+
import { getSession } from '@jbrowse/core/util';
|
|
4
|
+
import { Button, Checkbox, DialogActions, DialogContent, FormControlLabel, TextField, } from '@mui/material';
|
|
5
|
+
import { navToSynteny } from './util';
|
|
6
|
+
import { makeStyles } from 'tss-react/mui';
|
|
7
|
+
const useStyles = makeStyles()({
|
|
8
|
+
padding: {
|
|
9
|
+
margin: 10,
|
|
10
|
+
border: '1px solid #ccc',
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
export default function LaunchSyntenyViewDialog({ model, feature, handleClose, }) {
|
|
14
|
+
const { classes } = useStyles();
|
|
15
|
+
const inverted = feature.get('strand') === -1;
|
|
16
|
+
const [horizontallyFlip, setHorizontallyFlip] = useState(inverted);
|
|
17
|
+
const [windowSize, setWindowSize] = useState('1000');
|
|
18
|
+
return (React.createElement(Dialog, { open: true, title: "Launch synteny view", onClose: handleClose },
|
|
19
|
+
React.createElement(DialogContent, null,
|
|
20
|
+
inverted ? (React.createElement(FormControlLabel, { className: classes.padding, control: React.createElement(Checkbox, { checked: horizontallyFlip, onChange: event => setHorizontallyFlip(event.target.checked) }), label: "Note: The feature is inverted in orientation on the target\n sequence. This will result in the lower panel having genomic\n coordinates decreasing left to right. Horizontally flip?" })) : null,
|
|
21
|
+
React.createElement(TextField, { label: "Add window size in bp", value: windowSize, onChange: event => setWindowSize(event.target.value) })),
|
|
22
|
+
React.createElement(DialogActions, null,
|
|
23
|
+
React.createElement(Button, { variant: "contained", onClick: () => {
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
25
|
+
;
|
|
26
|
+
(async () => {
|
|
27
|
+
try {
|
|
28
|
+
await navToSynteny({
|
|
29
|
+
feature,
|
|
30
|
+
windowSize: +windowSize,
|
|
31
|
+
horizontallyFlip,
|
|
32
|
+
model,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
catch (e) {
|
|
36
|
+
getSession(model).notify(`${e}`, 'error');
|
|
37
|
+
}
|
|
38
|
+
})();
|
|
39
|
+
handleClose();
|
|
40
|
+
} }, "Submit"),
|
|
41
|
+
React.createElement(Button, { variant: "contained", color: "secondary", onClick: () => handleClose() }, "Cancel"))));
|
|
42
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Feature } from '@jbrowse/core/util';
|
|
2
|
+
import { IAnyStateTreeNode } from 'mobx-state-tree';
|
|
3
|
+
export declare function navToSynteny({ feature, windowSize: ws, model, horizontallyFlip, }: {
|
|
4
|
+
windowSize: number;
|
|
5
|
+
horizontallyFlip: boolean;
|
|
6
|
+
feature: Feature;
|
|
7
|
+
model: IAnyStateTreeNode;
|
|
8
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { getSession, getContainingTrack, getContainingView, } from '@jbrowse/core/util';
|
|
2
|
+
import { MismatchParser } from '@jbrowse/plugin-alignments';
|
|
3
|
+
import { when } from 'mobx';
|
|
4
|
+
const { parseCigar } = MismatchParser;
|
|
5
|
+
function f(n) {
|
|
6
|
+
return Math.floor(n);
|
|
7
|
+
}
|
|
8
|
+
function findPosInCigar(cigar, startX) {
|
|
9
|
+
let featX = 0;
|
|
10
|
+
let mateX = 0;
|
|
11
|
+
for (let i = 0; i < cigar.length; i++) {
|
|
12
|
+
const len = +cigar[i];
|
|
13
|
+
const op = cigar[i + 1];
|
|
14
|
+
const min = Math.min(len, startX - featX);
|
|
15
|
+
if (featX >= startX) {
|
|
16
|
+
break;
|
|
17
|
+
}
|
|
18
|
+
else if (op === 'I') {
|
|
19
|
+
mateX += len;
|
|
20
|
+
}
|
|
21
|
+
else if (op === 'D') {
|
|
22
|
+
featX += min;
|
|
23
|
+
}
|
|
24
|
+
else if (op === 'M') {
|
|
25
|
+
mateX += min;
|
|
26
|
+
featX += min;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return [featX, mateX];
|
|
30
|
+
}
|
|
31
|
+
export async function navToSynteny({ feature, windowSize: ws, model, horizontallyFlip, }) {
|
|
32
|
+
const session = getSession(model);
|
|
33
|
+
const track = getContainingTrack(model);
|
|
34
|
+
const view = getContainingView(model);
|
|
35
|
+
const reg = view.dynamicBlocks.contentBlocks[0];
|
|
36
|
+
const cigar = feature.get('CIGAR');
|
|
37
|
+
const strand = feature.get('strand');
|
|
38
|
+
const regStart = reg.start;
|
|
39
|
+
const regEnd = reg.end;
|
|
40
|
+
const featStart = feature.get('start');
|
|
41
|
+
const featEnd = feature.get('end');
|
|
42
|
+
const mate = feature.get('mate');
|
|
43
|
+
const mateStart = mate.start;
|
|
44
|
+
const mateEnd = mate.end;
|
|
45
|
+
const mateAsm = mate.assemblyName;
|
|
46
|
+
const mateRef = mate.refName;
|
|
47
|
+
const featAsm = reg.assemblyName;
|
|
48
|
+
const featRef = reg.refName;
|
|
49
|
+
let rMateStart;
|
|
50
|
+
let rMateEnd;
|
|
51
|
+
let rFeatStart;
|
|
52
|
+
let rFeatEnd;
|
|
53
|
+
if (cigar) {
|
|
54
|
+
const p = parseCigar(cigar);
|
|
55
|
+
const [fStartX, mStartX] = findPosInCigar(p, regStart - featStart);
|
|
56
|
+
const [fEndX, mEndX] = findPosInCigar(p, regEnd - featStart);
|
|
57
|
+
// avoid multiply by 0 with strand undefined
|
|
58
|
+
const flipper = strand === -1 ? -1 : 1;
|
|
59
|
+
rFeatStart = featStart + fStartX;
|
|
60
|
+
rFeatEnd = featStart + fEndX;
|
|
61
|
+
rMateStart = (strand === -1 ? mateEnd : mateStart) + mStartX * flipper;
|
|
62
|
+
rMateEnd = (strand === -1 ? mateEnd : mateStart) + mEndX * flipper;
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
rFeatStart = featStart;
|
|
66
|
+
rFeatEnd = featEnd;
|
|
67
|
+
rMateStart = mateStart;
|
|
68
|
+
rMateEnd = mateEnd;
|
|
69
|
+
}
|
|
70
|
+
const trackId = track.configuration.trackId;
|
|
71
|
+
const view2 = session.addView('LinearSyntenyView', {
|
|
72
|
+
type: 'LinearSyntenyView',
|
|
73
|
+
views: [
|
|
74
|
+
{
|
|
75
|
+
id: `${Math.random()}`,
|
|
76
|
+
type: 'LinearGenomeView',
|
|
77
|
+
hideHeader: true,
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
id: `${Math.random()}`,
|
|
81
|
+
type: 'LinearGenomeView',
|
|
82
|
+
hideHeader: true,
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
tracks: [
|
|
86
|
+
{
|
|
87
|
+
configuration: trackId,
|
|
88
|
+
type: 'SyntenyTrack',
|
|
89
|
+
displays: [
|
|
90
|
+
{
|
|
91
|
+
type: 'LinearSyntenyDisplay',
|
|
92
|
+
configuration: `${trackId}-LinearSyntenyDisplay`,
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
});
|
|
98
|
+
const l1 = `${featRef}:${f(rFeatStart - ws)}-${f(rFeatEnd + ws)}`;
|
|
99
|
+
const m1 = Math.min(rMateStart, rMateEnd);
|
|
100
|
+
const m2 = Math.max(rMateStart, rMateEnd);
|
|
101
|
+
const l2 = `${mateRef}:${f(m1 - ws)}-${f(m2 + ws)}${horizontallyFlip ? '[rev]' : ''}`;
|
|
102
|
+
await when(() => view2.width !== undefined);
|
|
103
|
+
await Promise.all([
|
|
104
|
+
view2.views[0].navToLocString(l1, featAsm),
|
|
105
|
+
view2.views[1].navToLocString(l2, mateAsm),
|
|
106
|
+
]);
|
|
107
|
+
}
|