Skip to content

OpenBioSim/ghostly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ghostly

GitHub Actions License: GPL v3

Modification of ghost atom bonded terms to avoid spurious coupling to the physical system using the approach described in this paper.

Installation

First create a conda environment using the provided environment file:

conda env create -f environment.yaml

(We recommend using Miniforge.)

Now install ghosty into the environment:

conda activate ghostly
pip install .

Or, for an editable install (useful for development):

conda activate ghostly
pip install -e .

You should now have a ghostly executable in your path. To test, run:

ghostly --help

Usage

Ghostly requires topology and coordinate files for the reference and perturbed molecules as input, along with an optional mapping dictionary that specifies the mapping between atoms in the end states. The molecular inputs can be in any valid file format supported by Sire. The mapping should be a string representation of a dictionary, where the keys are atom names in the reference state and the values are the corresponding atom names in the perturbed state. This allows the mapping to be generated programmatically by any suitable external tool.

ghostly --reference reference.* --perturbed.* --mapping '{0: 0, 1: 4, 2: 3, 3: 2, 4: 1}' --log-level debug

Alternatively, you can pass a stream file containing a perturbable BioSimSpace system, which already contains the merged end states, using the --system option.

ghostly --system system.bss --log-level debug

Note

The --system option takes precedence over the --reference and --perturbed options.

When finished, the program will output a BioSimSpace stream file for the perturbable molecule, or AMBER or GROMACS files for the two end states. The format can be specified using the the --output-format option. If you require input for a free-energy perturbation simulation, e.g. a hybrid GROMACS toplogy file, the you can use the stream file with BioSimSpace to generate the required input files.

Note

When a stream file is used as input, the --mapping option is ignored. and the output will always be a stream file, regardless of the --output-format option.

Please run ghostly --help for more details of other configuration options.

About

Ghost atom bonded modifications for alchemical free energy simulations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages