@datagrok/bio 1.7.24 → 1.7.25

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/detectors.js CHANGED
@@ -94,8 +94,10 @@ class BioPackageDetectors extends DG.Package {
94
94
  const alphabet = BioPackageDetectors.detectAlphabet(statsAsChars.freq, candidateAlphabets, '-');
95
95
  if (alphabet === 'UN') return null;
96
96
 
97
- const units = `fasta:SEQ.MSA:${alphabet}`;
97
+ const units = 'fasta';
98
98
  col.setTag(DG.TAGS.UNITS, units);
99
+ col.setTag('aligned', 'SEQ.MSA');
100
+ col.setTag('alphabet', alphabet);
99
101
  return DG.SEMTYPE.MACROMOLECULE;
100
102
  }
101
103
  } else {
@@ -117,8 +119,9 @@ class BioPackageDetectors extends DG.Package {
117
119
 
118
120
  // const forbidden = BioPackageDetectors.checkForbiddenWoSeparator(stats.freq);
119
121
  if (separator || alphabet != 'UN') {
120
- const units = `${format}:${seqType}:${alphabet}`;
121
- col.setTag(DG.TAGS.UNITS, units);
122
+ col.setTag(DG.TAGS.UNITS, format);
123
+ col.setTag('aligned', seqType);
124
+ col.setTag('alphabet', alphabet);
122
125
  if (separator) col.setTag('separator', separator);
123
126
  return DG.SEMTYPE.MACROMOLECULE;
124
127
  }