@datagrok/sequence-translator 1.5.2 → 1.6.0

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.
@@ -46,13 +46,15 @@ export class CyclizedNotationProvider implements INotationProvider {
46
46
  }
47
47
 
48
48
  public getHelm(seq: string, options?: any): string {
49
- const seqChain = Chain.parseNotation(seq, this.helmHelper);
50
- const resPseudoHelm = seqChain.getNotationHelm();
49
+ const seqChain = Chain.fromSeparator(seq, this.helmHelper);
50
+ const resPseudoHelm = seqChain.getHelm();
51
51
  return resPseudoHelm;
52
52
  }
53
53
 
54
- public createCellRendererBack(gridCol: DG.GridColumn | null, tableCol: DG.Column<string>): CellRendererBackBase<string> {
55
- let maxLengthOfMonomer: number = 4; // (_package.bioProperties ? _package.bioProperties.maxMonomerLength : 4) ?? 50;
54
+ public createCellRendererBack(gridCol: DG.GridColumn | null, tableCol: DG.Column<string>):
55
+ CellRendererBackBase<string> {
56
+ const maxLengthOfMonomer: number = 4;
57
+ // (_package.bioProperties ? _package.bioProperties.maxMonomerLength : 4) ?? 50;
56
58
  const back = new CyclizedCellRendererBack(gridCol, tableCol,
57
59
  maxLengthOfMonomer, this.helmHelper.seqHelper);
58
60