openchemlib 7.4.3 → 8.0.1
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 +39 -27
- package/core.d.ts +2 -1
- package/dist/openchemlib-core.js +143 -142
- package/dist/openchemlib-full.js +157 -154
- package/dist/openchemlib-full.pretty.js +23092 -19373
- package/dist/openchemlib-minimal.js +110 -107
- package/minimal.d.ts +1 -1
- package/package.json +10 -7
- package/types.d.ts +176 -134
package/README.md
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
# OpenChemLib JS
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[![build status][ci-image]][ci-url]
|
|
5
|
-
[![npm download][download-image]][download-url]
|
|
6
|
-
[](https://www.zenodo.org/badge/latestdoi/23346814)
|
|
3
|
+
JavaScript port of the [OpenChemLib](https://github.com/actelion/openchemlib) Java library.
|
|
7
4
|
|
|
5
|
+
<h3 align="center">
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
<a href="https://www.zakodium.com">
|
|
8
|
+
<img src="https://www.zakodium.com/brand/zakodium-logo-white.svg" width="50" alt="Zakodium logo" />
|
|
9
|
+
</a>
|
|
10
|
+
|
|
11
|
+
<p>
|
|
12
|
+
Maintained by <a href="https://www.zakodium.com">Zakodium</a>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
[![NPM version][npm-image]][npm-url]
|
|
16
|
+
[![build status][ci-image]][ci-url]
|
|
17
|
+
[![npm download][download-image]][download-url]
|
|
18
|
+
[](https://www.zenodo.org/badge/latestdoi/23346814)
|
|
19
|
+
|
|
20
|
+
</h3>
|
|
10
21
|
|
|
11
22
|
## Installation
|
|
12
23
|
|
|
@@ -29,44 +40,45 @@ if bundle size matters and prediction functionalities are not needed.
|
|
|
29
40
|
The `full` build (`require('openchemlib/full')`) build is the largest build.
|
|
30
41
|
It contains a structure viewer and a structure editor for browser applications.
|
|
31
42
|
|
|
32
|
-
- [TypeDoc home page](https://cheminfo.github.io/openchemlib-js/
|
|
43
|
+
- [TypeDoc home page](https://cheminfo.github.io/openchemlib-js/index.html)
|
|
33
44
|
|
|
34
45
|
### Modules present in minimal, core and full builds
|
|
35
46
|
|
|
36
|
-
- [Molecule](https://cheminfo.github.io/openchemlib-js/classes/
|
|
37
|
-
- [Reaction](https://cheminfo.github.io/openchemlib-js/classes/
|
|
38
|
-
- [RingCollection](https://cheminfo.github.io/openchemlib-js/classes/
|
|
39
|
-
- [SDFileParser](https://cheminfo.github.io/openchemlib-js/classes/
|
|
40
|
-
- [SSSearcher](https://cheminfo.github.io/openchemlib-js/classes/
|
|
41
|
-
- [SSSearcherWithIndex](https://cheminfo.github.io/openchemlib-js/classes/
|
|
42
|
-
- [Util](https://cheminfo.github.io/openchemlib-js/modules/
|
|
47
|
+
- [Molecule](https://cheminfo.github.io/openchemlib-js/classes/Molecule.html)
|
|
48
|
+
- [Reaction](https://cheminfo.github.io/openchemlib-js/classes/Reaction.html)
|
|
49
|
+
- [RingCollection](https://cheminfo.github.io/openchemlib-js/classes/RingCollection.html)
|
|
50
|
+
- [SDFileParser](https://cheminfo.github.io/openchemlib-js/classes/SDFileParser.html)
|
|
51
|
+
- [SSSearcher](https://cheminfo.github.io/openchemlib-js/classes/SSSearcher.html)
|
|
52
|
+
- [SSSearcherWithIndex](https://cheminfo.github.io/openchemlib-js/classes/SSSearcherWithIndex.html)
|
|
53
|
+
- [Util](https://cheminfo.github.io/openchemlib-js/modules/Util.html)
|
|
43
54
|
|
|
44
55
|
### Modules present only in core and full builds
|
|
45
56
|
|
|
46
|
-
- [
|
|
47
|
-
- [
|
|
48
|
-
- [
|
|
49
|
-
- [
|
|
50
|
-
- [
|
|
51
|
-
- [
|
|
57
|
+
- [CanonizerUtil](https://cheminfo.github.io/openchemlib-js/classes/CanonizerUtil.html)
|
|
58
|
+
- [ConformerGenerator](https://cheminfo.github.io/openchemlib-js/classes/ConformerGenerator.html)
|
|
59
|
+
- [DruglikenessPredictor](https://cheminfo.github.io/openchemlib-js/classes/DruglikenessPredictor.html)
|
|
60
|
+
- [DrugScoreCalculator](https://cheminfo.github.io/openchemlib-js/modules/DrugScoreCalculator.html)
|
|
61
|
+
- [ForceFieldMMFF94](https://cheminfo.github.io/openchemlib-js/classes/ForceFieldMMFF94.html)
|
|
62
|
+
- [MoleculeProperties](https://cheminfo.github.io/openchemlib-js/classes/MoleculeProperties.html)
|
|
63
|
+
- [ToxicityPredictor](https://cheminfo.github.io/openchemlib-js/classes/ToxicityPredictor.html)
|
|
52
64
|
|
|
53
65
|
### Modules present only in full build
|
|
54
66
|
|
|
55
|
-
- [StructureEditor](https://cheminfo.github.io/openchemlib-js/classes/
|
|
56
|
-
- [StructureView](https://cheminfo.github.io/openchemlib-js/modules/
|
|
57
|
-
- [SVGRenderer](https://cheminfo.github.io/openchemlib-js/modules/
|
|
67
|
+
- [StructureEditor](https://cheminfo.github.io/openchemlib-js/classes/StructureEditor.html)
|
|
68
|
+
- [StructureView](https://cheminfo.github.io/openchemlib-js/modules/StructureView.html)
|
|
69
|
+
- [SVGRenderer](https://cheminfo.github.io/openchemlib-js/modules/SVGRenderer.html)
|
|
58
70
|
|
|
59
71
|
## Development
|
|
60
72
|
|
|
61
73
|
To build this project, you need :
|
|
62
74
|
|
|
63
|
-
- Java JDK
|
|
64
|
-
- GWT 2.
|
|
65
|
-
- Node.js ([
|
|
75
|
+
- Java JDK (Tested with version 17)
|
|
76
|
+
- GWT (Tested with version 2.10, [Download build here](http://www.gwtproject.org/download.html))
|
|
77
|
+
- Node.js (Tested with version 18, [Dowload here](https://nodejs.org/en/download/))
|
|
66
78
|
|
|
67
79
|
### Install dependencies
|
|
68
80
|
|
|
69
|
-
`npm
|
|
81
|
+
`npm ci`
|
|
70
82
|
|
|
71
83
|
### Configure directories
|
|
72
84
|
|
|
@@ -105,7 +117,7 @@ Copy the required java files from the openchemlib project.
|
|
|
105
117
|
|
|
106
118
|
[npm-image]: https://img.shields.io/npm/v/openchemlib.svg
|
|
107
119
|
[npm-url]: https://www.npmjs.com/package/openchemlib
|
|
108
|
-
[ci-image]: https://github.com/cheminfo/openchemlib-js/workflows/Node.js%20CI/badge.svg?branch=
|
|
120
|
+
[ci-image]: https://github.com/cheminfo/openchemlib-js/workflows/Node.js%20CI/badge.svg?branch=main
|
|
109
121
|
[ci-url]: https://github.com/cheminfo/openchemlib-js/actions?query=workflow%3A%22Node.js+CI%22
|
|
110
122
|
[download-image]: https://img.shields.io/npm/dm/openchemlib.svg
|
|
111
123
|
[download-url]: https://www.npmjs.com/package/openchemlib
|
package/core.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './minimal';
|
|
2
2
|
export {
|
|
3
|
+
CanonizerUtil,
|
|
3
4
|
IParameterizedString,
|
|
4
5
|
MoleculeProperties,
|
|
5
6
|
DruglikenessPredictor,
|
|
@@ -7,5 +8,5 @@ export {
|
|
|
7
8
|
ToxicityPredictor,
|
|
8
9
|
IInitializeConformersOptions,
|
|
9
10
|
ConformerGenerator,
|
|
10
|
-
ForceFieldMMFF94
|
|
11
|
+
ForceFieldMMFF94,
|
|
11
12
|
} from './types';
|