@datagrok/peptides 1.23.4 → 1.23.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@datagrok/peptides",
3
3
  "friendlyName": "Peptides",
4
- "version": "1.23.4",
4
+ "version": "1.23.6",
5
5
  "author": {
6
6
  "name": "Davit Rizhinashvili",
7
7
  "email": "drizhinashvili@datagrok.ai"
@@ -18,7 +18,7 @@
18
18
  "@datagrok-libraries/ml": "^6.8.2",
19
19
  "@datagrok-libraries/statistics": "^1.2.12",
20
20
  "@datagrok-libraries/tutorials": "^1.6.1",
21
- "@datagrok-libraries/utils": "^4.4.0",
21
+ "@datagrok-libraries/utils": "^4.5.7",
22
22
  "datagrok-api": "^1.23.0",
23
23
  "@webgpu/types": "^0.1.40",
24
24
  "cash-dom": "^8.1.5",
package/src/model.ts CHANGED
@@ -747,9 +747,13 @@ export class PeptidesModel {
747
747
  const cols = this.df.columns;
748
748
  const splitSeqDf = splitAlignedSequences(this.df.getCol(this.settings!.sequenceColumnName), PeptideUtils.getSeqHelper());
749
749
  const positionColumns = splitSeqDf.columns.names();
750
- if (positionColumns.every((colName) => cols.contains(colName)))
751
- positionColumns.forEach((colName) => CR.setMonomerRenderer(this.df.col(colName)!, this.alphabet));
752
- else {
750
+ if (positionColumns.every((colName) => cols.contains(colName))) {
751
+ positionColumns.forEach((colName) => {
752
+ this.df.col(colName)!.setTag(C.TAGS.ANALYSIS_COL, `${true}`);
753
+ this.df.col(colName)!.setTag(C.TAGS.POSITION_COL, `${true}`);
754
+ CR.setMonomerRenderer(this.df.col(colName)!, this.alphabet);
755
+ });
756
+ } else {
753
757
  for (const colName of positionColumns) {
754
758
  let col = this.df.col(colName);
755
759
  const newCol = splitSeqDf.getCol(colName);
@@ -50,7 +50,7 @@ export function mutationCliffsWidget(
50
50
  const uniqueSequencesGridParent = parts!.uniqueSequencesGrid.canvas?.parentElement;
51
51
  if (pairsGridParent && uniqueSequencesGridParent) {
52
52
  pairsGridParent.style.height = '100%';
53
- uniqueSequencesGridParent.style.height = '100%';
53
+ uniqueSequencesGridParent.style.height = 'calc(100% - 20px)';
54
54
  uniqueSequencesGridParent.style.marginTop = '20px';
55
55
  if (dW > 400) {
56
56
  const macroMolWidth = Math.max(dW * 0.33, 200);