@jbrowse/plugin-alignments 2.10.1 → 2.10.2

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 (81) hide show
  1. package/dist/AlignmentsFeatureDetail/AlignmentsFeatureDetail.d.ts +2 -2
  2. package/dist/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +10 -113
  3. package/dist/AlignmentsFeatureDetail/BreakendOptionDialog.d.ts +12 -0
  4. package/dist/AlignmentsFeatureDetail/BreakendOptionDialog.js +89 -0
  5. package/dist/AlignmentsFeatureDetail/Formatter.d.ts +4 -0
  6. package/dist/AlignmentsFeatureDetail/Formatter.js +47 -0
  7. package/dist/AlignmentsFeatureDetail/LaunchBreakpointSplitViewPanel.d.ts +9 -0
  8. package/dist/AlignmentsFeatureDetail/LaunchBreakpointSplitViewPanel.js +92 -0
  9. package/dist/AlignmentsFeatureDetail/PairLink.d.ts +6 -0
  10. package/dist/AlignmentsFeatureDetail/PairLink.js +16 -0
  11. package/dist/AlignmentsFeatureDetail/SuppAlignments.d.ts +8 -0
  12. package/dist/AlignmentsFeatureDetail/SuppAlignments.js +26 -0
  13. package/dist/AlignmentsFeatureDetail/SuppAlignmentsLocStrings.d.ts +6 -0
  14. package/dist/AlignmentsFeatureDetail/{AlignmentsFeatureSuppAligns.js → SuppAlignmentsLocStrings.js} +8 -7
  15. package/dist/AlignmentsFeatureDetail/configSchema.d.ts +1 -0
  16. package/dist/AlignmentsFeatureDetail/configSchema.js +5 -0
  17. package/dist/AlignmentsFeatureDetail/getSAFeatures.d.ts +23 -0
  18. package/dist/AlignmentsFeatureDetail/getSAFeatures.js +41 -0
  19. package/dist/AlignmentsFeatureDetail/index.d.ts +1 -50
  20. package/dist/AlignmentsFeatureDetail/index.js +6 -17
  21. package/dist/AlignmentsFeatureDetail/launchBreakpointSplitView.d.ts +22 -0
  22. package/dist/AlignmentsFeatureDetail/launchBreakpointSplitView.js +50 -0
  23. package/dist/AlignmentsFeatureDetail/stateModelFactory.d.ts +51 -0
  24. package/dist/AlignmentsFeatureDetail/stateModelFactory.js +12 -0
  25. package/dist/AlignmentsFeatureDetail/tagInfo.d.ts +63 -0
  26. package/dist/AlignmentsFeatureDetail/tagInfo.js +66 -0
  27. package/dist/BamAdapter/BamAdapter.js +3 -1
  28. package/dist/CramAdapter/CramAdapter.js +3 -1
  29. package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +20 -20
  30. package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +8 -8
  31. package/dist/LinearPileupDisplay/model.d.ts +15 -24
  32. package/dist/LinearPileupDisplay/model.js +4 -4
  33. package/dist/LinearReadArcsDisplay/model.d.ts +8 -8
  34. package/dist/LinearReadArcsDisplay/model.js +2 -2
  35. package/dist/LinearReadCloudDisplay/model.d.ts +13 -7
  36. package/dist/LinearReadCloudDisplay/model.js +2 -2
  37. package/dist/LinearSNPCoverageDisplay/components/Tooltip.js +5 -2
  38. package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.d.ts +2 -2
  39. package/esm/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +12 -92
  40. package/esm/AlignmentsFeatureDetail/BreakendOptionDialog.d.ts +12 -0
  41. package/esm/AlignmentsFeatureDetail/BreakendOptionDialog.js +64 -0
  42. package/esm/AlignmentsFeatureDetail/Formatter.d.ts +4 -0
  43. package/esm/AlignmentsFeatureDetail/Formatter.js +18 -0
  44. package/esm/AlignmentsFeatureDetail/LaunchBreakpointSplitViewPanel.d.ts +9 -0
  45. package/esm/AlignmentsFeatureDetail/LaunchBreakpointSplitViewPanel.js +66 -0
  46. package/esm/AlignmentsFeatureDetail/PairLink.d.ts +6 -0
  47. package/esm/AlignmentsFeatureDetail/PairLink.js +10 -0
  48. package/esm/AlignmentsFeatureDetail/SuppAlignments.d.ts +8 -0
  49. package/esm/AlignmentsFeatureDetail/SuppAlignments.js +20 -0
  50. package/esm/AlignmentsFeatureDetail/SuppAlignmentsLocStrings.d.ts +6 -0
  51. package/esm/AlignmentsFeatureDetail/{AlignmentsFeatureSuppAligns.js → SuppAlignmentsLocStrings.js} +7 -6
  52. package/esm/AlignmentsFeatureDetail/configSchema.d.ts +1 -0
  53. package/esm/AlignmentsFeatureDetail/configSchema.js +2 -0
  54. package/esm/AlignmentsFeatureDetail/getSAFeatures.d.ts +23 -0
  55. package/esm/AlignmentsFeatureDetail/getSAFeatures.js +37 -0
  56. package/esm/AlignmentsFeatureDetail/index.d.ts +1 -50
  57. package/esm/AlignmentsFeatureDetail/index.js +4 -13
  58. package/esm/AlignmentsFeatureDetail/launchBreakpointSplitView.d.ts +22 -0
  59. package/esm/AlignmentsFeatureDetail/launchBreakpointSplitView.js +46 -0
  60. package/esm/AlignmentsFeatureDetail/stateModelFactory.d.ts +51 -0
  61. package/esm/AlignmentsFeatureDetail/stateModelFactory.js +8 -0
  62. package/esm/AlignmentsFeatureDetail/tagInfo.d.ts +63 -0
  63. package/esm/AlignmentsFeatureDetail/tagInfo.js +63 -0
  64. package/esm/BamAdapter/BamAdapter.js +3 -1
  65. package/esm/CramAdapter/CramAdapter.js +3 -1
  66. package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +20 -20
  67. package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +8 -8
  68. package/esm/LinearPileupDisplay/model.d.ts +15 -24
  69. package/esm/LinearPileupDisplay/model.js +4 -4
  70. package/esm/LinearReadArcsDisplay/model.d.ts +8 -8
  71. package/esm/LinearReadArcsDisplay/model.js +2 -2
  72. package/esm/LinearReadCloudDisplay/model.d.ts +13 -7
  73. package/esm/LinearReadCloudDisplay/model.js +2 -2
  74. package/esm/LinearSNPCoverageDisplay/components/Tooltip.js +5 -2
  75. package/package.json +2 -2
  76. package/dist/AlignmentsFeatureDetail/AlignmentsFeatureSuppAligns.d.ts +0 -6
  77. package/esm/AlignmentsFeatureDetail/AlignmentsFeatureSuppAligns.d.ts +0 -6
  78. /package/dist/AlignmentsFeatureDetail/{AlignmentsFeatureFlags.d.ts → Flags.d.ts} +0 -0
  79. /package/dist/AlignmentsFeatureDetail/{AlignmentsFeatureFlags.js → Flags.js} +0 -0
  80. /package/esm/AlignmentsFeatureDetail/{AlignmentsFeatureFlags.d.ts → Flags.d.ts} +0 -0
  81. /package/esm/AlignmentsFeatureDetail/{AlignmentsFeatureFlags.js → Flags.js} +0 -0
@@ -1,51 +1,2 @@
1
1
  import PluginManager from '@jbrowse/core/PluginManager';
2
- declare const configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
3
- export declare function stateModelFactory(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
4
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
5
- type: import("mobx-state-tree").ISimpleType<"BaseFeatureWidget">;
6
- featureData: import("mobx-state-tree").IType<any, any, any>;
7
- formattedFields: import("mobx-state-tree").IType<any, any, any>;
8
- unformattedFeatureData: import("mobx-state-tree").IType<any, any, any>;
9
- view: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
10
- track: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
11
- trackId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
12
- trackType: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
13
- maxDepth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
14
- } & {
15
- type: import("mobx-state-tree").ISimpleType<"AlignmentsFeatureWidget">;
16
- }, {
17
- error: unknown;
18
- } & {
19
- setFeatureData(featureData: Record<string, unknown>): void;
20
- clearFeatureData(): void;
21
- setFormattedData(feat: Record<string, unknown>): void;
22
- setExtra(type?: string | undefined, trackId?: string | undefined, maxDepth?: number | undefined): void;
23
- setError(e: unknown): void;
24
- } & {
25
- afterCreate(): void;
26
- }, {
27
- type: "BaseFeatureWidget";
28
- } & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
29
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
30
- type: import("mobx-state-tree").ISimpleType<"BaseFeatureWidget">;
31
- featureData: import("mobx-state-tree").IType<any, any, any>;
32
- formattedFields: import("mobx-state-tree").IType<any, any, any>;
33
- unformattedFeatureData: import("mobx-state-tree").IType<any, any, any>;
34
- view: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
35
- track: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
36
- trackId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
37
- trackType: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
38
- maxDepth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
39
- }>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, {
40
- type: "BaseFeatureWidget";
41
- id: string;
42
- track: import("mobx-state-tree").ReferenceIdentifier | undefined;
43
- view: import("mobx-state-tree").ReferenceIdentifier | undefined;
44
- trackId: string | undefined;
45
- trackType: string | undefined;
46
- maxDepth: number | undefined;
47
- formattedFields: any;
48
- finalizedFeatureData: any;
49
- } & import("mobx-state-tree")._NotCustomized>;
50
- export default function register(pluginManager: PluginManager): void;
51
- export { configSchema };
2
+ export default function AlignmentFeatureDetailsF(pluginManager: PluginManager): void;
@@ -26,28 +26,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.configSchema = exports.stateModelFactory = void 0;
30
29
  const react_1 = require("react");
31
- const configuration_1 = require("@jbrowse/core/configuration");
32
- const mobx_state_tree_1 = require("mobx-state-tree");
33
30
  const WidgetType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/WidgetType"));
34
- const BaseFeatureWidget_1 = require("@jbrowse/core/BaseFeatureWidget");
35
- const configSchema = (0, configuration_1.ConfigurationSchema)('AlignmentsFeatureWidget', {});
36
- exports.configSchema = configSchema;
37
- function stateModelFactory(pluginManager) {
38
- const baseModel = (0, BaseFeatureWidget_1.stateModelFactory)(pluginManager);
39
- return mobx_state_tree_1.types.compose(baseModel, mobx_state_tree_1.types.model('AlignmentsFeatureWidget', {
40
- type: mobx_state_tree_1.types.literal('AlignmentsFeatureWidget'),
41
- }));
42
- }
43
- exports.stateModelFactory = stateModelFactory;
44
- function register(pluginManager) {
31
+ const configSchema_1 = require("./configSchema");
32
+ const stateModelFactory_1 = require("./stateModelFactory");
33
+ function AlignmentFeatureDetailsF(pluginManager) {
45
34
  pluginManager.addWidgetType(() => new WidgetType_1.default({
46
35
  name: 'AlignmentsFeatureWidget',
47
36
  heading: 'Feature details',
48
- configSchema,
49
- stateModel: stateModelFactory(pluginManager),
37
+ configSchema: configSchema_1.configSchema,
38
+ stateModel: (0, stateModelFactory_1.stateModelFactory)(pluginManager),
50
39
  ReactComponent: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./AlignmentsFeatureDetail')))),
51
40
  }));
52
41
  }
53
- exports.default = register;
42
+ exports.default = AlignmentFeatureDetailsF;
@@ -0,0 +1,22 @@
1
+ import { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
2
+ import { ReducedFeature } from './getSAFeatures';
3
+ export declare function getBreakpointSplitView({ f1, f2, view, }: {
4
+ f1: ReducedFeature;
5
+ f2: ReducedFeature;
6
+ view: LinearGenomeViewModel;
7
+ }): {
8
+ type: string;
9
+ views: {
10
+ type: string;
11
+ displayedRegions: {
12
+ start: number;
13
+ end: number;
14
+ refName: string;
15
+ assemblyName: string;
16
+ }[];
17
+ hideHeader: boolean;
18
+ bpPerPx: number;
19
+ offsetPx: number;
20
+ }[];
21
+ displayName: string;
22
+ };
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getBreakpointSplitView = void 0;
4
+ const util_1 = require("@jbrowse/core/util");
5
+ function getBreakpointSplitView({ f1, f2, view, }) {
6
+ const { assemblyName } = view.displayedRegions[0];
7
+ const { assemblyManager } = (0, util_1.getSession)(view);
8
+ const assembly = assemblyManager.get(assemblyName);
9
+ if (!assembly) {
10
+ throw new Error(`assembly ${assemblyName} not found`);
11
+ }
12
+ if (!assembly.regions) {
13
+ throw new Error(`assembly ${assemblyName} regions not loaded`);
14
+ }
15
+ const topRegion = assembly.regions.find(f => f.refName === f1.refName);
16
+ const bottomRegion = assembly.regions.find(f => f.refName === f2.refName);
17
+ if (!topRegion || !bottomRegion) {
18
+ throw new Error(`unable to find the refName for the top or bottom of the breakpoint view`);
19
+ }
20
+ const topMarkedRegion = [{ ...topRegion }, { ...topRegion }];
21
+ const bottomMarkedRegion = [{ ...bottomRegion }, { ...bottomRegion }];
22
+ const s = f1.strand === 1 ? f1.end : f1.start;
23
+ const e = f2.strand === 1 ? f2.start : f2.end;
24
+ topMarkedRegion[0].end = s;
25
+ topMarkedRegion[1].start = s + 1;
26
+ bottomMarkedRegion[0].end = e;
27
+ bottomMarkedRegion[1].start = e + 1;
28
+ const bpPerPx = 10;
29
+ return {
30
+ type: 'BreakpointSplitView',
31
+ views: [
32
+ {
33
+ type: 'LinearGenomeView',
34
+ displayedRegions: topMarkedRegion,
35
+ hideHeader: true,
36
+ bpPerPx,
37
+ offsetPx: (topRegion.start + s) / bpPerPx,
38
+ },
39
+ {
40
+ type: 'LinearGenomeView',
41
+ displayedRegions: bottomMarkedRegion,
42
+ hideHeader: true,
43
+ bpPerPx,
44
+ offsetPx: (bottomRegion.start + e) / bpPerPx,
45
+ },
46
+ ],
47
+ displayName: `breakend split detail`,
48
+ };
49
+ }
50
+ exports.getBreakpointSplitView = getBreakpointSplitView;
@@ -0,0 +1,51 @@
1
+ import PluginManager from '@jbrowse/core/PluginManager';
2
+ import { Instance } from 'mobx-state-tree';
3
+ export declare function stateModelFactory(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
4
+ id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
5
+ type: import("mobx-state-tree").ISimpleType<"BaseFeatureWidget">;
6
+ featureData: import("mobx-state-tree").IType<any, any, any>;
7
+ formattedFields: import("mobx-state-tree").IType<any, any, any>;
8
+ unformattedFeatureData: import("mobx-state-tree").IType<any, any, any>;
9
+ view: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
10
+ track: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
11
+ trackId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
12
+ trackType: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
13
+ maxDepth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
14
+ } & {
15
+ type: import("mobx-state-tree").ISimpleType<"AlignmentsFeatureWidget">;
16
+ }, {
17
+ error: unknown;
18
+ } & {
19
+ setFeatureData(featureData: Record<string, unknown>): void;
20
+ clearFeatureData(): void;
21
+ setFormattedData(feat: Record<string, unknown>): void;
22
+ setExtra(type?: string | undefined, trackId?: string | undefined, maxDepth?: number | undefined): void;
23
+ setError(e: unknown): void;
24
+ } & {
25
+ afterCreate(): void;
26
+ }, {
27
+ type: "BaseFeatureWidget";
28
+ } & Partial<import("mobx-state-tree/dist/internal").ExtractCFromProps<{
29
+ id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
30
+ type: import("mobx-state-tree").ISimpleType<"BaseFeatureWidget">;
31
+ featureData: import("mobx-state-tree").IType<any, any, any>;
32
+ formattedFields: import("mobx-state-tree").IType<any, any, any>;
33
+ unformattedFeatureData: import("mobx-state-tree").IType<any, any, any>;
34
+ view: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
35
+ track: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
36
+ trackId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
37
+ trackType: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
38
+ maxDepth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
39
+ }>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, {
40
+ type: "BaseFeatureWidget";
41
+ id: string;
42
+ track: import("mobx-state-tree").ReferenceIdentifier | undefined;
43
+ view: import("mobx-state-tree").ReferenceIdentifier | undefined;
44
+ trackId: string | undefined;
45
+ trackType: string | undefined;
46
+ maxDepth: number | undefined;
47
+ formattedFields: any;
48
+ finalizedFeatureData: any;
49
+ } & import("mobx-state-tree")._NotCustomized>;
50
+ export type AlignmentFeatureWidgetStateModel = ReturnType<typeof stateModelFactory>;
51
+ export type AlignmentFeatureWidgetModel = Instance<AlignmentFeatureWidgetStateModel>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stateModelFactory = void 0;
4
+ const mobx_state_tree_1 = require("mobx-state-tree");
5
+ const BaseFeatureWidget_1 = require("@jbrowse/core/BaseFeatureWidget");
6
+ function stateModelFactory(pluginManager) {
7
+ const baseModel = (0, BaseFeatureWidget_1.stateModelFactory)(pluginManager);
8
+ return mobx_state_tree_1.types.compose(baseModel, mobx_state_tree_1.types.model('AlignmentsFeatureWidget', {
9
+ type: mobx_state_tree_1.types.literal('AlignmentsFeatureWidget'),
10
+ }));
11
+ }
12
+ exports.stateModelFactory = stateModelFactory;
@@ -0,0 +1,63 @@
1
+ export declare const tags: {
2
+ AM: string;
3
+ AS: string;
4
+ BC: string;
5
+ BQ: string;
6
+ BZ: string;
7
+ CB: string;
8
+ CC: string;
9
+ CM: string;
10
+ CO: string;
11
+ CP: string;
12
+ CQ: string;
13
+ CR: string;
14
+ CS: string;
15
+ CT: string;
16
+ CY: string;
17
+ E2: string;
18
+ FI: string;
19
+ FS: string;
20
+ FZ: string;
21
+ GC: string;
22
+ GQ: string;
23
+ GS: string;
24
+ H0: string;
25
+ H1: string;
26
+ H2: string;
27
+ HI: string;
28
+ IH: string;
29
+ LB: string;
30
+ MC: string;
31
+ MD: string;
32
+ MF: string;
33
+ MI: string;
34
+ ML: string;
35
+ MM: string;
36
+ MQ: string;
37
+ NH: string;
38
+ NM: string;
39
+ OA: string;
40
+ OC: string;
41
+ OP: string;
42
+ OQ: string;
43
+ OX: string;
44
+ PG: string;
45
+ PQ: string;
46
+ PT: string;
47
+ PU: string;
48
+ Q2: string;
49
+ QT: string;
50
+ QX: string;
51
+ R2: string;
52
+ RG: string;
53
+ RT: string;
54
+ RX: string;
55
+ S2: string;
56
+ SA: string;
57
+ SM: string;
58
+ SQ: string;
59
+ TC: string;
60
+ TS: string;
61
+ U2: string;
62
+ UQ: string;
63
+ };
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tags = void 0;
4
+ exports.tags = {
5
+ AM: 'The smallest template-independent mapping quality in the template',
6
+ AS: 'Alignment score generated by aligner',
7
+ BC: 'Barcode sequence identifying the sample',
8
+ BQ: 'Offset to base alignment quality (BAQ)',
9
+ BZ: 'Phred quality of the unique molecular barcode bases in the {OX} tag',
10
+ CB: 'Cell identifier',
11
+ CC: 'Reference name of the next hit',
12
+ CM: 'Edit distance between the color sequence and the color reference (see also {NM})',
13
+ CO: 'Free-text comments',
14
+ CP: 'Leftmost coordinate of the next hit',
15
+ CQ: 'Color read base qualities',
16
+ CR: 'Cellular barcode sequence bases (uncorrected)',
17
+ CS: 'Color read sequence',
18
+ CT: 'Complete read annotation tag, used for consensus annotation dummy features',
19
+ CY: 'Phred quality of the cellular barcode sequence in the {CR} tag',
20
+ E2: 'The 2nd most likely base calls',
21
+ FI: 'The index of segment in the template',
22
+ FS: 'Segment suffix',
23
+ FZ: 'Flow signal intensities',
24
+ GC: 'Reserved for backwards compatibility reasons',
25
+ GQ: 'Reserved for backwards compatibility reasons',
26
+ GS: 'Reserved for backwards compatibility reasons',
27
+ H0: 'Number of perfect hits',
28
+ H1: 'Number of 1-difference hits (see also {NM})',
29
+ H2: 'Number of 2-difference hits',
30
+ HI: 'Query hit index',
31
+ IH: 'Query hit total count',
32
+ LB: 'Library',
33
+ MC: 'CIGAR string for mate/next segment',
34
+ MD: 'String encoding mismatched and deleted reference bases',
35
+ MF: 'Reserved for backwards compatibility reasons',
36
+ MI: 'Molecular identifier; a string that uniquely identifies the molecule from which the record was derived',
37
+ ML: 'Base modification probabilities',
38
+ MM: 'Base modifications / methylation ',
39
+ MQ: 'Mapping quality of the mate/next segment',
40
+ NH: 'Number of reported alignments that contain the query in the current record',
41
+ NM: 'Edit distance to the reference',
42
+ OA: 'Original alignment',
43
+ OC: 'Original CIGAR (deprecated; use {OA} instead)',
44
+ OP: 'Original mapping position (deprecated; use {OA} instead)',
45
+ OQ: 'Original base quality',
46
+ OX: 'Original unique molecular barcode bases',
47
+ PG: 'Program',
48
+ PQ: 'Phred likelihood of the template',
49
+ PT: 'Read annotations for parts of the padded read sequence',
50
+ PU: 'Platform unit',
51
+ Q2: 'Phred quality of the mate/next segment sequence in the {R2} tag',
52
+ QT: 'Phred quality of the sample barcode sequence in the {BC} tag',
53
+ QX: 'Quality score of the unique molecular identifier in the {RX} tag',
54
+ R2: 'Sequence of the mate/next segment in the template',
55
+ RG: 'Read group',
56
+ RT: 'Reserved for backwards compatibility reasons',
57
+ RX: 'Sequence bases of the (possibly corrected) unique molecular identifier',
58
+ S2: 'Reserved for backwards compatibility reasons',
59
+ SA: 'Other canonical alignments in a chimeric alignment',
60
+ SM: 'Template-independent mapping quality',
61
+ SQ: 'Reserved for backwards compatibility reasons',
62
+ TC: 'The number of segments in the template',
63
+ TS: 'Transcript strand',
64
+ U2: 'Phred probability of the 2nd call being wrong conditional on the best being wrong',
65
+ UQ: 'Phred likelihood of the segment, conditional on the mapping being correct',
66
+ };
@@ -144,7 +144,9 @@ class BamAdapter extends BaseAdapter_1.BaseFeatureDataAdapter {
144
144
  }
145
145
  if (tagFilter) {
146
146
  const v = record.get(tagFilter.tag);
147
- if (!(v === '*' ? v !== undefined : `${v}` === tagFilter.value)) {
147
+ if (!(tagFilter.value === '*'
148
+ ? v !== undefined
149
+ : `${v}` === tagFilter.value)) {
148
150
  continue;
149
151
  }
150
152
  }
@@ -185,7 +185,9 @@ class CramAdapter extends BaseAdapter_1.BaseFeatureDataAdapter {
185
185
  const v = tagFilter.tag === 'RG'
186
186
  ? (_a = this.samHeader.readGroups) === null || _a === void 0 ? void 0 : _a[record.readGroupId]
187
187
  : record.tags[tagFilter.tag];
188
- if (!(v === '*' ? v !== undefined : `${v}` === tagFilter.value)) {
188
+ if (!(tagFilter.value === '*'
189
+ ? v !== undefined
190
+ : `${v}` === tagFilter.value)) {
189
191
  continue;
190
192
  }
191
193
  }
@@ -54,20 +54,17 @@ export declare function SharedLinearPileupDisplayMixin(configSchema: AnyConfigur
54
54
  afterAttach(): void;
55
55
  setStatus(message: string): void;
56
56
  setLoading(abortController: AbortController): void;
57
- setMessage(messageText: string): void;
57
+ setMessage(messageText: string): void; /**
58
+ * #action
59
+ */
58
60
  setRendered(props: {
59
61
  reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
60
- /**
61
- * #action
62
- */
63
62
  features: Map<string, Feature>;
64
63
  layout: any;
65
64
  maxHeightReached: boolean;
66
65
  renderProps: any;
67
66
  } | undefined): void;
68
- setError(error: unknown): void; /**
69
- * #action
70
- */
67
+ setError(error: unknown): void;
71
68
  reload(): void;
72
69
  beforeDestroy(): void;
73
70
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
@@ -173,11 +170,11 @@ export declare function SharedLinearPileupDisplayMixin(configSchema: AnyConfigur
173
170
  } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
174
171
  rendererTypeName: string;
175
172
  error: unknown;
176
- message: string | undefined;
177
- } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
178
- id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>; /**
173
+ message: string | undefined; /**
179
174
  * #property
180
175
  */
176
+ } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
177
+ id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
181
178
  type: import("mobx-state-tree").ISimpleType<string>;
182
179
  rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
183
180
  }, {
@@ -220,7 +217,9 @@ export declare function SharedLinearPileupDisplayMixin(configSchema: AnyConfigur
220
217
  } & {
221
218
  afterAttach(): void;
222
219
  } & {
223
- setCurrStatsBpPerPx(n: number): void;
220
+ setCurrStatsBpPerPx(n: number): void; /**
221
+ * #property
222
+ */
224
223
  setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
225
224
  getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
226
225
  setFeatureDensityStatsP(arg: any): void;
@@ -241,13 +240,17 @@ export declare function SharedLinearPileupDisplayMixin(configSchema: AnyConfigur
241
240
  } & {
242
241
  readonly renderDelay: number;
243
242
  readonly TooltipComponent: import("react").FC<any>;
244
- readonly selectedFeatureId: string | undefined;
243
+ readonly selectedFeatureId: string | undefined; /**
244
+ * #action
245
+ */
245
246
  readonly DisplayMessageComponent: import("react").FC<any> | undefined;
246
247
  } & {
247
248
  readonly features: import("@jbrowse/core/util/compositeMap").default<string, Feature>;
248
249
  readonly featureUnderMouse: Feature | undefined;
249
250
  getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
250
- getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
251
+ getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined; /**
252
+ * #action
253
+ */
251
254
  searchFeatureByID(id: string): [number, number, number, number] | undefined;
252
255
  } & {
253
256
  addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
@@ -458,20 +461,17 @@ export declare function SharedLinearPileupDisplayMixin(configSchema: AnyConfigur
458
461
  afterAttach(): void;
459
462
  setStatus(message: string): void;
460
463
  setLoading(abortController: AbortController): void;
461
- setMessage(messageText: string): void;
464
+ setMessage(messageText: string): void; /**
465
+ * #action
466
+ */
462
467
  setRendered(props: {
463
468
  reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
464
- /**
465
- * #action
466
- */
467
469
  features: Map<string, Feature>;
468
470
  layout: any;
469
471
  maxHeightReached: boolean;
470
472
  renderProps: any;
471
473
  } | undefined): void;
472
- setError(error: unknown): void; /**
473
- * #action
474
- */
474
+ setError(error: unknown): void;
475
475
  reload(): void;
476
476
  beforeDestroy(): void;
477
477
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
@@ -46,10 +46,10 @@ const shared_1 = require("../shared");
46
46
  const util_2 = require("../util");
47
47
  const color_1 = require("../shared/color");
48
48
  // async
49
- const FilterByTagDlg = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('../shared/FilterByTag'))));
50
- const ColorByTagDlg = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/ColorByTag'))));
51
- const SetFeatureHeightDlg = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/SetFeatureHeight'))));
52
- const SetMaxHeightDlg = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/SetMaxHeight'))));
49
+ const FilterByTagDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('../shared/FilterByTag'))));
50
+ const ColorByTagDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/ColorByTag'))));
51
+ const SetFeatureHeightDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/SetFeatureHeight'))));
52
+ const SetMaxHeightDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/SetMaxHeight'))));
53
53
  // using a map because it preserves order
54
54
  const rendererTypes = new Map([
55
55
  ['pileup', 'PileupRenderer'],
@@ -421,7 +421,7 @@ function SharedLinearPileupDisplayMixin(configSchema) {
421
421
  label: 'Color by tag...',
422
422
  onClick: () => {
423
423
  (0, util_1.getSession)(self).queueDialog(doneCallback => [
424
- ColorByTagDlg,
424
+ ColorByTagDialog,
425
425
  { model: self, handleClose: doneCallback },
426
426
  ]);
427
427
  },
@@ -439,7 +439,7 @@ function SharedLinearPileupDisplayMixin(configSchema) {
439
439
  icon: ClearAll_1.default,
440
440
  onClick: () => {
441
441
  (0, util_1.getSession)(self).queueDialog(doneCallback => [
442
- FilterByTagDlg,
442
+ FilterByTagDialog,
443
443
  { model: self, handleClose: doneCallback },
444
444
  ]);
445
445
  },
@@ -465,7 +465,7 @@ function SharedLinearPileupDisplayMixin(configSchema) {
465
465
  label: 'Manually set height',
466
466
  onClick: () => {
467
467
  (0, util_1.getSession)(self).queueDialog(doneCallback => [
468
- SetFeatureHeightDlg,
468
+ SetFeatureHeightDialog,
469
469
  { model: self, handleClose: doneCallback },
470
470
  ]);
471
471
  },
@@ -476,7 +476,7 @@ function SharedLinearPileupDisplayMixin(configSchema) {
476
476
  label: 'Set max height...',
477
477
  onClick: () => {
478
478
  (0, util_1.getSession)(self).queueDialog(doneCallback => [
479
- SetMaxHeightDlg,
479
+ SetMaxHeightDialog,
480
480
  { model: self, handleClose: doneCallback },
481
481
  ]);
482
482
  },
@@ -45,9 +45,6 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
45
45
  ReactComponent: ({ model, }: {
46
46
  model: any;
47
47
  }) => any;
48
- /**
49
- * #property
50
- */
51
48
  renderProps: any;
52
49
  } & {
53
50
  doReload(): void;
@@ -77,12 +74,6 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
77
74
  defaultValue: number;
78
75
  description: string;
79
76
  };
80
- /**
81
- * #stateModel LinearPileupDisplay
82
- * #category display
83
- * extends
84
- *- [SharedLinearPileupDisplayMixin](../sharedlinearpileupdisplaymixin)
85
- */
86
77
  height: {
87
78
  type: string;
88
79
  defaultValue: number;
@@ -98,6 +89,9 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
98
89
  } & {
99
90
  configuration: AnyConfigurationSchemaType;
100
91
  featureHeight: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
92
+ /**
93
+ * #action
94
+ */
101
95
  noSpacing: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
102
96
  fadeLikelihood: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
103
97
  trackMaxHeight: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
@@ -162,15 +156,15 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
162
156
  } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
163
157
  rendererTypeName: string;
164
158
  error: unknown;
165
- message: string | undefined;
159
+ message: string | undefined; /**
160
+ * #action
161
+ */
166
162
  } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
167
163
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
168
164
  type: import("mobx-state-tree").ISimpleType<string>;
169
165
  rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
170
166
  }, {
171
- rendererTypeName: string; /**
172
- * #action
173
- */
167
+ rendererTypeName: string;
174
168
  error: unknown;
175
169
  message: string | undefined;
176
170
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
@@ -184,7 +178,9 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
184
178
  readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
185
179
  regionCannotBeRendered(): null;
186
180
  } & {
187
- setMessage(arg?: string | undefined): void;
181
+ setMessage(arg?: string | undefined): void; /**
182
+ * #getter
183
+ */
188
184
  setError(error?: unknown): void;
189
185
  setRpcDriverName(rpcDriverName: string): void;
190
186
  reload(): void;
@@ -201,9 +197,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
201
197
  featureDensityStats: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined;
202
198
  currStatsBpPerPx: number;
203
199
  } & {
204
- readonly currentBytesRequested: number; /**
205
- * #property
206
- */
200
+ readonly currentBytesRequested: number;
207
201
  readonly currentFeatureScreenDensity: number;
208
202
  readonly maxFeatureScreenDensity: any;
209
203
  readonly featureDensityStatsReady: boolean;
@@ -224,18 +218,13 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
224
218
  regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
225
219
  regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
226
220
  } & {
227
- featureIdUnderMouse: string | undefined; /**
228
- * #action
229
- */
221
+ featureIdUnderMouse: string | undefined;
230
222
  contextMenuFeature: import("@jbrowse/core/util").Feature | undefined;
231
223
  } & {
232
224
  readonly blockType: "dynamicBlocks" | "staticBlocks";
233
225
  readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
234
226
  } & {
235
227
  readonly renderDelay: number;
236
- /**
237
- * #action
238
- */
239
228
  readonly TooltipComponent: import("react").FC<any>;
240
229
  readonly selectedFeatureId: string | undefined;
241
230
  readonly DisplayMessageComponent: import("react").FC<any> | undefined;
@@ -263,7 +252,9 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
263
252
  afterAttach(): void;
264
253
  } & {
265
254
  colorTagMap: import("mobx").ObservableMap<string, string>;
266
- featureUnderMouseVolatile: import("@jbrowse/core/util").Feature | undefined;
255
+ featureUnderMouseVolatile: import("@jbrowse/core/util").Feature | undefined; /**
256
+ * #action
257
+ */
267
258
  tagsReady: boolean;
268
259
  } & {
269
260
  readonly autorunReady: boolean;