jbrowse-plugin-mafviewer 1.3.2 → 1.4.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.
Files changed (58) hide show
  1. package/README.md +0 -47
  2. package/dist/LinearMafRenderer/LinearMafRenderer.d.ts +9 -3
  3. package/dist/LinearMafRenderer/components/LinearMafRendering.d.ts +13 -0
  4. package/dist/LinearMafRenderer/components/LinearMafRendering.js +46 -0
  5. package/dist/LinearMafRenderer/components/LinearMafRendering.js.map +1 -0
  6. package/dist/LinearMafRenderer/index.js +1 -1
  7. package/dist/LinearMafRenderer/index.js.map +1 -1
  8. package/dist/LinearMafRenderer/makeImageData.d.ts +3 -1
  9. package/dist/LinearMafRenderer/makeImageData.js +11 -4
  10. package/dist/LinearMafRenderer/makeImageData.js.map +1 -1
  11. package/dist/LinearMafRenderer/rendering/features.d.ts +0 -17
  12. package/dist/LinearMafRenderer/rendering/features.js +4 -21
  13. package/dist/LinearMafRenderer/rendering/features.js.map +1 -1
  14. package/dist/LinearMafRenderer/rendering/gaps.d.ts +1 -11
  15. package/dist/LinearMafRenderer/rendering/gaps.js +1 -17
  16. package/dist/LinearMafRenderer/rendering/gaps.js.map +1 -1
  17. package/dist/LinearMafRenderer/rendering/insertions.d.ts +1 -13
  18. package/dist/LinearMafRenderer/rendering/insertions.js +9 -15
  19. package/dist/LinearMafRenderer/rendering/insertions.js.map +1 -1
  20. package/dist/LinearMafRenderer/rendering/matches.d.ts +1 -12
  21. package/dist/LinearMafRenderer/rendering/matches.js +8 -15
  22. package/dist/LinearMafRenderer/rendering/matches.js.map +1 -1
  23. package/dist/LinearMafRenderer/rendering/mismatches.d.ts +1 -1
  24. package/dist/LinearMafRenderer/rendering/mismatches.js +14 -4
  25. package/dist/LinearMafRenderer/rendering/mismatches.js.map +1 -1
  26. package/dist/LinearMafRenderer/rendering/spatialIndex.d.ts +7 -58
  27. package/dist/LinearMafRenderer/rendering/spatialIndex.js +5 -85
  28. package/dist/LinearMafRenderer/rendering/spatialIndex.js.map +1 -1
  29. package/dist/LinearMafRenderer/rendering/types.d.ts +4 -16
  30. package/dist/LinearMafRenderer/rendering/types.js.map +1 -1
  31. package/dist/MafAddTrackWorkflow/AddTrackWorkflow.js +37 -35
  32. package/dist/MafAddTrackWorkflow/AddTrackWorkflow.js.map +1 -1
  33. package/dist/index.js +0 -2
  34. package/dist/index.js.map +1 -1
  35. package/dist/jbrowse-plugin-mafviewer.umd.production.min.js +5 -28
  36. package/dist/jbrowse-plugin-mafviewer.umd.production.min.js.map +4 -4
  37. package/dist/out.js +12955 -15165
  38. package/dist/out.js.map +4 -4
  39. package/package.json +3 -4
  40. package/src/LinearMafRenderer/components/{ReactComponent.tsx → LinearMafRendering.tsx} +16 -21
  41. package/src/LinearMafRenderer/index.ts +1 -1
  42. package/src/LinearMafRenderer/makeImageData.ts +20 -5
  43. package/src/LinearMafRenderer/rendering/features.ts +4 -31
  44. package/src/LinearMafRenderer/rendering/gaps.ts +0 -38
  45. package/src/LinearMafRenderer/rendering/insertions.ts +12 -28
  46. package/src/LinearMafRenderer/rendering/matches.ts +13 -30
  47. package/src/LinearMafRenderer/rendering/mismatches.ts +20 -32
  48. package/src/LinearMafRenderer/rendering/spatialIndex.ts +9 -105
  49. package/src/LinearMafRenderer/rendering/types.ts +4 -20
  50. package/src/MafAddTrackWorkflow/AddTrackWorkflow.tsx +5 -6
  51. package/src/index.ts +0 -2
  52. package/src/BgzipTaffyAdapter/BgzipTaffyAdapter.ts +0 -307
  53. package/src/BgzipTaffyAdapter/configSchema.ts +0 -59
  54. package/src/BgzipTaffyAdapter/index.ts +0 -16
  55. package/src/BgzipTaffyAdapter/rowInstructions.ts +0 -91
  56. package/src/BgzipTaffyAdapter/types.ts +0 -16
  57. package/src/BgzipTaffyAdapter/util.ts +0 -25
  58. package/src/BgzipTaffyAdapter/virtualOffset.ts +0 -29
@@ -1,60 +1,9 @@
1
1
  import type { RenderedBase, RenderingContext } from './types';
2
- /**
3
- * Creates a RenderedBase object for spatial indexing
4
- * @param xPos - X coordinate of the base
5
- * @param rowTop - Y coordinate of the row top
6
- * @param context - Rendering context with dimensions
7
- * @param pos - Genomic coordinate
8
- * @param chr - Chromosome/sequence name
9
- * @param sampleId - Sample identifier
10
- * @param base - The base character
11
- * @param isMatch - Whether this base matches the reference
12
- * @param isMismatch - Whether this base is a mismatch
13
- * @param isGap - Whether this is a gap
14
- * @param isInsertion - Whether this is an insertion
15
- * @param featureId - Feature identifier
16
- */
17
- export declare function createRenderedBase(xPos: number, rowTop: number, context: RenderingContext, pos: number, chr: string, sampleId: string, base: string, isMatch: boolean, isMismatch: boolean, isGap: boolean, isInsertion: boolean, featureId: string): RenderedBase;
18
- /**
19
- * Creates a RenderedBase object for insertions with custom width
20
- * Uses the actual rendered width instead of the standard scale-based width
21
- * This ensures accurate spatial queries for different insertion rendering types:
22
- * - Small insertions: INSERTION_LINE_WIDTH (1px) or INSERTION_BORDER_HEIGHT (5px) with borders
23
- * - Large insertions (text): measured text width + padding
24
- * - Large insertions (line): INSERTION_BORDER_WIDTH (2px)
25
- *
26
- * @param xPos - X coordinate of the insertion
27
- * @param rowTop - Y coordinate of the row top
28
- * @param width - Actual rendered width of the insertion
29
- * @param context - Rendering context with dimensions
30
- * @param pos - Genomic coordinate
31
- * @param chr - Chromosome/sequence name
32
- * @param sampleId - Sample identifier
33
- * @param insertionSequence - The insertion sequence
34
- * @param featureId - Feature identifier
35
- */
36
- export declare function createRenderedInsertion(xPos: number, rowTop: number, width: number, context: RenderingContext, pos: number, chr: string, sampleId: string, insertionSequence: string, featureId: string): RenderedBase;
37
- /**
38
- * Checks if an item should be added to the spatial index based on distance filtering
39
- * Only returns true if the X position is >0.5px away from the last inserted item
40
- * This reduces spatial index density while maintaining useful spatial queries
41
- *
42
- * @param xPos - X position to check
43
- * @param context - Rendering context with lastInsertedX tracking
44
- * @param bypassDistanceFilter - If true, always return true (e.g., for insertions)
45
- * @returns Whether the item should be added to spatial index
46
- *
47
- * @example
48
- * // Items at X positions: 100.0, 100.3, 100.8, 101.5
49
- * // Only items at 100.0, 100.8, 101.5 would return true (>0.5px apart)
50
- * // Unless bypassDistanceFilter=true, then all would return true
51
- */
2
+ export declare function createRenderedBaseCoords(xPos: number, rowTop: number, context: RenderingContext): {
3
+ minX: number;
4
+ minY: number;
5
+ maxX: number;
6
+ maxY: number;
7
+ };
52
8
  export declare function shouldAddToSpatialIndex(xPos: number, context: RenderingContext, bypassDistanceFilter?: boolean): boolean;
53
- /**
54
- * Adds a rendered base directly to the RBush spatial index
55
- * Updates the lastInsertedX tracking for distance filtering
56
- *
57
- * @param context - Rendering context with spatial index
58
- * @param renderedBase - The base to add to the spatial index
59
- */
60
- export declare function addToSpatialIndex(context: RenderingContext, renderedBase: RenderedBase): void;
9
+ export declare function addToSpatialIndex(context: RenderingContext, minX: number, minY: number, maxX: number, maxY: number, renderedBase: RenderedBase): void;
@@ -1,99 +1,19 @@
1
1
  import { GAP_STROKE_OFFSET, MIN_X_DISTANCE } from './types';
2
- /**
3
- * Creates a RenderedBase object for spatial indexing
4
- * @param xPos - X coordinate of the base
5
- * @param rowTop - Y coordinate of the row top
6
- * @param context - Rendering context with dimensions
7
- * @param pos - Genomic coordinate
8
- * @param chr - Chromosome/sequence name
9
- * @param sampleId - Sample identifier
10
- * @param base - The base character
11
- * @param isMatch - Whether this base matches the reference
12
- * @param isMismatch - Whether this base is a mismatch
13
- * @param isGap - Whether this is a gap
14
- * @param isInsertion - Whether this is an insertion
15
- * @param featureId - Feature identifier
16
- */
17
- export function createRenderedBase(xPos, rowTop, context, pos, chr, sampleId, base, isMatch, isMismatch, isGap, isInsertion, featureId) {
2
+ export function createRenderedBaseCoords(xPos, rowTop, context) {
18
3
  return {
19
4
  minX: xPos,
20
5
  minY: rowTop,
21
6
  maxX: xPos + context.scale + GAP_STROKE_OFFSET,
22
7
  maxY: rowTop + context.h,
23
- pos,
24
- chr,
25
- sampleId,
26
- base,
27
- isMatch,
28
- isMismatch,
29
- isGap,
30
- isInsertion,
31
- featureId,
32
8
  };
33
9
  }
34
- /**
35
- * Creates a RenderedBase object for insertions with custom width
36
- * Uses the actual rendered width instead of the standard scale-based width
37
- * This ensures accurate spatial queries for different insertion rendering types:
38
- * - Small insertions: INSERTION_LINE_WIDTH (1px) or INSERTION_BORDER_HEIGHT (5px) with borders
39
- * - Large insertions (text): measured text width + padding
40
- * - Large insertions (line): INSERTION_BORDER_WIDTH (2px)
41
- *
42
- * @param xPos - X coordinate of the insertion
43
- * @param rowTop - Y coordinate of the row top
44
- * @param width - Actual rendered width of the insertion
45
- * @param context - Rendering context with dimensions
46
- * @param pos - Genomic coordinate
47
- * @param chr - Chromosome/sequence name
48
- * @param sampleId - Sample identifier
49
- * @param insertionSequence - The insertion sequence
50
- * @param featureId - Feature identifier
51
- */
52
- export function createRenderedInsertion(xPos, rowTop, width, context, pos, chr, sampleId, insertionSequence, featureId) {
53
- return {
54
- minX: xPos,
55
- minY: rowTop,
56
- maxX: xPos + width,
57
- maxY: rowTop + context.h,
58
- pos,
59
- chr,
60
- sampleId,
61
- base: insertionSequence,
62
- isMatch: false,
63
- isMismatch: false,
64
- isGap: false,
65
- isInsertion: true,
66
- featureId,
67
- };
68
- }
69
- /**
70
- * Checks if an item should be added to the spatial index based on distance filtering
71
- * Only returns true if the X position is >0.5px away from the last inserted item
72
- * This reduces spatial index density while maintaining useful spatial queries
73
- *
74
- * @param xPos - X position to check
75
- * @param context - Rendering context with lastInsertedX tracking
76
- * @param bypassDistanceFilter - If true, always return true (e.g., for insertions)
77
- * @returns Whether the item should be added to spatial index
78
- *
79
- * @example
80
- * // Items at X positions: 100.0, 100.3, 100.8, 101.5
81
- * // Only items at 100.0, 100.8, 101.5 would return true (>0.5px apart)
82
- * // Unless bypassDistanceFilter=true, then all would return true
83
- */
84
10
  export function shouldAddToSpatialIndex(xPos, context, bypassDistanceFilter = false) {
85
11
  return (bypassDistanceFilter ||
86
12
  Math.abs(xPos - context.lastInsertedX) > MIN_X_DISTANCE);
87
13
  }
88
- /**
89
- * Adds a rendered base directly to the RBush spatial index
90
- * Updates the lastInsertedX tracking for distance filtering
91
- *
92
- * @param context - Rendering context with spatial index
93
- * @param renderedBase - The base to add to the spatial index
94
- */
95
- export function addToSpatialIndex(context, renderedBase) {
96
- context.spatialIndex.insert(renderedBase);
97
- context.lastInsertedX = renderedBase.minX;
14
+ export function addToSpatialIndex(context, minX, minY, maxX, maxY, renderedBase) {
15
+ context.spatialIndex.push(renderedBase);
16
+ context.spatialIndexCoords.push(minX, minY, maxX, maxY);
17
+ context.lastInsertedX = minX;
98
18
  }
99
19
  //# sourceMappingURL=spatialIndex.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"spatialIndex.js","sourceRoot":"","sources":["../../../src/LinearMafRenderer/rendering/spatialIndex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAI3D;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,kBAAkB,CAChC,IAAY,EACZ,MAAc,EACd,OAAyB,EACzB,GAAW,EACX,GAAW,EACX,QAAgB,EAChB,IAAY,EACZ,OAAgB,EAChB,UAAmB,EACnB,KAAc,EACd,WAAoB,EACpB,SAAiB;IAEjB,OAAO;QACL,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,KAAK,GAAG,iBAAiB;QAC9C,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;QACxB,GAAG;QACH,GAAG;QACH,QAAQ;QACR,IAAI;QACJ,OAAO;QACP,UAAU;QACV,KAAK;QACL,WAAW;QACX,SAAS;KACV,CAAA;AACH,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,uBAAuB,CACrC,IAAY,EACZ,MAAc,EACd,KAAa,EACb,OAAyB,EACzB,GAAW,EACX,GAAW,EACX,QAAgB,EAChB,iBAAyB,EACzB,SAAiB;IAEjB,OAAO;QACL,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,IAAI,GAAG,KAAK;QAClB,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;QACxB,GAAG;QACH,GAAG;QACH,QAAQ;QACR,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,KAAK;QACd,UAAU,EAAE,KAAK;QACjB,KAAK,EAAE,KAAK;QACZ,WAAW,EAAE,IAAI;QACjB,SAAS;KACV,CAAA;AACH,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,uBAAuB,CACrC,IAAY,EACZ,OAAyB,EACzB,oBAAoB,GAAG,KAAK;IAE5B,OAAO,CACL,oBAAoB;QACpB,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,GAAG,cAAc,CACxD,CAAA;AACH,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,iBAAiB,CAC/B,OAAyB,EACzB,YAA0B;IAE1B,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,YAAY,CAAC,CAAA;IACzC,OAAO,CAAC,aAAa,GAAG,YAAY,CAAC,IAAI,CAAA;AAC3C,CAAC"}
1
+ {"version":3,"file":"spatialIndex.js","sourceRoot":"","sources":["../../../src/LinearMafRenderer/rendering/spatialIndex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAI3D,MAAM,UAAU,wBAAwB,CACtC,IAAY,EACZ,MAAc,EACd,OAAyB;IAEzB,OAAO;QACL,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,KAAK,GAAG,iBAAiB;QAC9C,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;KACzB,CAAA;AACH,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,IAAY,EACZ,OAAyB,EACzB,oBAAoB,GAAG,KAAK;IAE5B,OAAO,CACL,oBAAoB;QACpB,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,GAAG,cAAc,CACxD,CAAA;AACH,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,OAAyB,EACzB,IAAY,EACZ,IAAY,EACZ,IAAY,EACZ,IAAY,EACZ,YAA0B;IAE1B,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;IACvC,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;IACvD,OAAO,CAAC,aAAa,GAAG,IAAI,CAAA;AAC9B,CAAC"}
@@ -1,4 +1,3 @@
1
- import RBush from 'rbush';
2
1
  export declare const FONT_CONFIG = "bold 10px Courier New,monospace";
3
2
  export declare const CHAR_SIZE_WIDTH = 10;
4
3
  export declare const GAP_STROKE_OFFSET = 0.4;
@@ -21,24 +20,12 @@ export interface GenomicRegion {
21
20
  end: number;
22
21
  refName: string;
23
22
  }
24
- /**
25
- * Represents a rendered letter/base with its spatial and genomic coordinates
26
- * This structure is designed for insertion into an RBush spatial index
27
- */
28
23
  export interface RenderedBase {
29
- minX: number;
30
- minY: number;
31
- maxX: number;
32
- maxY: number;
33
24
  pos: number;
34
25
  chr: string;
35
- sampleId: string;
36
26
  base: string;
37
- isMatch: boolean;
38
- isMismatch: boolean;
39
- isGap: boolean;
40
- isInsertion: boolean;
41
- featureId: string;
27
+ sampleId: number;
28
+ isInsertion?: boolean;
42
29
  }
43
30
  /**
44
31
  * Shared rendering context containing all necessary parameters for rendering operations
@@ -56,7 +43,8 @@ export interface RenderingContext {
56
43
  showAllLetters: boolean;
57
44
  mismatchRendering: boolean;
58
45
  showAsUpperCase: boolean;
59
- spatialIndex: RBush<RenderedBase>;
46
+ spatialIndex: RenderedBase[];
47
+ spatialIndexCoords: number[];
60
48
  lastInsertedX: number;
61
49
  }
62
50
  export interface AlignmentRecord {
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/LinearMafRenderer/rendering/types.ts"],"names":[],"mappings":"AAEA,sBAAsB;AACtB,MAAM,CAAC,MAAM,WAAW,GAAG,iCAAiC,CAAA;AAC5D,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,CAAA;AACjC,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;AACpC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAA;AACrC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAA;AACvC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAA;AAClC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAA;AACrC,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,CAAA;AAC3C,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAA;AACtC,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAA;AAC3C,MAAM,CAAC,MAAM,wBAAwB,GAAG,EAAE,CAAA;AAC1C,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAA;AACxC,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/LinearMafRenderer/rendering/types.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,MAAM,CAAC,MAAM,WAAW,GAAG,iCAAiC,CAAA;AAC5D,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,CAAA;AACjC,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;AACpC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAA;AACrC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAA;AACvC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAA;AAClC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAA;AACrC,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,CAAA;AAC3C,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAA;AACtC,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAA;AAC3C,MAAM,CAAC,MAAM,wBAAwB,GAAG,EAAE,CAAA;AAC1C,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAA;AACxC,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA"}
@@ -39,24 +39,25 @@ export default function MultiMAFWidget({ model }) {
39
39
  } }, ['BigMafAdapter', 'MafTabixAdapter'].map(r => (React.createElement(FormControlLabel, { key: r, value: r, control: React.createElement(Radio, null), checked: fileTypeChoice === r, label: r }))))),
40
40
  fileTypeChoice === 'BigMafAdapter' ? (React.createElement(FileSelector, { location: loc, name: "Path to bigMaf", rootModel: rootModel, setLocation: arg => {
41
41
  setLoc(arg);
42
- } })) : fileTypeChoice === 'MafTabixAdapter' ? (React.createElement(React.Fragment, null,
43
- React.createElement(FormControl, null,
44
- React.createElement(FormLabel, null, "Index type"),
45
- React.createElement(RadioGroup, { value: fileTypeChoice, onChange: event => {
46
- setIndexTypeChoice(event.target.value);
47
- } }, ['TBI', 'CSI'].map(r => (React.createElement(FormControlLabel, { key: r, value: r, control: React.createElement(Radio, null), checked: indexTypeChoice === r, label: r }))))),
48
- React.createElement(FileSelector, { location: loc, name: "Path to MAF tabix", rootModel: rootModel, setLocation: arg => {
49
- setLoc(arg);
50
- } }),
51
- React.createElement(FileSelector, { location: indexLoc, name: "Path to MAF tabix index", rootModel: rootModel, setLocation: arg => {
52
- setIndexLoc(arg);
53
- } }))) : (React.createElement(React.Fragment, null,
54
- React.createElement(FileSelector, { location: loc, name: "Path to TAF.gz (Bgzipped TAF)", rootModel: rootModel, setLocation: arg => {
55
- setLoc(arg);
56
- } }),
57
- React.createElement(FileSelector, { location: indexLoc, name: "Path to TAF.gz.tai (TAF index)", rootModel: rootModel, setLocation: arg => {
58
- setIndexLoc(arg);
59
- } })))),
42
+ } })) : // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
43
+ fileTypeChoice === 'MafTabixAdapter' ? (React.createElement(React.Fragment, null,
44
+ React.createElement(FormControl, null,
45
+ React.createElement(FormLabel, null, "Index type"),
46
+ React.createElement(RadioGroup, { value: fileTypeChoice, onChange: event => {
47
+ setIndexTypeChoice(event.target.value);
48
+ } }, ['TBI', 'CSI'].map(r => (React.createElement(FormControlLabel, { key: r, value: r, control: React.createElement(Radio, null), checked: indexTypeChoice === r, label: r }))))),
49
+ React.createElement(FileSelector, { location: loc, name: "Path to MAF tabix", rootModel: rootModel, setLocation: arg => {
50
+ setLoc(arg);
51
+ } }),
52
+ React.createElement(FileSelector, { location: indexLoc, name: "Path to MAF tabix index", rootModel: rootModel, setLocation: arg => {
53
+ setIndexLoc(arg);
54
+ } }))) : (React.createElement(React.Fragment, null,
55
+ React.createElement(FileSelector, { location: loc, name: "Path to TAF.gz (Bgzipped TAF)", rootModel: rootModel, setLocation: arg => {
56
+ setLoc(arg);
57
+ } }),
58
+ React.createElement(FileSelector, { location: indexLoc, name: "Path to TAF.gz.tai (TAF index)", rootModel: rootModel, setLocation: arg => {
59
+ setIndexLoc(arg);
60
+ } })))),
60
61
  React.createElement("div", null,
61
62
  React.createElement(FileSelector, { location: nhLoc, name: "Path to newick tree (.nh)", rootModel: rootModel, setLocation: arg => {
62
63
  setNhLoc(arg);
@@ -94,24 +95,25 @@ export default function MultiMAFWidget({ model }) {
94
95
  samples: sampleNames,
95
96
  nhLocation: nhLoc,
96
97
  }
97
- : fileTypeChoice === 'MafTabixAdapter'
98
- ? {
99
- type: fileTypeChoice,
100
- bedGzLocation: loc,
101
- nhLocation: nhLoc,
102
- index: {
103
- indexType: indexTypeChoice,
104
- location: indexLoc,
98
+ : // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
99
+ fileTypeChoice === 'MafTabixAdapter'
100
+ ? {
101
+ type: fileTypeChoice,
102
+ bedGzLocation: loc,
103
+ nhLocation: nhLoc,
104
+ index: {
105
+ indexType: indexTypeChoice,
106
+ location: indexLoc,
107
+ },
108
+ samples: sampleNames,
109
+ }
110
+ : {
111
+ type: fileTypeChoice,
112
+ tafGzLocation: loc,
113
+ taiLocation: indexLoc,
114
+ nhLocation: nhLoc,
115
+ samples: sampleNames,
105
116
  },
106
- samples: sampleNames,
107
- }
108
- : {
109
- type: fileTypeChoice,
110
- tafGzLocation: loc,
111
- taiLocation: indexLoc,
112
- nhLocation: nhLoc,
113
- samples: sampleNames,
114
- },
115
117
  });
116
118
  model.view?.showTrack(trackId);
117
119
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AddTrackWorkflow.js","sourceRoot":"","sources":["../../src/MafAddTrackWorkflow/AddTrackWorkflow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEvC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC7D,OAAO,EAEL,UAAU,EACV,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,KAAK,EACL,KAAK,EACL,UAAU,EACV,SAAS,GACV,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAI1C,MAAM,SAAS,GAAG,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACvC,OAAO,EAAE;QACP,KAAK,EAAE,MAAM;KACd;IACD,KAAK,EAAE;QACL,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE;QACvB,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE;KACzB;IACD,MAAM,EAAE;QACN,SAAS,EAAE,EAAE;QACb,YA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CAClB;gCACH,CAAC,CAAC,uEAAuE;oCACvE,cAAc,KAAK,iBAAiB;wCACpC,CAAC,CAAC;4CACE,IAAI,EAAE,cAAc;4CACpB,aAAa,EAAE,GAAG;4CAClB,UAAU,EAAE,KAAK;4CACjB,KAAK,EAAE;gDACL,SAAS,EAAE,eAAe;gDAC1B,QAAQ,EAAE,QAAQ;6CACnB;4CACD,OAAO,EAAE,WAAW;yCACrB;wCACH,CAAC,CAAC;4CACE,IAAI,EAAE,cAAc;4CACpB,aAAa,EAAE,GAAG;4CAClB,WAAW,EAAE,QAAQ;4CACrB,UAAU,EAAE,KAAK;4CACjB,OAAO,EAAE,WAAW;yCACrB;yBACV,CAAC,CAAA;wBAEF,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;oBAChC,CAAC;oBACD,KAAK,CAAC,SAAS,EAAE,CAAA;oBACjB,IAAI,yBAAyB,CAAC,OAAO,CAAC,EAAE,CAAC;wBACvC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAA;oBAC3B,CAAC;gBACH,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACX,QAAQ,CAAC,CAAC,CAAC,CAAA;gBACb,CAAC;YACH,CAAC,aAGM,CACH,CACT,CAAA;AACH,CAAC"}
package/dist/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import Plugin from '@jbrowse/core/Plugin';
2
2
  import { version } from '../package.json';
3
- import BgzipTaffyAdapterF from './BgzipTaffyAdapter';
4
3
  import BigMafAdapterF from './BigMafAdapter';
5
4
  import LinearMafDisplayF from './LinearMafDisplay';
6
5
  import LinearMafRendererF from './LinearMafRenderer';
@@ -18,7 +17,6 @@ export default class MafViewerPlugin extends Plugin {
18
17
  LinearMafDisplayF(pluginManager);
19
18
  LinearMafRendererF(pluginManager);
20
19
  MafTabixAdapterF(pluginManager);
21
- BgzipTaffyAdapterF(pluginManager);
22
20
  MafAddTrackWorkflowF(pluginManager);
23
21
  MafGetSequencesF(pluginManager);
24
22
  MafGetSamplesF(pluginManager);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,sBAAsB,CAAA;AAGzC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,kBAAkB,MAAM,qBAAqB,CAAA;AACpD,OAAO,cAAc,MAAM,iBAAiB,CAAA;AAC5C,OAAO,iBAAiB,MAAM,oBAAoB,CAAA;AAClD,OAAO,kBAAkB,MAAM,qBAAqB,CAAA;AACpD,OAAO,oBAAoB,MAAM,uBAAuB,CAAA;AACxD,OAAO,cAAc,MAAM,iBAAiB,CAAA;AAC5C,OAAO,gBAAgB,MAAM,mBAAmB,CAAA;AAChD,OAAO,gBAAgB,MAAM,mBAAmB,CAAA;AAChD,OAAO,SAAS,MAAM,YAAY,CAAA;AAElC,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,MAAM;IACjD,IAAI,GAAG,iBAAiB,CAAA;IACxB,OAAO,GAAG,OAAO,CAAA;IAEjB,OAAO,CAAC,aAA4B;QAClC,cAAc,CAAC,aAAa,CAAC,CAAA;QAC7B,SAAS,CAAC,aAAa,CAAC,CAAA;QACxB,iBAAiB,CAAC,aAAa,CAAC,CAAA;QAChC,kBAAkB,CAAC,aAAa,CAAC,CAAA;QACjC,gBAAgB,CAAC,aAAa,CAAC,CAAA;QAC/B,kBAAkB,CAAC,aAAa,CAAC,CAAA;QACjC,oBAAoB,CAAC,aAAa,CAAC,CAAA;QACnC,gBAAgB,CAAC,aAAa,CAAC,CAAA;QAC/B,cAAc,CAAC,aAAa,CAAC,CAAA;IAC/B,CAAC;IAED,SAAS,CAAC,cAA6B,IAAG,CAAC;CAC5C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,sBAAsB,CAAA;AAGzC,OAA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