@teselagen/ove 0.3.28 → 0.3.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.umd.js CHANGED
@@ -106643,6 +106643,7 @@ ${latestSubscriptionCallbackError.current.stack}
106643
106643
  ))),
106644
106644
  400
106645
106645
  );
106646
+ const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
106646
106647
  function genericCommandFactory(config) {
106647
106648
  const out = {};
106648
106649
  for (const cmdId in config.commandDefs) {
@@ -107696,30 +107697,6 @@ ${latestSubscriptionCallbackError.current.stack}
107696
107697
  }, Symbol.toStringTag, { value: "Module" }));
107697
107698
  const protein_letters = "ACDEFGHIKLMNPQRSTVWY";
107698
107699
  const extended_protein_letters = "ACDEFGHIKLMNPQRSTVWYBXZJUO.*-";
107699
- const protein_letters_1to3 = {
107700
- A: "Ala",
107701
- C: "Cys",
107702
- D: "Asp",
107703
- E: "Glu",
107704
- F: "Phe",
107705
- G: "Gly",
107706
- H: "His",
107707
- I: "Ile",
107708
- K: "Lys",
107709
- L: "Leu",
107710
- M: "Met",
107711
- N: "Asn",
107712
- P: "Pro",
107713
- Q: "Gln",
107714
- R: "Arg",
107715
- S: "Ser",
107716
- T: "Thr",
107717
- V: "Val",
107718
- W: "Trp",
107719
- Y: "Tyr",
107720
- O: "Pyl",
107721
- U: "Sec"
107722
- };
107723
107700
  const ambiguous_dna_letters = "GATCRYWSMKHBVDN";
107724
107701
  const unambiguous_dna_letters = "GATC";
107725
107702
  const ambiguous_rna_letters = "GAUCRYWSMKHBVDN";
@@ -107744,135 +107721,6 @@ ${latestSubscriptionCallbackError.current.stack}
107744
107721
  X: "GATC",
107745
107722
  N: "GATC"
107746
107723
  };
107747
- const ambiguous_rna_values = {
107748
- ".": ".",
107749
- A: "A",
107750
- C: "C",
107751
- G: "G",
107752
- U: "U",
107753
- M: "AC",
107754
- R: "AG",
107755
- W: "AU",
107756
- S: "CG",
107757
- Y: "CU",
107758
- K: "GU",
107759
- V: "ACG",
107760
- H: "ACU",
107761
- D: "AGU",
107762
- B: "CGU",
107763
- X: "GAUC",
107764
- N: "GAUC"
107765
- };
107766
- const ambiguous_dna_complement = {
107767
- ".": ".",
107768
- A: "T",
107769
- C: "G",
107770
- G: "C",
107771
- T: "A",
107772
- M: "K",
107773
- R: "Y",
107774
- W: "W",
107775
- S: "S",
107776
- Y: "R",
107777
- K: "M",
107778
- V: "B",
107779
- H: "D",
107780
- D: "H",
107781
- B: "V",
107782
- X: "X",
107783
- N: "N"
107784
- };
107785
- const ambiguous_rna_complement = {
107786
- ".": ".",
107787
- A: "U",
107788
- C: "G",
107789
- G: "C",
107790
- U: "A",
107791
- M: "K",
107792
- R: "Y",
107793
- W: "W",
107794
- S: "S",
107795
- Y: "R",
107796
- K: "M",
107797
- V: "B",
107798
- H: "D",
107799
- D: "H",
107800
- B: "V",
107801
- X: "X",
107802
- N: "N"
107803
- };
107804
- const unambiguous_dna_weights = {
107805
- A: 331.2218,
107806
- C: 307.1971,
107807
- G: 347.2212,
107808
- T: 322.2085
107809
- };
107810
- const monoisotopic_unambiguous_dna_weights = {
107811
- A: 331.06817,
107812
- C: 307.056936,
107813
- G: 347.063084,
107814
- T: 322.056602
107815
- };
107816
- const unambiguous_rna_weights = {
107817
- A: 347.2212,
107818
- C: 323.1965,
107819
- G: 363.2206,
107820
- U: 324.1813
107821
- };
107822
- const monoisotopic_unambiguous_rna_weights = {
107823
- A: 347.063084,
107824
- C: 323.051851,
107825
- G: 363.057999,
107826
- U: 324.035867
107827
- };
107828
- const protein_weights = {
107829
- A: 89.0932,
107830
- C: 121.1582,
107831
- D: 133.1027,
107832
- E: 147.1293,
107833
- F: 165.1891,
107834
- G: 75.0666,
107835
- H: 155.1546,
107836
- I: 131.1729,
107837
- K: 146.1876,
107838
- L: 131.1729,
107839
- M: 149.2113,
107840
- N: 132.1179,
107841
- O: 255.3134,
107842
- P: 115.1305,
107843
- Q: 146.1445,
107844
- R: 174.201,
107845
- S: 105.0926,
107846
- T: 119.1192,
107847
- U: 168.0532,
107848
- V: 117.1463,
107849
- W: 204.2252,
107850
- Y: 181.1885
107851
- };
107852
- const monoisotopic_protein_weights = {
107853
- A: 89.047678,
107854
- C: 121.019749,
107855
- D: 133.037508,
107856
- E: 147.053158,
107857
- F: 165.078979,
107858
- G: 75.032028,
107859
- H: 155.069477,
107860
- I: 131.094629,
107861
- K: 146.105528,
107862
- L: 131.094629,
107863
- M: 149.051049,
107864
- N: 132.053492,
107865
- O: 255.158292,
107866
- P: 115.063329,
107867
- Q: 146.069142,
107868
- R: 174.111676,
107869
- S: 105.042593,
107870
- T: 119.058243,
107871
- U: 168.964203,
107872
- V: 117.078979,
107873
- W: 204.089878,
107874
- Y: 181.073893
107875
- };
107876
107724
  const extended_protein_values = {
107877
107725
  A: "A",
107878
107726
  B: "ND",
@@ -107907,140 +107755,17 @@ ${latestSubscriptionCallbackError.current.stack}
107907
107755
  ".": "\\.\\.",
107908
107756
  "-": "\\-"
107909
107757
  };
107910
- const atom_weights = {
107911
- H: 1.00794,
107912
- D: 2.0141,
107913
- He: 4.002602,
107914
- Li: 6.941,
107915
- Be: 9.012182,
107916
- B: 10.811,
107917
- C: 12.0107,
107918
- N: 14.0067,
107919
- O: 15.9994,
107920
- F: 18.9984032,
107921
- Ne: 20.1797,
107922
- Na: 22.98977,
107923
- Mg: 24.305,
107924
- Al: 26.981538,
107925
- Si: 28.0855,
107926
- P: 30.973761,
107927
- S: 32.065,
107928
- Cl: 35.453,
107929
- Ar: 39.948,
107930
- K: 39.0983,
107931
- Ca: 40.078,
107932
- Sc: 44.95591,
107933
- Ti: 47.867,
107934
- V: 50.9415,
107935
- Cr: 51.9961,
107936
- Mn: 54.938049,
107937
- Fe: 55.845,
107938
- Co: 58.9332,
107939
- Ni: 58.6934,
107940
- Cu: 63.546,
107941
- Zn: 65.39,
107942
- Ga: 69.723,
107943
- Ge: 72.64,
107944
- As: 74.9216,
107945
- Se: 78.96,
107946
- Br: 79.904,
107947
- Kr: 83.8,
107948
- Rb: 85.4678,
107949
- Sr: 87.62,
107950
- Y: 88.90585,
107951
- Zr: 91.224,
107952
- Nb: 92.90638,
107953
- Mo: 95.94,
107954
- Tc: 98,
107955
- Ru: 101.07,
107956
- Rh: 102.9055,
107957
- Pd: 106.42,
107958
- Ag: 107.8682,
107959
- Cd: 112.411,
107960
- In: 114.818,
107961
- Sn: 118.71,
107962
- Sb: 121.76,
107963
- Te: 127.6,
107964
- I: 126.90447,
107965
- Xe: 131.293,
107966
- Cs: 132.90545,
107967
- Ba: 137.327,
107968
- La: 138.9055,
107969
- Ce: 140.116,
107970
- Pr: 140.90765,
107971
- Nd: 144.24,
107972
- Pm: 145,
107973
- Sm: 150.36,
107974
- Eu: 151.964,
107975
- Gd: 157.25,
107976
- Tb: 158.92534,
107977
- Dy: 162.5,
107978
- Ho: 164.93032,
107979
- Er: 167.259,
107980
- Tm: 168.93421,
107981
- Yb: 173.04,
107982
- Lu: 174.967,
107983
- Hf: 178.49,
107984
- Ta: 180.9479,
107985
- W: 183.84,
107986
- Re: 186.207,
107987
- Os: 190.23,
107988
- Ir: 192.217,
107989
- Pt: 195.078,
107990
- Au: 196.96655,
107991
- Hg: 200.59,
107992
- Tl: 204.3833,
107993
- Pb: 207.2,
107994
- Bi: 208.98038,
107995
- Po: 208.98,
107996
- At: 209.99,
107997
- Rn: 222.02,
107998
- Fr: 223.02,
107999
- Ra: 226.03,
108000
- Ac: 227.03,
108001
- Th: 232.0381,
108002
- Pa: 231.03588,
108003
- U: 238.02891,
108004
- Np: 237.05,
108005
- Pu: 244.06,
108006
- Am: 243.06,
108007
- Cm: 247.07,
108008
- Bk: 247.07,
108009
- Cf: 251.08,
108010
- Es: 252.08,
108011
- Fm: 257.1,
108012
- Md: 258.1,
108013
- No: 259.1,
108014
- Lr: 262.11,
108015
- Rf: 261.11,
108016
- Db: 262.11,
108017
- Sg: 266.12,
108018
- Bh: 264.12,
108019
- Hs: 269.13,
108020
- Mt: 268.14
108021
- };
108022
107758
  const bioData = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
108023
107759
  __proto__: null,
108024
- ambiguous_dna_complement,
108025
107760
  ambiguous_dna_letters,
108026
107761
  ambiguous_dna_values: ambiguous_dna_values$1,
108027
- ambiguous_rna_complement,
108028
107762
  ambiguous_rna_letters,
108029
- ambiguous_rna_values,
108030
- atom_weights,
108031
107763
  extended_dna_letters,
108032
107764
  extended_protein_letters,
108033
107765
  extended_protein_values,
108034
- monoisotopic_protein_weights,
108035
- monoisotopic_unambiguous_dna_weights,
108036
- monoisotopic_unambiguous_rna_weights,
108037
107766
  protein_letters,
108038
- protein_letters_1to3,
108039
- protein_weights,
108040
107767
  unambiguous_dna_letters,
108041
- unambiguous_dna_weights,
108042
- unambiguous_rna_letters,
108043
- unambiguous_rna_weights
107768
+ unambiguous_rna_letters
108044
107769
  }, Symbol.toStringTag, { value: "Module" }));
108045
107770
  const aminoAcidToDegenerateDnaMap = {
108046
107771
  "-": "---",
@@ -113549,7 +113274,7 @@ ${latestSubscriptionCallbackError.current.stack}
113549
113274
  hydrophobicity: 1.8,
113550
113275
  colorByFamily: "#00FFFF",
113551
113276
  color: "hsl(327.3, 100%, 69%)",
113552
- mass: 89.1
113277
+ mass: 71.0779
113553
113278
  },
113554
113279
  R: {
113555
113280
  value: "R",
@@ -113558,7 +113283,7 @@ ${latestSubscriptionCallbackError.current.stack}
113558
113283
  hydrophobicity: -4.5,
113559
113284
  colorByFamily: "#FFC0CB",
113560
113285
  color: "hsl(258.1, 100%, 69%)",
113561
- mass: 174.2
113286
+ mass: 156.18568
113562
113287
  },
113563
113288
  N: {
113564
113289
  value: "N",
@@ -113567,7 +113292,7 @@ ${latestSubscriptionCallbackError.current.stack}
113567
113292
  hydrophobicity: -3.5,
113568
113293
  colorByFamily: "#D3D3D3",
113569
113294
  color: "hsl(268.9, 100%, 69%)",
113570
- mass: 132.1
113295
+ mass: 114.10264
113571
113296
  },
113572
113297
  D: {
113573
113298
  value: "D",
@@ -113576,7 +113301,7 @@ ${latestSubscriptionCallbackError.current.stack}
113576
113301
  hydrophobicity: -3.5,
113577
113302
  colorByFamily: "#EE82EE",
113578
113303
  color: "hsl(268.9, 100%, 69%)",
113579
- mass: 133.1
113304
+ mass: 115.0874
113580
113305
  },
113581
113306
  C: {
113582
113307
  value: "C",
@@ -113585,7 +113310,7 @@ ${latestSubscriptionCallbackError.current.stack}
113585
113310
  hydrophobicity: 2.5,
113586
113311
  colorByFamily: "#FFFF00",
113587
113312
  color: "hsl(335.1, 100%, 69%)",
113588
- mass: 121.2
113313
+ mass: 103.1429
113589
113314
  },
113590
113315
  E: {
113591
113316
  value: "E",
@@ -113594,7 +113319,7 @@ ${latestSubscriptionCallbackError.current.stack}
113594
113319
  hydrophobicity: -3.5,
113595
113320
  colorByFamily: "#EE82EE",
113596
113321
  color: "hsl(268.9, 100%, 69%)",
113597
- mass: 147.1
113322
+ mass: 129.11398
113598
113323
  },
113599
113324
  Q: {
113600
113325
  value: "Q",
@@ -113603,7 +113328,7 @@ ${latestSubscriptionCallbackError.current.stack}
113603
113328
  hydrophobicity: -3.5,
113604
113329
  colorByFamily: "#D3D3D3",
113605
113330
  color: "hsl(268.9, 100%, 69%)",
113606
- mass: 146.2
113331
+ mass: 128.12922
113607
113332
  },
113608
113333
  G: {
113609
113334
  value: "G",
@@ -113612,7 +113337,7 @@ ${latestSubscriptionCallbackError.current.stack}
113612
113337
  hydrophobicity: -0.4,
113613
113338
  colorByFamily: "#00FFFF",
113614
113339
  color: "hsl(303.1, 100%, 69%)",
113615
- mass: 75.1
113340
+ mass: 57.05132
113616
113341
  },
113617
113342
  H: {
113618
113343
  value: "H",
@@ -113621,7 +113346,7 @@ ${latestSubscriptionCallbackError.current.stack}
113621
113346
  hydrophobicity: -3.2,
113622
113347
  colorByFamily: "#FFC0CB",
113623
113348
  color: "hsl(272.2, 100%, 69%)",
113624
- mass: 155.2
113349
+ mass: 137.13928
113625
113350
  },
113626
113351
  I: {
113627
113352
  value: "I",
@@ -113630,7 +113355,7 @@ ${latestSubscriptionCallbackError.current.stack}
113630
113355
  hydrophobicity: 4.5,
113631
113356
  colorByFamily: "#00FFFF",
113632
113357
  color: "hsl(356.9, 100%, 69%)",
113633
- mass: 131.2
113358
+ mass: 113.15764
113634
113359
  },
113635
113360
  L: {
113636
113361
  value: "L",
@@ -113639,7 +113364,7 @@ ${latestSubscriptionCallbackError.current.stack}
113639
113364
  hydrophobicity: 3.8,
113640
113365
  colorByFamily: "#00FFFF",
113641
113366
  color: "hsl(349.4, 100%, 69%)",
113642
- mass: 131.2
113367
+ mass: 113.15764
113643
113368
  },
113644
113369
  K: {
113645
113370
  value: "K",
@@ -113648,7 +113373,7 @@ ${latestSubscriptionCallbackError.current.stack}
113648
113373
  hydrophobicity: -3.9,
113649
113374
  colorByFamily: "#FFC0CB",
113650
113375
  color: "hsl(264.7, 100%, 69%)",
113651
- mass: 146.2
113376
+ mass: 128.17228
113652
113377
  },
113653
113378
  M: {
113654
113379
  value: "M",
@@ -113657,7 +113382,7 @@ ${latestSubscriptionCallbackError.current.stack}
113657
113382
  hydrophobicity: 1.9,
113658
113383
  colorByFamily: "#FFFF00",
113659
113384
  color: "hsl(328.5, 100%, 69%)",
113660
- mass: 149.2
113385
+ mass: 131.19606
113661
113386
  },
113662
113387
  F: {
113663
113388
  value: "F",
@@ -113666,7 +113391,7 @@ ${latestSubscriptionCallbackError.current.stack}
113666
113391
  hydrophobicity: 2.8,
113667
113392
  colorByFamily: "#FFA500",
113668
113393
  color: "hsl(338.4, 100%, 69%)",
113669
- mass: 165.2
113394
+ mass: 147.17386
113670
113395
  },
113671
113396
  P: {
113672
113397
  value: "P",
@@ -113675,7 +113400,7 @@ ${latestSubscriptionCallbackError.current.stack}
113675
113400
  hydrophobicity: -1.6,
113676
113401
  colorByFamily: "#00FFFF",
113677
113402
  color: "hsl(289.9, 100%, 69%)",
113678
- mass: 115.1
113403
+ mass: 97.11518
113679
113404
  },
113680
113405
  S: {
113681
113406
  value: "S",
@@ -113684,7 +113409,7 @@ ${latestSubscriptionCallbackError.current.stack}
113684
113409
  hydrophobicity: -0.8,
113685
113410
  colorByFamily: "#90EE90",
113686
113411
  color: "hsl(298.6, 100%, 69%)",
113687
- mass: 105.1
113412
+ mass: 87.0773
113688
113413
  },
113689
113414
  T: {
113690
113415
  value: "T",
@@ -113693,7 +113418,7 @@ ${latestSubscriptionCallbackError.current.stack}
113693
113418
  hydrophobicity: -0.7,
113694
113419
  colorByFamily: "#90EE90",
113695
113420
  color: "hsl(299.8, 100%, 69%)",
113696
- mass: 119.1
113421
+ mass: 101.10388
113697
113422
  },
113698
113423
  U: {
113699
113424
  value: "U",
@@ -113701,7 +113426,7 @@ ${latestSubscriptionCallbackError.current.stack}
113701
113426
  threeLettersName: "Sec",
113702
113427
  colorByFamily: "#FF0000",
113703
113428
  color: "hsl(0, 100%, 69%)",
113704
- mass: 168.1
113429
+ mass: 150.3079
113705
113430
  },
113706
113431
  W: {
113707
113432
  value: "W",
@@ -113710,7 +113435,7 @@ ${latestSubscriptionCallbackError.current.stack}
113710
113435
  hydrophobicity: -0.9,
113711
113436
  colorByFamily: "#FFA500",
113712
113437
  color: "hsl(297.6, 100%, 69%)",
113713
- mass: 204.2
113438
+ mass: 186.2099
113714
113439
  },
113715
113440
  Y: {
113716
113441
  value: "Y",
@@ -113719,7 +113444,7 @@ ${latestSubscriptionCallbackError.current.stack}
113719
113444
  hydrophobicity: -1.3,
113720
113445
  colorByFamily: "#FFA500",
113721
113446
  color: "hsl(293.2, 100%, 69%)",
113722
- mass: 181.2
113447
+ mass: 163.17326
113723
113448
  },
113724
113449
  V: {
113725
113450
  value: "V",
@@ -113728,7 +113453,7 @@ ${latestSubscriptionCallbackError.current.stack}
113728
113453
  hydrophobicity: 4.2,
113729
113454
  colorByFamily: "#00FFFF",
113730
113455
  color: "hsl(353.6, 100%, 69%)",
113731
- mass: 117.1
113456
+ mass: 99.13106
113732
113457
  },
113733
113458
  "*": {
113734
113459
  value: "*",
@@ -123397,6 +123122,9 @@ ${latestSubscriptionCallbackError.current.stack}
123397
123122
  if (divideByThree) {
123398
123123
  sumMass /= 3;
123399
123124
  }
123125
+ if (aaString.length > 0) {
123126
+ sumMass = sumMass + 18.0153;
123127
+ }
123400
123128
  return Math.round(sumMass * __pow(10, numsAfterDecimal)) / __pow(10, numsAfterDecimal);
123401
123129
  }
123402
123130
  __name(getMassOfAaString, "getMassOfAaString");
@@ -150746,10 +150474,10 @@ ${seq.sequence}
150746
150474
  }, containerStyle);
150747
150475
  const width = rowSeqLen * charWidth2;
150748
150476
  let inner2;
150749
- const shared2 = {
150477
+ const shared2 = __spreadProps(__spreadValues({}, isSafari ? { letterSpacing: "3px" } : {}), {
150750
150478
  y: height2 - height2 / 4,
150751
150479
  className: "ve-monospace-font " + (isReverse ? " ve-sequence-reverse" : "")
150752
- };
150480
+ });
150753
150481
  if (scrollData) {
150754
150482
  const numChunks = Math.ceil(rowSeqLen / chunkSize);
150755
150483
  const chunkWidth = chunkSize * charWidth2;
@@ -155180,7 +154908,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
155180
154908
  }
155181
154909
  __name(showFileDialog, "showFileDialog");
155182
154910
  const name = "@teselagen/ove";
155183
- const version = "0.3.27";
154911
+ const version = "0.3.29";
155184
154912
  const main = "./src/index.js";
155185
154913
  const exports$1 = {
155186
154914
  ".": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.3.28",
3
+ "version": "0.3.30",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -13,12 +13,12 @@
13
13
  "node": "16.20.2"
14
14
  },
15
15
  "dependencies": {
16
- "@teselagen/sequence-utils": "0.3.7",
16
+ "@teselagen/sequence-utils": "0.3.8",
17
17
  "@teselagen/range-utils": "0.3.7",
18
- "@teselagen/ui": "0.3.28",
18
+ "@teselagen/ui": "0.3.29",
19
19
  "@teselagen/file-utils": "0.3.9",
20
20
  "@teselagen/bounce-loader": "0.3.11",
21
- "@teselagen/bio-parsers": "0.3.9",
21
+ "@teselagen/bio-parsers": "0.3.10",
22
22
  "@blueprintjs/core": "3.52.0",
23
23
  "@blueprintjs/datetime": "3.23.19",
24
24
  "@blueprintjs/icons": "3.33.0",
@@ -8,6 +8,7 @@ import { hoveredAnnEasyStore } from "../helperComponents/withHover";
8
8
  import { getOverlapsOfPotentiallyCircularRanges } from "@teselagen/range-utils";
9
9
  import { partOverhangs } from "./partOverhangs";
10
10
  import { isPositionWithinRange } from "@teselagen/range-utils";
11
+ import { isSafari } from "@teselagen/ui";
11
12
 
12
13
  const getChunk = (sequence, chunkSize, chunkNumber) =>
13
14
  sequence.slice(chunkSize * chunkNumber, chunkSize * (chunkNumber + 1));
@@ -89,6 +90,7 @@ class Sequence extends React.Component {
89
90
 
90
91
  let inner;
91
92
  const shared = {
93
+ ...isSafari ? { letterSpacing: "3px" } : {},
92
94
  y: height - height / 4,
93
95
  className:
94
96
  "ve-monospace-font " + (isReverse ? " ve-sequence-reverse" : "")