CHEESEOn-Premise

Installation

Requirements, installing the CHEESE CLI, generating a license, and configuring CHEESE on your own machine or an AWS instance.

Suggest an edit

On-premise license required

To install CHEESE on-premise you need a valid CHEESE license. Contact us for a license or a trial on-premise version.

Requirements

  • A device or instance running Ubuntu 20.04 or Ubuntu 22.04, with CUDA drivers installed. Any other cloud or in-house machine with similar specifications also works.
  • Git, to clone the installation repository.
  • Docker and CUDA drivers. If you are on the Ubuntu 22.04 AMI without them, step 2 below installs them.

How to install CHEESE

Clone the installation repository

git clone https://github.com/Deep-MedChem/cheese-on-prem
cd cheese-on-prem

(Optional) Install Docker and CUDA drivers

Skip this step if Docker and CUDA are already installed, for example on the Deep Learning AMI.

cd install
bash install-docker.sh
bash install-cuda-drivers.sh
sudo reboot

Install the CHEESE CLI

cd cheese-on-prem
bash install-cheese.sh

Check the installation

Run cheese in the terminal. It should print the list of available commands. See the CLI reference.

Generate a license key

cheese generate-license-key

Copy the generated key and send it to us. We will reply with a license JSON file based on your key. Then add its contents to your license file:

cheese update-license

One key per machine

The license key is specific to the host. Each new installation or machine needs its own license key and license file.

Configure CHEESE

Configuration has two parts: environment variables and CHEESE-specific settings.

Environment file. Run cheese update-env. This opens a .conf file with the global environment variables. Set your credentials, which we provide:

CHEESE_CUSTOMER=test      # Your organisation name (contact us to obtain)
CHEESE_USERNAME=XXX       # Docker registry username (contact us to obtain)
CHEESE_PASSWORD=XXX       # Docker registry password (contact us to obtain)

CHEESE configuration. Run cheese configure. This opens a YAML file that sets the similarity metrics, the databases CHEESE knows about, and where their outputs are stored. If you are unsure, the defaults are a good starting point.

TRANSFORMERS:
  morgan: "tanimoto"                 # Morgan fingerprint similarity metric
  espsim_electrostatic: "espsim"     # Electrostatic similarity method
  espsim_shape: "shapesim"           # Shape similarity method
  active_pairs: "active_pairs"       # Active pairs analysis method

DIM: "256"                           # Embedding dimension

OUTPUT_DIRECTORIES:                  # Output location per database
  ENAMINE-REAL: "/data/enamine_real"
  ZINC15: "/data/zinc15"
  CUSTOM: "/data/custom_output"

DELIMITERS:                          # Input file delimiter per database
  ENAMINE-REAL: "\t"                 # Tab-delimited
  ZINC15: ","                        # Comma-delimited
  CUSTOM: ","

INDEX_TYPES:                         # Index type per database
  ENAMINE-REAL: "clustered"
  ZINC15: "clustered"
  CUSTOM: "in_memory"

Add your own databases to this file as described in Index Inference.

Ready to use

CHEESE is installed. Next, read the CLI reference and try the Search API. Contact us at info@deepmedchem.com if you run into any issues.

(Optional) Set up an AWS instance

  1. In your AWS account, launch a new EC2 instance.
  2. Choose an AMI:
    • Deep Learning OSS Nvidia Driver AMI GPU PyTorch 2.3 (Ubuntu 20.04), if your account has access. CUDA drivers are pre-installed.
    • Otherwise, Ubuntu Server 22.04 LTS (HVM), SSD Volume Type. You will need to install Docker and CUDA as described in step 2 above.
  3. Choose an instance type with at least the following resources:
    • Instance type: g4dn.xlarge or similar, with 4 vCPUs, 16 GB RAM, and 1 GPU with 16 GB GPU memory.
    • Storage: 64 GB minimum, gp2.
    • Networking (optional): choose a VPC and subnet for a private network.
    • Security: create a key pair, or choose an existing one. Download the private key and store it securely.
  4. Connect over SSH using the command AWS shows in the instance's Connect dialog.

If SSH fails, open the instance in the EC2 Instances dashboard, choose Connect, and use EC2 Instance Connect to get a shell in the browser. From there you can also reset the ubuntu user password.

For more detail, see the AWS EC2 documentation.

On this page