@datagrok/bio 2.21.6 → 2.21.7

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "name": "Leonid Stolbov",
6
6
  "email": "lstolbov@datagrok.ai"
7
7
  },
8
- "version": "2.21.6",
8
+ "version": "2.21.7",
9
9
  "description": "Bioinformatics support (import/export of sequences, conversion, visualization, analysis). [See more](https://github.com/datagrok-ai/public/blob/master/packages/Bio/README.md) for details.",
10
10
  "repository": {
11
11
  "type": "git",
@@ -23,7 +23,7 @@ export function handleSequenceHeaderRendering() {
23
23
  const sh = _package.seqHelper.getSeqHandler(seqCol);
24
24
  if (!sh)
25
25
  continue;
26
- if (sh.isHelm() || sh.alphabet === ALPHABET.UN || !sh.isMsa())
26
+ if (sh.isHelm() || sh.alphabet === ALPHABET.UN)
27
27
  continue;
28
28
 
29
29
  const gCol = grid.col(seqCol.name);
@@ -38,9 +38,9 @@ export function handleSequenceHeaderRendering() {
38
38
  const getFontSize = () => MonomerPlacer.getFontSettings(seqCol).fontWidth;
39
39
  // get the maximum length of sequences by randomly taking 10 sequences;
40
40
  let maxSeqLen = 0;
41
- for (let i = 0; i < Math.min(10, df.rowCount); i++) {
42
- const row = Math.floor(Math.random() * df.rowCount - 1);
43
- const seq = sh.getSplitted(row);
41
+ for (let i = 0; i < Math.min(30, seqCol.categories.length); i++) {
42
+ const row = Math.floor(Math.random() * seqCol.categories.length - 1);
43
+ const seq = sh.splitter(seqCol.categories[row]);
44
44
  if (seq)
45
45
  maxSeqLen = Math.max(maxSeqLen, seq.length);
46
46
  }