@datagrok/bio 1.11.2 → 2.0.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/README.md +124 -22
- package/dist/package-test.js +41 -63
- package/dist/package.js +33 -119
- package/package.json +3 -7
- package/src/package.ts +11 -13
- package/src/tests/renderers-test.ts +9 -0
- package/src/utils/cell-renderer.ts +7 -11
- package/src/utils/sequence-activity-cliffs.ts +8 -23
- package/{test-Bio-f1ac5a5eade4-a0f7e8c0.html → test-Bio-c5a05867bf79-1b9affa5.html} +2 -2
- package/helm/JSDraw/Pistoia.HELM-uncompressed.js +0 -9694
- package/helm/JSDraw/Pistoia.HELM.js +0 -27
- package/helm/JSDraw/ReadMe.txt +0 -8
- package/helm/JSDraw/Scilligence.JSDraw2.Lite-uncompressed.js +0 -31126
- package/helm/JSDraw/Scilligence.JSDraw2.Lite.js +0 -12
- package/helm/JSDraw/Scilligence.JSDraw2.Resources.js +0 -762
- package/helm/JSDraw/dojo.js +0 -250
- package/helm/JSDraw/test.html +0 -21
package/README.md
CHANGED
|
@@ -1,20 +1,81 @@
|
|
|
1
1
|
# Bio
|
|
2
2
|
|
|
3
|
-
Bio is a [package](https://datagrok.ai/help/develop/develop#packages) for the
|
|
3
|
+
Bio is a bioinformatics support [package](https://datagrok.ai/help/develop/develop#packages) for the
|
|
4
|
+
[Datagrok](https://datagrok.ai) platform with an extensive toolset supporting SAR analisys for small molecules
|
|
5
|
+
and antibodies.
|
|
4
6
|
|
|
5
|
-
#
|
|
7
|
+
# Notations
|
|
8
|
+
|
|
9
|
+
[@datagrok/bio](https://github.com/datagrok-ai/public/tree/master/packages/Bio) can ingest data in multiple file
|
|
10
|
+
formats (such as fasta o csv) and multiple notations for natural and modified residues, aligned and non-aligned forms,
|
|
11
|
+
nucleotide and amino acid sequences. The sequences are automatically detected and classified, while preserving their
|
|
12
|
+
initial notation. Datagrok allows you to convert sequences between different notations as well.
|
|
13
|
+
|
|
14
|
+

|
|
15
|
+
|
|
16
|
+
See:
|
|
17
|
+
|
|
18
|
+
* [detectMacromolecule()](../Bio/detectors.js)
|
|
19
|
+
* [class NotationConverter](../../libraries/bio/src/utils/notation-converter.ts)
|
|
20
|
+
|
|
21
|
+
# Atomic-Level structures from sequences
|
|
22
|
+
|
|
23
|
+
For linear sequences, the linear form (see the illustration below) of molecules is reproduced. This is useful
|
|
24
|
+
for better visual inspection of sequence and duplex comparison. Structure at atomic level could be saved in available
|
|
25
|
+
notations.
|
|
26
|
+
|
|
27
|
+

|
|
28
|
+
|
|
29
|
+
You can easily run this feature for any sequence data using the Bio package and accessing it from the top menu.
|
|
30
|
+
|
|
31
|
+

|
|
32
|
+
|
|
33
|
+
See:
|
|
34
|
+
|
|
35
|
+
* [getMolfilesFromSeq()](./src/utils/atomic-works.ts)
|
|
36
|
+
|
|
37
|
+
# MSA
|
|
38
|
+
|
|
39
|
+
For multiple-sequence alignment, Datagrok uses the “kalign” that relies on Wu-Manber string-matching algorithm
|
|
40
|
+
[Lassmann, Timo. _Kalign 3: multiple sequence alignment of large data sets._ **Bioinformatics** (2019).[pdf](
|
|
41
|
+
https://academic.oup.com/bioinformatics/advance-article-pdf/doi/10.1093/bioinformatics/btz795/30314127/btz795.pdf)].
|
|
42
|
+
“kalign“ is suited for sequences containing only natural monomers. Sequences of a particular column can be analyzed
|
|
43
|
+
using MSA algorithm available at the top menu. Aligned sequences can be inspected for base composition
|
|
44
|
+
at the position of MSA result.
|
|
45
|
+
|
|
46
|
+

|
|
48
|
+
|
|
49
|
+
See:
|
|
50
|
+
|
|
51
|
+
* [runKalign()](src/utils/multiple-sequence-alignment.ts)
|
|
52
|
+
|
|
53
|
+
TODO: MSA with PepSeA
|
|
6
54
|
|
|
7
|
-
|
|
8
|
-
nucleotides). Each logo consists of stacks of symbols, one stack for each position in the sequence.
|
|
9
|
-
The overall height of the stack indicates the sequence conservation at that position,
|
|
10
|
-
while the height of symbols within the stack indicates the relative frequency of each amino at that position.
|
|
55
|
+
# Splitting to monomers
|
|
11
56
|
|
|
12
|
-
|
|
57
|
+
Splitting to monomers allows splitting aligned sequences in separate monomers.
|
|
58
|
+
|
|
59
|
+

|
|
60
|
+
|
|
61
|
+
See:
|
|
62
|
+
|
|
63
|
+
* [splitAlignedSequences()](../../libraries/bio/src/utils/splitter.ts)
|
|
64
|
+
|
|
65
|
+
# Web Logo
|
|
66
|
+
|
|
67
|
+
Web Logo visualizes a graphical representation of multiple sequence alignment (amino acids or nucleotides or
|
|
68
|
+
modified residues with multi-char labels). Each logo consists of stacks of symbols, one for each position
|
|
69
|
+
in the sequence. The overall height of the stack indicates the sequence conservation at that position,
|
|
70
|
+
and the symbol height within the stack indicates the relative frequency of each residue at that position.
|
|
71
|
+
In general, a sequence logo provides a more detailed and precise description of, for example, a binding site
|
|
13
72
|
than would a consensus sequence.
|
|
73
|
+
The most helpful feature for exploration analysis with WebLogo in Datagrok is its ability to control selection
|
|
74
|
+
on a dataset. Mouse click on a particular residue in a specific position will select rows of the dataset
|
|
75
|
+
with sequences containing that residue at that position.
|
|
14
76
|
|
|
15
|
-
You must specify the tag ```semType``` with value ```
|
|
16
|
-
|
|
17
|
-
select the palette for monomers' colors.
|
|
77
|
+
You must specify the tag ```semType``` with value ```Macromolecule``` and tag `alphabet` of choice ('PT', 'DNA', 'RNA')
|
|
78
|
+
for the data column with multiple alignment sequences, it is mandatory to select the palette for monomers' colors.
|
|
18
79
|
|
|
19
80
|
You can customize the look of the viewer with properties. Properties ```startPosition``` and ```endPosition```)
|
|
20
81
|
allow to display multiple alignment partially. If property ```startPosition``` (```endPosition```)
|
|
@@ -28,19 +89,60 @@ is not specified, then the Logo will be plotted from the first (till the last) p
|
|
|
28
89
|
|
|
29
90
|
## Properties
|
|
30
91
|
|
|
31
|
-
| Property name | Default
|
|
32
|
-
|
|
33
|
-
| positionWidth | 16
|
|
34
|
-
| minHeight | 50
|
|
35
|
-
| maxHeight | 100
|
|
36
|
-
| considerNullSequence | false
|
|
37
|
-
| sequenceColumnName | null
|
|
38
|
-
| startPositionName | null
|
|
39
|
-
| endPositionName | null
|
|
92
|
+
| Property name | Default | Description |
|
|
93
|
+
|----------------------|----------|-------------------------------------------------------------------------------------------------------------------------|
|
|
94
|
+
| positionWidth | 16 | Width of one position stack [px] |
|
|
95
|
+
| minHeight | 50 | Minimum height of Logo [px] |
|
|
96
|
+
| maxHeight | 100 | Maximum height of Logo [px] |
|
|
97
|
+
| considerNullSequence | false | Should logo consider null seqences of data |
|
|
98
|
+
| sequenceColumnName | null | source of multiple alignment sequences (column name) |
|
|
99
|
+
| startPositionName | null | name of the first position to display Logo partially |
|
|
100
|
+
| endPositionName | null | name of the last position to display Logo partially |
|
|
101
|
+
| fixWidth | false | Plot takes full width required for sequence length |
|
|
102
|
+
| verticalAlignment | 'middle' | choices: ['top', 'middle', 'bottom'] |
|
|
103
|
+
| horizontalAlignment | 'center' | choices: ['left', 'center', 'right'] |
|
|
104
|
+
| fitArea | true | Should control to be scaled to fit available area for viewer |
|
|
105
|
+
| shrinkEmptyTail | true | Shrink sequences' tails empty in filtered sequences |
|
|
106
|
+
| skipEmptyPositions | false | Skip positions containing only gap symbols in all sequences |
|
|
107
|
+
| positionMarginState | 'auto' | choices: ['auto', 'enable', 'off'] Margin between positions. auto - enables margins for sequences of multichar monomers |
|
|
108
|
+
| positionMargin | 0 or 4 | 4 - for sequences of multichar monomers, 0 - single char |
|
|
109
|
+
| positionHeight | '100%' | choices: ['100%', 'Entropy'] The way to calculate overall monomers stack height at position |
|
|
40
110
|
|
|
41
|
-

|
|
42
112
|
|
|
43
113
|
See also:
|
|
44
114
|
|
|
45
|
-
* [
|
|
46
|
-
* [
|
|
115
|
+
* [WebLogo](../../libraries/)
|
|
116
|
+
* [Viewers](../../help/visualize/viewers.md)
|
|
117
|
+
* [Table view](../../help/datagrok/table-view.md)
|
|
118
|
+
|
|
119
|
+
# Sequence space
|
|
120
|
+
|
|
121
|
+
Datagrok allows visualizing multidimensional sequence space using a dimensionality reduction approach.
|
|
122
|
+
Several distance-based dimensionality reduction algorithms are available, such as UMAP or t-SNE.
|
|
123
|
+
The sequences are projected to 2D space closer if they correspond to similar structures, and farther
|
|
124
|
+
otherwise. The tool for analyzing molecule collections is called 'Sequence space' and exists in
|
|
125
|
+
the Bio package.
|
|
126
|
+
|
|
127
|
+
To launch the analysis from the top menu, select Bio | Sequence space.
|
|
128
|
+
|
|
129
|
+

|
|
130
|
+
|
|
131
|
+
See:
|
|
132
|
+
|
|
133
|
+
* [sequenceSpace()](src/utils/sequence-space.ts)
|
|
134
|
+
|
|
135
|
+
# Sequence activity cliffs
|
|
136
|
+
|
|
137
|
+
Activity cliffs tool finds pairs of sequences where small changes in the sequence yield significant
|
|
138
|
+
changes in activity or any other numerical property. open the tool from a top menu by selecting.
|
|
139
|
+
Similarity cutoff and similarity metric are configurable. As in Sequence space, you can select
|
|
140
|
+
from different dimensionality reduction algorithms.
|
|
141
|
+
|
|
142
|
+
To launch the analysis from the top menu, select Bio | Sequence Activity Cliffs.
|
|
143
|
+
|
|
144
|
+

|
|
145
|
+
|
|
146
|
+
See:
|
|
147
|
+
|
|
148
|
+
* [getActivityCliffs()](../../libraries/ml/src/viewers/activity-cliffs.ts)
|