@datagrok/bio 2.15.5 → 2.15.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Bio changelog
2
2
 
3
+ ## 2.15.6 (2024-09-27)
4
+
5
+ ### Bug fixes
6
+
7
+ * Fix detectMacromolecule forbidding monomers '2,...', add test
8
+ * Fix using IMonomerLibHelper.loadMonomerLibForTests
9
+ * Fix cell renderer to reset reference sequence on reset current row
10
+ * GROK-16699: Fix PepSeA container return meaningful error messages, unskip test
11
+ * Fix test data monomers add aG, azG
12
+ * Fix unskip toAtomicLevel tests depending on HelmHelper
13
+ * Fix detectMacromolecule for harmonized sequences, add test
14
+
3
15
  ## 2.15.5 (2024-09-25)
4
16
 
5
17
  ### New features
package/detectors.js CHANGED
@@ -385,7 +385,8 @@ class BioPackageDetectors extends DG.Package {
385
385
  */
386
386
  checkBadMultichar(freq) /* : string | null */ {
387
387
  for (const symbol of Object.keys(freq)) {
388
- if (symbol && !isNaN(symbol)) return symbol; // performance evaluated better with RegExp
388
+ if (symbol && !isNaN(symbol))
389
+ return symbol; // performance evaluated better with RegExp
389
390
 
390
391
  const symbolLen = symbol.length;
391
392
  if (this.forbiddenMulticharFirst.includes(symbol[0]))
@@ -397,6 +398,10 @@ class BioPackageDetectors extends DG.Package {
397
398
  if (this.forbiddenMulticharMiddle.includes(c))
398
399
  return symbol;
399
400
  }
401
+ if (symbol.match(/^\d+\W+.*/))
402
+ // symbols like '2,...' are forbidden
403
+ // we require an alphabet character just after the leading digit(s)
404
+ return symbol;
400
405
  }
401
406
  return null;
402
407
  }