epam / Indigo

Universal cheminformatics toolkit, utilities and database search tools
http://lifescience.opensource.epam.com
Apache License 2.0
290 stars 99 forks source link
bingo cheminformatics chemistry dotnet inchi indigo java microsoft-sql-server molfile oracle postgresql python smarts smiles webassembly

Build Status License

EPAM Indigo projects

Copyright (c) 2009-2022 EPAM Systems, Inc.

Licensed under the Apache License version 2.0

Introduction

This repository includes:

Detailed documentation is available at http://lifescience.opensource.epam.com

Changelog could be found in CHANGELOG.md.

Download

https://lifescience.opensource.epam.com/download/indigo/index.html

Bindings in public repositories:

Source code organization

Main directory structure layout:

Each project is placed in the corresponding directory with CMakeList.txt configuration file, that does not include other projects. In order to build the whole project with the correct references you need to use CMake configurations from the build_scripts directory.

Preinstalled build tools

To build the project from the sources, the following tools should be installed:

Build instruction

Create build folder and use cmake with desired options. For instance:

Indigo/build>cmake .. -DBUILD_INDIGO=ON -DBUILD_INDIGO_WRAPPERS=ON -DBUILD_INDIGO_UTILS=ON

To build Indigo from console:

Indigo/build>cmake --build . --config Release --target all

or any of the following targets could be specified: --target { indigo-dotnet | indigo-java | indigo-python } Build results could be collected from Indigo/dist folder.

Run tests

Befo run any test you have to build and install indigo-python 1) Build indigo-python using '--target all' or '--target indigo=python'. Package should be in 'build' directory, it will be named like 'epam.indigo-version-arch.whl' 3) Install package using pip python -m pip uninstall epam.indigo -y ; python -m pip install dist/epam.indigo-version-arch.whl

Run integration test using python api/tests/integration/test.py -t 1 for all test, or python api/tests/integration/test.py -t 1 -p test_name to run tests by mask test_name.

To run backend API test: 1) Install epam-indigo 2) Install waitress python pip install waitress 3) Run backend service :

How to build Indigo-WASM

Build tools prerequisites

Make sure git is running from path:

>git --version
git version 2.26.2.windows.1

Make sure python is running from path:

>python --version
Python 3.9.0

Make sure cmake is running from path:

>cmake --version
cmake version 3.18.4

Download corresponding ninja-xxx.zip and unpack to folder on path. Make sure it's running from path:

>ninja --version
1.10.2
>git clone https://github.com/emscripten-core/emsdk.git
>cd emsdk
>./emsdk install latest
>./emsdk activate latest
>source ./emsdk_env.sh

Note: On Windows, run emsdk instead of ./emsdk, and emsdk_env.bat instead of source ./emsdk_env.sh, use cmd instead of powershell.

Get Indigo sources

Clone (or checkout) Indigo repository

>git clone https://github.com/epam/Indigo.git

Build Indigo

For each new session, set environment anew:

>cd emsdk
>./emsdk activate latest

If fresh build:

>mkdir build
>cd build

Now build:

>emcmake cmake .. -DCMAKE_BUILD_TYPE=Debug -G Ninja
>ninja indigo-ketcher-js-test