@jbrowse/plugin-comparative-adapters 3.7.0 → 4.0.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 (115) hide show
  1. package/esm/BlastTabularAdapter/BlastTabularAdapter.js +8 -7
  2. package/esm/BlastTabularAdapter/configSchema.d.ts +2 -2
  3. package/esm/BlastTabularAdapter/index.js +2 -2
  4. package/esm/ChainAdapter/ChainAdapter.d.ts +2 -16
  5. package/esm/ChainAdapter/ChainAdapter.js +4 -3
  6. package/esm/ChainAdapter/configSchema.d.ts +2 -2
  7. package/esm/ChainAdapter/index.js +2 -2
  8. package/esm/ChainAdapter/util.js +2 -2
  9. package/esm/ComparativeAddTrackComponent/ComparativeAddTrackComponent.js +3 -4
  10. package/esm/ComparativeAddTrackComponent/index.js +2 -2
  11. package/esm/DeltaAdapter/DeltaAdapter.d.ts +2 -11
  12. package/esm/DeltaAdapter/DeltaAdapter.js +4 -3
  13. package/esm/DeltaAdapter/configSchema.d.ts +2 -2
  14. package/esm/DeltaAdapter/index.js +2 -2
  15. package/esm/DeltaAdapter/util.js +1 -1
  16. package/esm/GuessAdapter/index.js +1 -1
  17. package/esm/MCScanAddTrackComponent/MCScanAddTrackComponent.d.ts +1 -1
  18. package/esm/MCScanAddTrackComponent/MCScanAddTrackComponent.js +3 -4
  19. package/esm/MCScanAddTrackComponent/index.js +2 -2
  20. package/esm/MCScanAnchorsAdapter/MCScanAnchorsAdapter.js +5 -6
  21. package/esm/MCScanAnchorsAdapter/configSchema.d.ts +2 -2
  22. package/esm/MCScanAnchorsAdapter/index.js +2 -2
  23. package/esm/MCScanSimpleAnchorsAdapter/MCScanSimpleAnchorsAdapter.js +5 -6
  24. package/esm/MCScanSimpleAnchorsAdapter/configSchema.d.ts +2 -2
  25. package/esm/MCScanSimpleAnchorsAdapter/index.js +2 -2
  26. package/esm/MashMapAdapter/MashMapAdapter.d.ts +2 -13
  27. package/esm/MashMapAdapter/MashMapAdapter.js +4 -3
  28. package/esm/MashMapAdapter/configSchema.d.ts +2 -2
  29. package/esm/MashMapAdapter/index.js +2 -2
  30. package/esm/PAFAdapter/PAFAdapter.d.ts +1 -1
  31. package/esm/PAFAdapter/PAFAdapter.js +10 -11
  32. package/esm/PAFAdapter/configSchema.d.ts +2 -2
  33. package/esm/PAFAdapter/index.js +2 -2
  34. package/esm/PAFAdapter/util.js +22 -32
  35. package/esm/PairwiseIndexedPAFAdapter/PairwiseIndexedPAFAdapter.js +13 -12
  36. package/esm/PairwiseIndexedPAFAdapter/configSchema.d.ts +5 -5
  37. package/esm/PairwiseIndexedPAFAdapter/configSchema.js +1 -1
  38. package/esm/PairwiseIndexedPAFAdapter/index.js +2 -2
  39. package/esm/SyntenyFeature/index.js +3 -4
  40. package/esm/index.js +12 -15
  41. package/esm/util.d.ts +1 -1
  42. package/esm/util.js +1 -1
  43. package/package.json +27 -34
  44. package/dist/BlastTabularAdapter/BlastTabularAdapter.d.ts +0 -65
  45. package/dist/BlastTabularAdapter/BlastTabularAdapter.js +0 -206
  46. package/dist/BlastTabularAdapter/configSchema.d.ts +0 -30
  47. package/dist/BlastTabularAdapter/configSchema.js +0 -34
  48. package/dist/BlastTabularAdapter/index.d.ts +0 -2
  49. package/dist/BlastTabularAdapter/index.js +0 -52
  50. package/dist/ChainAdapter/ChainAdapter.d.ts +0 -19
  51. package/dist/ChainAdapter/ChainAdapter.js +0 -15
  52. package/dist/ChainAdapter/configSchema.d.ts +0 -25
  53. package/dist/ChainAdapter/configSchema.js +0 -39
  54. package/dist/ChainAdapter/index.d.ts +0 -2
  55. package/dist/ChainAdapter/index.js +0 -52
  56. package/dist/ChainAdapter/util.d.ts +0 -16
  57. package/dist/ChainAdapter/util.js +0 -82
  58. package/dist/ComparativeAddTrackComponent/ComparativeAddTrackComponent.d.ts +0 -2
  59. package/dist/ComparativeAddTrackComponent/ComparativeAddTrackComponent.js +0 -31
  60. package/dist/ComparativeAddTrackComponent/index.d.ts +0 -2
  61. package/dist/ComparativeAddTrackComponent/index.js +0 -46
  62. package/dist/DeltaAdapter/DeltaAdapter.d.ts +0 -14
  63. package/dist/DeltaAdapter/DeltaAdapter.js +0 -15
  64. package/dist/DeltaAdapter/configSchema.d.ts +0 -25
  65. package/dist/DeltaAdapter/configSchema.js +0 -42
  66. package/dist/DeltaAdapter/index.d.ts +0 -2
  67. package/dist/DeltaAdapter/index.js +0 -52
  68. package/dist/DeltaAdapter/util.d.ts +0 -11
  69. package/dist/DeltaAdapter/util.js +0 -111
  70. package/dist/GuessAdapter/index.d.ts +0 -2
  71. package/dist/GuessAdapter/index.js +0 -74
  72. package/dist/MCScanAddTrackComponent/MCScanAddTrackComponent.d.ts +0 -2
  73. package/dist/MCScanAddTrackComponent/MCScanAddTrackComponent.js +0 -39
  74. package/dist/MCScanAddTrackComponent/index.d.ts +0 -2
  75. package/dist/MCScanAddTrackComponent/index.js +0 -46
  76. package/dist/MCScanAnchorsAdapter/MCScanAnchorsAdapter.d.ts +0 -29
  77. package/dist/MCScanAnchorsAdapter/MCScanAnchorsAdapter.js +0 -98
  78. package/dist/MCScanAnchorsAdapter/configSchema.d.ts +0 -28
  79. package/dist/MCScanAnchorsAdapter/configSchema.js +0 -53
  80. package/dist/MCScanAnchorsAdapter/index.d.ts +0 -2
  81. package/dist/MCScanAnchorsAdapter/index.js +0 -52
  82. package/dist/MCScanSimpleAnchorsAdapter/MCScanSimpleAnchorsAdapter.d.ts +0 -37
  83. package/dist/MCScanSimpleAnchorsAdapter/MCScanSimpleAnchorsAdapter.js +0 -132
  84. package/dist/MCScanSimpleAnchorsAdapter/configSchema.d.ts +0 -28
  85. package/dist/MCScanSimpleAnchorsAdapter/configSchema.js +0 -53
  86. package/dist/MCScanSimpleAnchorsAdapter/index.d.ts +0 -2
  87. package/dist/MCScanSimpleAnchorsAdapter/index.js +0 -52
  88. package/dist/MashMapAdapter/MashMapAdapter.d.ts +0 -16
  89. package/dist/MashMapAdapter/MashMapAdapter.js +0 -39
  90. package/dist/MashMapAdapter/configSchema.d.ts +0 -25
  91. package/dist/MashMapAdapter/configSchema.js +0 -42
  92. package/dist/MashMapAdapter/index.d.ts +0 -2
  93. package/dist/MashMapAdapter/index.js +0 -52
  94. package/dist/PAFAdapter/PAFAdapter.d.ts +0 -20
  95. package/dist/PAFAdapter/PAFAdapter.js +0 -137
  96. package/dist/PAFAdapter/configSchema.d.ts +0 -25
  97. package/dist/PAFAdapter/configSchema.js +0 -42
  98. package/dist/PAFAdapter/index.d.ts +0 -2
  99. package/dist/PAFAdapter/index.js +0 -52
  100. package/dist/PAFAdapter/util.d.ts +0 -17
  101. package/dist/PAFAdapter/util.js +0 -45
  102. package/dist/PairwiseIndexedPAFAdapter/PairwiseIndexedPAFAdapter.d.ts +0 -24
  103. package/dist/PairwiseIndexedPAFAdapter/PairwiseIndexedPAFAdapter.js +0 -109
  104. package/dist/PairwiseIndexedPAFAdapter/configSchema.d.ts +0 -40
  105. package/dist/PairwiseIndexedPAFAdapter/configSchema.js +0 -64
  106. package/dist/PairwiseIndexedPAFAdapter/index.d.ts +0 -2
  107. package/dist/PairwiseIndexedPAFAdapter/index.js +0 -52
  108. package/dist/SyntenyFeature/index.d.ts +0 -4
  109. package/dist/SyntenyFeature/index.js +0 -14
  110. package/dist/index.d.ts +0 -6
  111. package/dist/index.js +0 -37
  112. package/dist/syntenyTypes.d.ts +0 -3
  113. package/dist/syntenyTypes.js +0 -25
  114. package/dist/util.d.ts +0 -16
  115. package/dist/util.js +0 -79
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const configuration_1 = require("@jbrowse/core/configuration");
4
- function x() { }
5
- const BlastTabularAdapter = (0, configuration_1.ConfigurationSchema)('BlastTabularAdapter', {
6
- assemblyNames: {
7
- type: 'stringArray',
8
- defaultValue: [],
9
- description: 'Query assembly is the first value in the array, target assembly is the second',
10
- },
11
- targetAssembly: {
12
- type: 'string',
13
- defaultValue: '',
14
- description: 'Alternative to assemblyNames array: the target assembly',
15
- },
16
- queryAssembly: {
17
- type: 'string',
18
- defaultValue: '',
19
- description: 'Alternative to assemblyNames array: the query assembly',
20
- },
21
- blastTableLocation: {
22
- type: 'fileLocation',
23
- defaultValue: {
24
- uri: '/path/to/blastTable.tsv',
25
- locationType: 'UriLocation',
26
- },
27
- },
28
- columns: {
29
- type: 'string',
30
- description: 'Optional space-separated column name list. If custom columns were used in outfmt, enter them here exactly as specified in the command. At least qseqid, sseqid, qstart, qend, sstart, and send are required',
31
- defaultValue: 'qseqid sseqid pident length mismatch gapopen qstart qend sstart send evalue bitscore',
32
- },
33
- }, { explicitlyTyped: true });
34
- exports.default = BlastTabularAdapter;
@@ -1,2 +0,0 @@
1
- import type PluginManager from '@jbrowse/core/PluginManager';
2
- export default function BlastTabularAdapterF(pluginManager: PluginManager): void;
@@ -1,52 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- var __importDefault = (this && this.__importDefault) || function (mod) {
36
- return (mod && mod.__esModule) ? mod : { "default": mod };
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.default = BlastTabularAdapterF;
40
- const AdapterType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/AdapterType"));
41
- const configSchema_1 = __importDefault(require("./configSchema"));
42
- function BlastTabularAdapterF(pluginManager) {
43
- pluginManager.addAdapterType(() => new AdapterType_1.default({
44
- name: 'BlastTabularAdapter',
45
- displayName: 'Tabular BLAST output adapter',
46
- configSchema: configSchema_1.default,
47
- adapterMetadata: {
48
- category: 'Synteny adapters',
49
- },
50
- getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./BlastTabularAdapter'))).then(r => r.default),
51
- }));
52
- }
@@ -1,19 +0,0 @@
1
- import PAFAdapter from '../PAFAdapter/PAFAdapter';
2
- import type { BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter';
3
- export default class ChainAdapter extends PAFAdapter {
4
- setupPre(opts?: BaseOptions): Promise<{
5
- qname: string;
6
- qstart: number;
7
- qend: number;
8
- tname: string;
9
- tstart: number;
10
- tend: number;
11
- strand: number;
12
- extra: {
13
- numMatches: number;
14
- blockLen: number;
15
- mappingQual: number;
16
- cg: string;
17
- };
18
- }[]>;
19
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const util_1 = require("@jbrowse/core/util");
7
- const io_1 = require("@jbrowse/core/util/io");
8
- const util_2 = require("./util");
9
- const PAFAdapter_1 = __importDefault(require("../PAFAdapter/PAFAdapter"));
10
- class ChainAdapter extends PAFAdapter_1.default {
11
- async setupPre(opts) {
12
- return (0, util_2.paf_chain2paf)(await (0, util_1.fetchAndMaybeUnzip)((0, io_1.openLocation)(this.getConf('chainLocation'), this.pluginManager), opts), opts);
13
- }
14
- }
15
- exports.default = ChainAdapter;
@@ -1,25 +0,0 @@
1
- declare const ChainAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
2
- assemblyNames: {
3
- type: string;
4
- defaultValue: never[];
5
- description: string;
6
- };
7
- targetAssembly: {
8
- type: string;
9
- defaultValue: string;
10
- description: string;
11
- };
12
- queryAssembly: {
13
- type: string;
14
- defaultValue: string;
15
- description: string;
16
- };
17
- chainLocation: {
18
- type: string;
19
- defaultValue: {
20
- uri: string;
21
- locationType: string;
22
- };
23
- };
24
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
25
- export default ChainAdapter;
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const configuration_1 = require("@jbrowse/core/configuration");
4
- function x() { }
5
- const ChainAdapter = (0, configuration_1.ConfigurationSchema)('ChainAdapter', {
6
- assemblyNames: {
7
- type: 'stringArray',
8
- defaultValue: [],
9
- description: 'Array of assembly names to use for this file. The query assembly name is the first value in the array, target assembly name is the second',
10
- },
11
- targetAssembly: {
12
- type: 'string',
13
- defaultValue: '',
14
- description: 'Alternative to assemblyNames array: the target assembly',
15
- },
16
- queryAssembly: {
17
- type: 'string',
18
- defaultValue: '',
19
- description: 'Alternative to assemblyNames array: the query assembly',
20
- },
21
- chainLocation: {
22
- type: 'fileLocation',
23
- defaultValue: { uri: '/path/to/file.chain', locationType: 'UriLocation' },
24
- },
25
- }, {
26
- explicitlyTyped: true,
27
- preProcessSnapshot: snap => {
28
- return snap.uri
29
- ? {
30
- ...snap,
31
- chainLocation: {
32
- uri: snap.uri,
33
- baseUri: snap.baseUri,
34
- },
35
- }
36
- : snap;
37
- },
38
- });
39
- exports.default = ChainAdapter;
@@ -1,2 +0,0 @@
1
- import type PluginManager from '@jbrowse/core/PluginManager';
2
- export default function ChainAdapterF(pluginManager: PluginManager): void;
@@ -1,52 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- var __importDefault = (this && this.__importDefault) || function (mod) {
36
- return (mod && mod.__esModule) ? mod : { "default": mod };
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.default = ChainAdapterF;
40
- const AdapterType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/AdapterType"));
41
- const configSchema_1 = __importDefault(require("./configSchema"));
42
- function ChainAdapterF(pluginManager) {
43
- pluginManager.addAdapterType(() => new AdapterType_1.default({
44
- name: 'ChainAdapter',
45
- displayName: 'Liftover chain adapter',
46
- configSchema: configSchema_1.default,
47
- adapterMetadata: {
48
- category: 'Synteny adapters',
49
- },
50
- getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./ChainAdapter'))).then(r => r.default),
51
- }));
52
- }
@@ -1,16 +0,0 @@
1
- import type { BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter';
2
- export declare function paf_chain2paf(buffer: Uint8Array, opts?: BaseOptions): {
3
- qname: string;
4
- qstart: number;
5
- qend: number;
6
- tname: string;
7
- tstart: number;
8
- tend: number;
9
- strand: number;
10
- extra: {
11
- numMatches: number;
12
- blockLen: number;
13
- mappingQual: number;
14
- cg: string;
15
- };
16
- }[];
@@ -1,82 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.paf_chain2paf = paf_chain2paf;
4
- const parseLineByLine_1 = require("@jbrowse/core/util/parseLineByLine");
5
- function generate_record(qname, qstart, qend, qstrand, tname, tstart, tend, cigar, numMatches) {
6
- return {
7
- qname,
8
- qstart,
9
- qend,
10
- tname,
11
- tstart,
12
- tend,
13
- strand: qstrand === '-' ? -1 : 1,
14
- extra: {
15
- numMatches,
16
- blockLen: Math.max(qend - qstart, tend - tstart),
17
- mappingQual: 0,
18
- cg: cigar,
19
- },
20
- };
21
- }
22
- function paf_chain2paf(buffer, opts) {
23
- const { statusCallback = () => { } } = opts || {};
24
- let t_name = '';
25
- let t_start = 0;
26
- let t_end = 0;
27
- let q_name = '';
28
- let q_size = '';
29
- let q_strand = '';
30
- let q_start = 0;
31
- let q_end = 0;
32
- let num_matches = 0;
33
- let cigar = '';
34
- const records = [];
35
- (0, parseLineByLine_1.parseLineByLine)(buffer, line => {
36
- if (!line || line.startsWith('#')) {
37
- return true;
38
- }
39
- const l_vec = line.split(/[ \t]+/);
40
- if (l_vec[0] === 'chain') {
41
- if (cigar) {
42
- records.push(generate_record(q_name, q_start, q_end, q_strand, t_name, t_start, t_end, cigar, num_matches));
43
- }
44
- t_name = l_vec[2];
45
- t_start = +l_vec[5];
46
- t_end = +l_vec[6];
47
- q_name = l_vec[7];
48
- q_size = l_vec[8];
49
- q_strand = l_vec[9];
50
- q_start = +l_vec[10];
51
- q_end = +l_vec[11];
52
- if (q_strand === '-') {
53
- const tmp = q_start;
54
- q_start = +q_size - q_end;
55
- q_end = +q_size - tmp;
56
- }
57
- num_matches = 0;
58
- cigar = '';
59
- }
60
- else {
61
- const size_ungapped_alignment = +l_vec[0] || 0;
62
- const diff_in_target = l_vec.length > 1 ? +l_vec[1] : 0;
63
- const diff_in_query = l_vec.length > 2 ? +l_vec[2] : 0;
64
- if (size_ungapped_alignment !== 0) {
65
- num_matches += size_ungapped_alignment;
66
- cigar += `${size_ungapped_alignment}M`;
67
- }
68
- if (diff_in_query !== 0) {
69
- cigar += `${diff_in_query}I`;
70
- }
71
- if (diff_in_target !== 0) {
72
- cigar += `${diff_in_target}D`;
73
- }
74
- }
75
- return true;
76
- }, opts === null || opts === void 0 ? void 0 : opts.statusCallback);
77
- if (cigar) {
78
- generate_record(q_name, q_start, q_end, q_strand, t_name, t_start, t_end, cigar, num_matches);
79
- }
80
- statusCallback('');
81
- return records;
82
- }
@@ -1,2 +0,0 @@
1
- declare const ComparativeAddTrackComponent: ({ model }: any) => import("react/jsx-runtime").JSX.Element;
2
- export default ComparativeAddTrackComponent;
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const jsx_runtime_1 = require("react/jsx-runtime");
4
- const react_1 = require("react");
5
- const ui_1 = require("@jbrowse/core/ui");
6
- const util_1 = require("@jbrowse/core/util");
7
- const mobx_react_1 = require("mobx-react");
8
- const ComparativeAddTrackComponent = (0, mobx_react_1.observer)(function ({ model }) {
9
- var _a, _b;
10
- const session = (0, util_1.getSession)(model);
11
- const [r0, setR0] = (0, react_1.useState)((_a = session.assemblies[0]) === null || _a === void 0 ? void 0 : _a.name);
12
- const [r1, setR1] = (0, react_1.useState)((_b = session.assemblies[0]) === null || _b === void 0 ? void 0 : _b.name);
13
- (0, react_1.useEffect)(() => {
14
- model.setMixinData({
15
- adapter: {
16
- queryAssembly: r0,
17
- targetAssembly: r1,
18
- },
19
- });
20
- }, [model, r0, r1]);
21
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ui_1.AssemblySelector, { session: session, label: "Query assembly", helperText: "", selected: r0, onChange: asm => {
22
- setR0(asm);
23
- }, TextFieldProps: {
24
- fullWidth: true,
25
- } }), (0, jsx_runtime_1.jsx)(ui_1.AssemblySelector, { session: session, label: "Target assembly", helperText: "", selected: r1, onChange: asm => {
26
- setR1(asm);
27
- }, TextFieldProps: {
28
- fullWidth: true,
29
- } })] }));
30
- });
31
- exports.default = ComparativeAddTrackComponent;
@@ -1,2 +0,0 @@
1
- import type PluginManager from '@jbrowse/core/PluginManager';
2
- export default function ComparativeAddTrackComponentF(pluginManager: PluginManager): void;
@@ -1,46 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.default = ComparativeAddTrackComponentF;
37
- const react_1 = require("react");
38
- const syntenyTypes_1 = require("../syntenyTypes");
39
- const ComparativeAddTrackComponent = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./ComparativeAddTrackComponent'))));
40
- function ComparativeAddTrackComponentF(pluginManager) {
41
- pluginManager.addToExtensionPoint('Core-addTrackComponent', (comp, { model }) => {
42
- return syntenyTypes_1.pairwiseTypes.includes(model.trackAdapterType)
43
- ? ComparativeAddTrackComponent
44
- : comp;
45
- });
46
- }
@@ -1,14 +0,0 @@
1
- import PAFAdapter from '../PAFAdapter/PAFAdapter';
2
- import type { BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter';
3
- export default class DeltaAdapter extends PAFAdapter {
4
- setupPre(opts?: BaseOptions): Promise<{
5
- qname: string;
6
- qstart: number;
7
- qend: number;
8
- tname: string;
9
- tstart: number;
10
- tend: number;
11
- strand: number;
12
- extra: Record<string, unknown>;
13
- }[]>;
14
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const util_1 = require("@jbrowse/core/util");
7
- const io_1 = require("@jbrowse/core/util/io");
8
- const util_2 = require("./util");
9
- const PAFAdapter_1 = __importDefault(require("../PAFAdapter/PAFAdapter"));
10
- class DeltaAdapter extends PAFAdapter_1.default {
11
- async setupPre(opts) {
12
- return (0, util_2.paf_delta2paf)(await (0, util_1.fetchAndMaybeUnzip)((0, io_1.openLocation)(this.getConf('deltaLocation'), this.pluginManager), opts), opts);
13
- }
14
- }
15
- exports.default = DeltaAdapter;
@@ -1,25 +0,0 @@
1
- declare const DeltaAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
2
- assemblyNames: {
3
- type: string;
4
- defaultValue: never[];
5
- description: string;
6
- };
7
- targetAssembly: {
8
- type: string;
9
- defaultValue: string;
10
- description: string;
11
- };
12
- queryAssembly: {
13
- type: string;
14
- defaultValue: string;
15
- description: string;
16
- };
17
- deltaLocation: {
18
- type: string;
19
- defaultValue: {
20
- uri: string;
21
- locationType: string;
22
- };
23
- };
24
- }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
25
- export default DeltaAdapter;
@@ -1,42 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const configuration_1 = require("@jbrowse/core/configuration");
4
- function x() { }
5
- const DeltaAdapter = (0, configuration_1.ConfigurationSchema)('DeltaAdapter', {
6
- assemblyNames: {
7
- type: 'stringArray',
8
- defaultValue: [],
9
- description: 'Array of assembly names to use for this file. The query assembly name is the first value in the array, target assembly name is the second',
10
- },
11
- targetAssembly: {
12
- type: 'string',
13
- defaultValue: '',
14
- description: 'Alternative to assemblyNames: the target assembly name',
15
- },
16
- queryAssembly: {
17
- type: 'string',
18
- defaultValue: '',
19
- description: 'Alternative to assemblyNames: the query assembly name',
20
- },
21
- deltaLocation: {
22
- type: 'fileLocation',
23
- defaultValue: {
24
- uri: '/path/to/file.delta',
25
- locationType: 'UriLocation',
26
- },
27
- },
28
- }, {
29
- explicitlyTyped: true,
30
- preProcessSnapshot: snap => {
31
- return snap.uri
32
- ? {
33
- ...snap,
34
- deltaLocation: {
35
- uri: snap.uri,
36
- baseUri: snap.baseUri,
37
- },
38
- }
39
- : snap;
40
- },
41
- });
42
- exports.default = DeltaAdapter;
@@ -1,2 +0,0 @@
1
- import type PluginManager from '@jbrowse/core/PluginManager';
2
- export default function DeltaAdapterF(pluginManager: PluginManager): void;
@@ -1,52 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- var __importDefault = (this && this.__importDefault) || function (mod) {
36
- return (mod && mod.__esModule) ? mod : { "default": mod };
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.default = DeltaAdapterF;
40
- const AdapterType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/AdapterType"));
41
- const configSchema_1 = __importDefault(require("./configSchema"));
42
- function DeltaAdapterF(pluginManager) {
43
- pluginManager.addAdapterType(() => new AdapterType_1.default({
44
- name: 'DeltaAdapter',
45
- displayName: 'MUMmer delta adapter',
46
- configSchema: configSchema_1.default,
47
- adapterMetadata: {
48
- category: 'Synteny adapters',
49
- },
50
- getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./DeltaAdapter'))).then(r => r.default),
51
- }));
52
- }
@@ -1,11 +0,0 @@
1
- import type { BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter/BaseOptions';
2
- export declare function paf_delta2paf(buffer: Uint8Array, opts?: BaseOptions): {
3
- qname: string;
4
- qstart: number;
5
- qend: number;
6
- tname: string;
7
- tstart: number;
8
- tend: number;
9
- strand: number;
10
- extra: Record<string, unknown>;
11
- }[];