@datagrok/bio 2.16.6 → 2.16.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": "Aleksandr Tanas",
6
6
  "email": "atanas@datagrok.ai"
7
7
  },
8
- "version": "2.16.6",
8
+ "version": "2.16.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",
@@ -37,7 +37,7 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@biowasm/aioli": "^3.1.0",
40
- "@datagrok-libraries/bio": "^5.45.4",
40
+ "@datagrok-libraries/bio": "^5.45.5",
41
41
  "@datagrok-libraries/chem-meta": "^1.2.7",
42
42
  "@datagrok-libraries/math": "^1.2.2",
43
43
  "@datagrok-libraries/ml": "^6.7.4",
package/src/package.ts CHANGED
@@ -1139,7 +1139,6 @@ export async function sdfToJsonLib(table: DG.DataFrame) {
1139
1139
  //input: string seq { semType: Macromolecule }
1140
1140
  //input: bool nonlinear
1141
1141
  //output: string molfile { semType: Molecule }
1142
- //meta.role: converter
1143
1142
  export async function seq2atomic(seq: string, nonlinear: boolean): Promise<string | undefined> {
1144
1143
  if (!(seq.trim())) return '';
1145
1144
  try {
@@ -114,7 +114,8 @@ rut2-rty-her2---wert-rut12-rty-her2---wert
114
114
  PEPTIDE1{meI.hHis.Aca.N.T.dE.Thr_PO3H2.Aca.D-Tyr_Et.Thr_PO3H2.Aca.D-Tyr_Et}$$$$
115
115
  PEPTIDE1{meI.hHis.Aca.Cys_SEt.T.dK.Thr_PO3H2.Aca.dK.Thr_PO3H2.Aca}$$$$
116
116
  PEPTIDE1{Lys_Boc.hHis.Aca.Cys_SEt.T.dK.Thr_PO3H2.Aca.dK.Thr_PO3H2.Aca}$$$$
117
- PEPTIDE1{meI.hHis.Aca.Cys_SEt.T.dK.Thr_PO3H2.T.dK.Thr_PO3H2}$$$$`
117
+ PEPTIDE1{meI.hHis.Aca.Cys_SEt.T.dK.Thr_PO3H2.T.dK.Thr_PO3H2}$$$$,
118
+ PEPTIDE1{meI.hHis.Aca.Cys_SEt.T.dK.Thr_PO3H2.T.dK}|PEPTIDE2{Thr_PO3H2}$$$$`,
118
119
  },
119
120
  tgt: {
120
121
  notation: NOTATION.HELM,
@@ -123,6 +124,7 @@ PEPTIDE1{meI.hHis.Aca.Cys_SEt.T.dK.Thr_PO3H2.T.dK.Thr_PO3H2}$$$$`
123
124
  ['meI', 'hHis', 'Aca', 'Cys_SEt', 'T', 'dK', 'Thr_PO3H2', 'Aca', 'dK', 'Thr_PO3H2', 'Aca'],
124
125
  ['Lys_Boc', 'hHis', 'Aca', 'Cys_SEt', 'T', 'dK', 'Thr_PO3H2', 'Aca', 'dK', 'Thr_PO3H2', 'Aca'],
125
126
  ['meI', 'hHis', 'Aca', 'Cys_SEt', 'T', 'dK', 'Thr_PO3H2', 'T', 'dK', 'Thr_PO3H2'],
127
+ ['meI', 'hHis', 'Aca', 'Cys_SEt', 'T', 'dK', 'Thr_PO3H2', 'T', 'dK', 'Thr_PO3H2'],
126
128
  ]
127
129
  }
128
130
  }
@@ -132,7 +132,7 @@ class LibraryControlsManager {
132
132
 
133
133
  private _createControlsForm(): HTMLElement {
134
134
  const libraryControls = this.createLibraryControls();
135
- const inputsForm = ui.form(libraryControls);
135
+ const inputsForm = ui.form(libraryControls, undefined, false);
136
136
  $(inputsForm).addClass('monomer-lib-controls-form');
137
137
 
138
138
  return inputsForm;
@@ -868,6 +868,7 @@ class MonomerForm implements INewMonomerForm {
868
868
  await grok.dapi.files.writeAsText(LIB_PATH + libName, JSON.stringify(libJSON));
869
869
  await (await MonomerLibManager.getInstance()).loadLibraries(true);
870
870
  await this.refreshTable(monomer.symbol);
871
+ this._molChanged = false; // reset the flag
871
872
  grok.shell.info(`Monomer ${monomer.symbol} was successfully saved in library ${libName}`);
872
873
  } catch (e) {
873
874
  grok.shell.error('Error saving monomer');