@datagrok-libraries/bio 0.0.2 → 0.0.3

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,10 +5,10 @@
5
5
  },
6
6
  "beta": true,
7
7
  "friendlyName": "Datagrok bio library",
8
- "version": "0.0.2",
8
+ "version": "0.0.3",
9
9
  "description": "",
10
10
  "dependencies": {
11
- "datagrok-api": ">=0.95.8",
11
+ "datagrok-api": ">=0.108.0",
12
12
  "@datagrok-libraries/utils": ">=0.0.13",
13
13
  "cash-dom": "latest",
14
14
  "dayjs": "latest"
@@ -30,8 +30,8 @@
30
30
  "link-all": "npm link datagrok-api @datagrok-libraries/utils",
31
31
  "debug-bio": "grok publish --rebuild",
32
32
  "release-bio": "grok publish --rebuild --release",
33
- "build-bio": "webpack",
34
- "build": "webpack",
33
+ "build-bio": "tsc",
34
+ "build": "tsc",
35
35
  "debug-bio-public": "grok publish public --rebuild",
36
36
  "release-bio-public": "grok publish public --rebuild --release",
37
37
  "debug-bio-local": "grok publish local --rebuild",
@@ -0,0 +1,62 @@
1
+ declare type SideChainScale = {
2
+ [name: string]: number;
3
+ };
4
+ /**
5
+ * Class to categorial encode/decode aligned amino acid residues sequence.
6
+ *
7
+ * @export
8
+ * @class AlignedSequenceEncoder
9
+ */
10
+ export declare class AlignedSequenceEncoder {
11
+ protected aa2num: SideChainScale;
12
+ protected num2aa: {
13
+ [code: number]: string;
14
+ };
15
+ constructor(scale?: string);
16
+ /**
17
+ * Truncate NH2 and -COOH terminals of the given sequence.
18
+ *
19
+ * @static
20
+ * @param {string} seq The sequence provided.
21
+ * @return {string} Truncated sequence.
22
+ * @memberof AlignedSequenceEncoder
23
+ */
24
+ static _truncateSequence(seq: string): string;
25
+ /**
26
+ * Cuts auxiliary defises before a residue.
27
+ *
28
+ * @static
29
+ * @param {string} seq The sequence to process.
30
+ * @return {string} Processed sequence.
31
+ * @memberof AlignedSequenceEncoder
32
+ */
33
+ static _dropDefises(seq: string): string;
34
+ /**
35
+ * Performs truncation and cutting auxiliary defises.
36
+ *
37
+ * @static
38
+ * @param {string} sequence The sequence work under process.
39
+ * @return {string} Result of cleaning.
40
+ * @memberof AlignedSequenceEncoder
41
+ */
42
+ static clean(sequence: string): string;
43
+ /**
44
+ * Categorial encode of the sequence provided.
45
+ *
46
+ * @param {string} sequence The sequence.
47
+ * @return {number[]} Encoded vector.
48
+ * @memberof AlignedSequenceEncoder
49
+ */
50
+ encode(sequence: string): number[];
51
+ encodeLettter(letter: string): number;
52
+ /**
53
+ * Decode the encoded vector into the sequence back.
54
+ *
55
+ * @param {number[]} value The vector encoded.
56
+ * @return {string} Decoded sequence.
57
+ * @memberof AlignedSequenceEncoder
58
+ */
59
+ decode(value: number[]): string;
60
+ }
61
+ export {};
62
+ //# sourceMappingURL=sequence-encoder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sequence-encoder.d.ts","sourceRoot":"","sources":["sequence-encoder.ts"],"names":[],"mappings":"AAEA,aAAK,cAAc,GAAG;IAAC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC,CAAC;AAgE/C;;;;;GAKG;AACH,qBAAa,sBAAsB;IACjC,SAAS,CAAC,MAAM,EAAE,cAAc,CAAC;IACjC,SAAS,CAAC,MAAM,EAAE;QAAC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;KAAC,CAAC;gBAE/B,KAAK,GAAE,MAAqB;IAMxC;;;;;;;SAOK;IACL,MAAM,CAAC,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAkB7C;;;;;;;SAOK;IACL,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAIxC;;;;;;;SAOK;IACL,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAItC;;;;;;SAMK;IACE,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE;IAclC,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAI5C;;;;;;SAMK;IACE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM;CAYvC"}
package/tsconfig.json CHANGED
@@ -4,14 +4,14 @@
4
4
 
5
5
  /* Basic Options */
6
6
  // "incremental": true, /* Enable incremental compilation */
7
- "target": "es2018", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
7
+ "target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
8
8
  "module": "es2020", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
9
9
  "lib": ["es2020", "dom"], /* Specify library files to be included in the compilation. */
10
10
  // "allowJs": true, /* Allow javascript files to be compiled. */
11
11
  // "checkJs": true, /* Report errors in .js files. */
12
12
  // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */
13
- // "declaration": true, /* Generates corresponding '.d.ts' file. */
14
- // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
13
+ "declaration": true, /* Generates corresponding '.d.ts' file. */
14
+ "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
15
15
  // "sourceMap": true, /* Generates corresponding '.map' file. */
16
16
  // "outFile": "./", /* Concatenate and emit output to single file. */
17
17
  // "outDir": "./", /* Redirect output structure to the directory. */
@@ -55,17 +55,17 @@
55
55
  // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
56
56
 
57
57
  /* Source Map Options */
58
- // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
59
- // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
60
- // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
61
- // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
58
+ "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
59
+ "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
60
+ "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
61
+ "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
62
62
 
63
63
  /* Experimental Options */
64
64
  // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
65
65
  // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
66
66
 
67
67
  /* Advanced Options */
68
- "skipLibCheck": false, /* Skip type checking of declaration files. */
68
+ "skipLibCheck": true, /* Skip type checking of declaration files. */
69
69
  "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
70
70
  }
71
71
  }