@datagrok-libraries/bio 5.26.0 → 5.27.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.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "friendlyName": "Datagrok bio library",
7
- "version": "5.26.0",
7
+ "version": "5.27.0",
8
8
  "description": "",
9
9
  "dependencies": {
10
10
  "@datagrok-libraries/gridext": "^1.3.22",
@@ -0,0 +1,39 @@
1
+ import * as DG from 'datagrok-api/dg';
2
+ import { IViewer } from './viewer';
3
+ import { PositionHeight } from './web-logo';
4
+ export declare enum VdRegionType {
5
+ Unknown = "unknown",
6
+ FR = "framework",
7
+ CDR = "cdr"
8
+ }
9
+ /** Describes V-DOMAIN (IG and TR) region (of multiple alignment)
10
+ * https://www.imgt.org/IMGTScientificChart/Numbering/IMGTIGVLsuperfamily.html
11
+ * Attributes {@link positionStartName} and {@link positionEndName} are strings because
12
+ * they correspond to position names as column names in ANARCI output (with a character index possible).
13
+ */
14
+ export interface VdRegion {
15
+ readonly type: VdRegionType;
16
+ readonly name: string;
17
+ readonly chain: string;
18
+ readonly order: number;
19
+ /** Name of the column containing sequence */
20
+ readonly sequenceColumnName: string;
21
+ /** Region start position (inclusive) */
22
+ readonly positionStartName: string;
23
+ /** Region end position (inclusive) */
24
+ readonly positionEndName: string;
25
+ }
26
+ export declare class VdRegionsPropsDefault {
27
+ regionTypes: VdRegionType[];
28
+ chains: string[];
29
+ skipEmptyPositions: boolean;
30
+ positionWidth: number;
31
+ positionHeight: PositionHeight;
32
+ }
33
+ export type VdRegionsProps = Required<VdRegionsPropsDefault>;
34
+ /** Interface for VdRegionsViewer from @datagrok/bio to unbind dependency to Bio package */
35
+ export interface IVdRegionsViewer extends VdRegionsProps, IViewer {
36
+ init(): Promise<void>;
37
+ setData(mlbDf: DG.DataFrame, regions: VdRegion[]): void;
38
+ }
39
+ //# sourceMappingURL=vd-regions.d.ts.map
@@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from './web-logo';
2
+ // Data structures for V-Domain regions of antibodies
3
+ export var VdRegionType;
4
+ (function (VdRegionType) {
5
+ VdRegionType["Unknown"] = "unknown";
6
+ VdRegionType["FR"] = "framework";
7
+ VdRegionType["CDR"] = "cdr";
8
+ })(VdRegionType || (VdRegionType = {}));
9
+ export class VdRegionsPropsDefault {
10
+ constructor() {
11
+ this.regionTypes = [VdRegionType.CDR];
12
+ this.chains = ['Heavy', 'Light'];
13
+ //sequenceColumnNamePostfix: string = 'chain sequence';
14
+ this.skipEmptyPositions = false;
15
+ this.positionWidth = 16;
16
+ this.positionHeight = PositionHeight.Entropy;
17
+ }
18
+ }
19
+ //# sourceMappingURL=vd-regions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vd-regions.js","sourceRoot":"","sources":["vd-regions.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAC;AAE1C,qDAAqD;AAErD,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,gCAAgB,CAAA;IAChB,2BAAW,CAAA;AACb,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB;AAwBD,MAAM,OAAO,qBAAqB;IAAlC;QACE,gBAAW,GAAmB,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;QACjD,WAAM,GAAa,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACtC,uDAAuD;QAEvD,uBAAkB,GAAY,KAAK,CAAC;QACpC,kBAAa,GAAW,EAAE,CAAC;QAC3B,mBAAc,GAAmB,cAAc,CAAC,OAAO,CAAC;IAC1D,CAAC;CAAA"}
@@ -1,5 +1,22 @@
1
+ import { IViewer } from './viewer';
1
2
  export declare enum PositionHeight {
2
3
  Entropy = "Entropy",
3
4
  full = "100%"
4
5
  }
6
+ export declare class WebLogoPropsDefault {
7
+ sequenceColumnName: string | null;
8
+ startPositionName: string | null;
9
+ endPositionName: string | null;
10
+ skipEmptySequences: boolean;
11
+ skipEmptyPositions: boolean;
12
+ shrinkEmptyTail: boolean;
13
+ }
14
+ export type WebLogoProps = Required<WebLogoPropsDefault>;
15
+ export interface IWebLogoViewer extends WebLogoProps, IViewer {
16
+ }
17
+ export declare const positionSeparator: string;
18
+ export declare const positionRe: RegExp;
19
+ export declare enum TAGS {
20
+ positionNames = ".positionNames"
21
+ }
5
22
  //# sourceMappingURL=web-logo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"web-logo.d.ts","sourceRoot":"","sources":["web-logo.ts"],"names":[],"mappings":"AAIA,oBAAY,cAAc;IACxB,OAAO,YAAY;IACnB,IAAI,SAAS;CACd"}
1
+ {"version":3,"file":"web-logo.d.ts","sourceRoot":"","sources":["web-logo.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,OAAO,EAAC,MAAM,UAAU,CAAC;AAEjC,oBAAY,cAAc;IACxB,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED,qBAAa,mBAAmB;IAE9B,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAQ;IACzC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAQ;IACxC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAQ;IACtC,kBAAkB,EAAE,OAAO,CAAQ;IACnC,kBAAkB,EAAE,OAAO,CAAS;IACpC,eAAe,EAAE,OAAO,CAAQ;CACjC;AAED,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AAEzD,MAAM,WAAW,cAAe,SAAQ,YAAY,EAAE,OAAO;CAE5D;AAED,eAAO,MAAM,iBAAiB,EAAE,MAAa,CAAC;AAC9C,eAAO,MAAM,UAAU,EAAE,MAAwB,CAAC;AAElD,oBAAY,IAAI;IACd,aAAa,mBAAmB;CACjC"}
@@ -3,4 +3,21 @@ export var PositionHeight;
3
3
  PositionHeight["Entropy"] = "Entropy";
4
4
  PositionHeight["full"] = "100%";
5
5
  })(PositionHeight || (PositionHeight = {}));
6
+ export class WebLogoPropsDefault {
7
+ constructor() {
8
+ // -- Data --
9
+ this.sequenceColumnName = null;
10
+ this.startPositionName = null;
11
+ this.endPositionName = null;
12
+ this.skipEmptySequences = true;
13
+ this.skipEmptyPositions = false;
14
+ this.shrinkEmptyTail = true;
15
+ }
16
+ }
17
+ export const positionSeparator = ', ';
18
+ export const positionRe = /(\d+)([A-Z]?)/;
19
+ export var TAGS;
20
+ (function (TAGS) {
21
+ TAGS["positionNames"] = ".positionNames";
22
+ })(TAGS || (TAGS = {}));
6
23
  //# sourceMappingURL=web-logo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"web-logo.js","sourceRoot":"","sources":["web-logo.ts"],"names":[],"mappings":"AAIA,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,+BAAa,CAAA;AACf,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB"}
1
+ {"version":3,"file":"web-logo.js","sourceRoot":"","sources":["web-logo.ts"],"names":[],"mappings":"AAKA,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,+BAAa,CAAA;AACf,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAED,MAAM,OAAO,mBAAmB;IAAhC;QACE,aAAa;QACb,uBAAkB,GAAkB,IAAI,CAAC;QACzC,sBAAiB,GAAkB,IAAI,CAAC;QACxC,oBAAe,GAAkB,IAAI,CAAC;QACtC,uBAAkB,GAAY,IAAI,CAAC;QACnC,uBAAkB,GAAY,KAAK,CAAC;QACpC,oBAAe,GAAY,IAAI,CAAC;IAClC,CAAC;CAAA;AAQD,MAAM,CAAC,MAAM,iBAAiB,GAAW,IAAI,CAAC;AAC9C,MAAM,CAAC,MAAM,UAAU,GAAW,eAAe,CAAC;AAElD,MAAM,CAAN,IAAY,IAEX;AAFD,WAAY,IAAI;IACd,wCAAgC,CAAA;AAClC,CAAC,EAFW,IAAI,KAAJ,IAAI,QAEf"}
@@ -1,34 +0,0 @@
1
- import * as DG from 'datagrok-api/dg';
2
- import { IViewer } from './viewers/viewer';
3
- export declare enum VdRegionType {
4
- Unknown = "unknown",
5
- FR = "framework",
6
- CDR = "cdr"
7
- }
8
- /** Describes V-DOMAIN (IG and TR) region (of multiple alignment)
9
- * https://www.imgt.org/IMGTScientificChart/Numbering/IMGTIGVLsuperfamily.html
10
- */
11
- export declare class VdRegion {
12
- type: VdRegionType;
13
- name: string;
14
- chain: string;
15
- order: number;
16
- positionStartName: string;
17
- positionEndName: string;
18
- /**
19
- * start and position are strings because they correspond to position names as column names in ANARCI output
20
- * @param {VdRegionType} type Type of the region
21
- * @param {string} name Name of the region
22
- * @param {string} chain
23
- * @param {string} order
24
- * @param {string} positionStartName Region start position (inclusive)
25
- * @param {string} positionEndName Region end position (inclusive)
26
- */
27
- constructor(type: VdRegionType, name: string, chain: string, order: number, positionStartName: string, positionEndName: string);
28
- }
29
- /** Interface for VdRegionsViewer from @datagrok/bio to unbind dependency to Bio package */
30
- export interface IVdRegionsViewer extends IViewer {
31
- init(): Promise<void>;
32
- setData(mlbDf: DG.DataFrame, regions: VdRegion[]): void;
33
- }
34
- //# sourceMappingURL=vd-regions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vd-regions.d.ts","sourceRoot":"","sources":["vd-regions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAEtC,OAAO,EAAC,OAAO,EAAC,MAAM,kBAAkB,CAAC;AAIzC,oBAAY,YAAY;IACtB,OAAO,YAAY;IACnB,EAAE,cAAc;IAChB,GAAG,QAAQ;CACZ;AAED;;GAEG;AACH,qBAAa,QAAQ;IACnB,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IAExB;;;;;;;;OAQG;gBACS,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EACxE,iBAAiB,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM;CAQrD;AAED,2FAA2F;AAC3F,MAAM,WAAW,gBAAiB,SAAQ,OAAO;IAC/C,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtB,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;CACzD"}
package/src/vd-regions.js DELETED
@@ -1,30 +0,0 @@
1
- // Data structures for V-Domain regions of antibodies
2
- export var VdRegionType;
3
- (function (VdRegionType) {
4
- VdRegionType["Unknown"] = "unknown";
5
- VdRegionType["FR"] = "framework";
6
- VdRegionType["CDR"] = "cdr";
7
- })(VdRegionType || (VdRegionType = {}));
8
- /** Describes V-DOMAIN (IG and TR) region (of multiple alignment)
9
- * https://www.imgt.org/IMGTScientificChart/Numbering/IMGTIGVLsuperfamily.html
10
- */
11
- export class VdRegion {
12
- /**
13
- * start and position are strings because they correspond to position names as column names in ANARCI output
14
- * @param {VdRegionType} type Type of the region
15
- * @param {string} name Name of the region
16
- * @param {string} chain
17
- * @param {string} order
18
- * @param {string} positionStartName Region start position (inclusive)
19
- * @param {string} positionEndName Region end position (inclusive)
20
- */
21
- constructor(type, name, chain, order, positionStartName, positionEndName) {
22
- this.type = type;
23
- this.name = name;
24
- this.chain = chain;
25
- this.order = order;
26
- this.positionStartName = positionStartName;
27
- this.positionEndName = positionEndName;
28
- }
29
- }
30
- //# sourceMappingURL=vd-regions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vd-regions.js","sourceRoot":"","sources":["vd-regions.ts"],"names":[],"mappings":"AAIA,qDAAqD;AAErD,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,gCAAgB,CAAA;IAChB,2BAAW,CAAA;AACb,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB;AAED;;GAEG;AACH,MAAM,OAAO,QAAQ;IAQnB;;;;;;;;OAQG;IACH,YAAY,IAAkB,EAAE,IAAY,EAAE,KAAa,EAAE,KAAa,EACxE,iBAAyB,EAAE,eAAuB;QAClD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IACzC,CAAC;CACF"}