@jbrowse/plugin-variants 2.15.1 → 2.15.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.
@@ -33,7 +33,7 @@ export default class VCFFeature implements Feature {
33
33
  dataFromVariant(variant: {
34
34
  REF: string;
35
35
  POS: number;
36
- ALT: string[];
36
+ ALT?: string[];
37
37
  CHROM: string;
38
38
  INFO: any;
39
39
  ID?: string[];
@@ -32,8 +32,8 @@ class VCFFeature {
32
32
  const { REF, ALT, POS, CHROM, INFO, ID } = variant;
33
33
  const start = POS - 1;
34
34
  const [type, description] = (0, util_1.getSOTermAndDescription)(REF, ALT, this.parser);
35
- const isTRA = ALT.includes('<TRA>');
36
- const isSymbolic = ALT.some(f => f.includes('<'));
35
+ const isTRA = ALT === null || ALT === void 0 ? void 0 : ALT.includes('<TRA>');
36
+ const isSymbolic = ALT === null || ALT === void 0 ? void 0 : ALT.some(f => f.includes('<'));
37
37
  return {
38
38
  refName: CHROM,
39
39
  start,
@@ -33,7 +33,7 @@ export default class VCFFeature implements Feature {
33
33
  dataFromVariant(variant: {
34
34
  REF: string;
35
35
  POS: number;
36
- ALT: string[];
36
+ ALT?: string[];
37
37
  CHROM: string;
38
38
  INFO: any;
39
39
  ID?: string[];
@@ -30,8 +30,8 @@ export default class VCFFeature {
30
30
  const { REF, ALT, POS, CHROM, INFO, ID } = variant;
31
31
  const start = POS - 1;
32
32
  const [type, description] = getSOTermAndDescription(REF, ALT, this.parser);
33
- const isTRA = ALT.includes('<TRA>');
34
- const isSymbolic = ALT.some(f => f.includes('<'));
33
+ const isTRA = ALT === null || ALT === void 0 ? void 0 : ALT.includes('<TRA>');
34
+ const isSymbolic = ALT === null || ALT === void 0 ? void 0 : ALT.some(f => f.includes('<'));
35
35
  return {
36
36
  refName: CHROM,
37
37
  start,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-variants",
3
- "version": "2.15.1",
3
+ "version": "2.15.2",
4
4
  "description": "JBrowse 2 variant adapters, tracks, etc.",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -40,7 +40,7 @@
40
40
  "@gmod/bgzf-filehandle": "^1.4.3",
41
41
  "@gmod/tabix": "^1.5.6",
42
42
  "@gmod/vcf": "^5.0.9",
43
- "@jbrowse/sv-core": "^2.15.1",
43
+ "@jbrowse/sv-core": "^2.15.2",
44
44
  "@mui/icons-material": "^6.0.0",
45
45
  "@mui/x-data-grid": "^7.0.0",
46
46
  "generic-filehandle": "^3.0.0"
@@ -63,5 +63,5 @@
63
63
  "distModule": "esm/index.js",
64
64
  "srcModule": "src/index.ts",
65
65
  "module": "esm/index.js",
66
- "gitHead": "86ed70124fc5a0b1161266659d1ca9f8796bf3fe"
66
+ "gitHead": "8a58cefbfe39af4c97bcb6ead354d72c9fef9224"
67
67
  }