Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated python and wolfram examples

...

Any image that can be pulled from Docker Hub, or that is publicly accessible on the web, can be used for post-processing by calling the docker() function (*subject to specs of instance types used):

Code Block
languagejs
charityengine.docker(image, commandline, inputfile)
PARAMETERS
  image // Name URL or Docker Hub name of the Docker image to run [string] [required]
  commandline // Command to execute within the container [string] [required]
  inputfile // Names of local files to use as input [array of string]

...

The default execution environment is Node.js, per Section 1 above, "General Usage". For running source code or scripts in other interpreted languages, just download the execution environment of your choice from Docker Hub, following the instructions in Section 2.1 above. For example,(TODO: provide Python example using Docker)

Code Block
languagejs
charityengine.python(commandline, inputfile)
PARAMETERS
  commandline // Command line for the application [string] [required]
  inputfile // Names of local files to use as input [array of string]docker("python:slim", "python /local/input/hello-world.py", ["hello-world.py"])

Charity Engine Application Library

...

For example, to generate a chi-squared distribution with v with 22 degrees of freedom using Wolfram Engine:

Code Block
languagetext
charityengine.wolframengine('ChiSquareDistribution[v22]');

vina

Run a protein-ligand binding simulation

...