Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/simonboothroyd/splore

A GUI for exploring sets of molecules
https://github.com/simonboothroyd/splore

Last synced: 20 days ago
JSON representation

A GUI for exploring sets of molecules

Awesome Lists containing this project

README

        

## Scroll through and exPLORE molecule sets

[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/SimonBoothroyd/splore.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/SimonBoothroyd/splore/context:python)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

The `splore` framework aims to offer a simple graphical interface for scrolling through and exploring data sets of
molecules.

![The GUI provided by `splore`](docs/gui.png)

### Getting Started

The GUI can easily be launched from the command line using the `splore` command:

```shell
# Load molecules from a local file
splore --file path-to-molecules.sdf

# Load molecules from a public QCArchive dataset
splore --qcf-dataset "OpenFF BCC Refit Study COH v1.0" --qcf-datatype basic
splore --qcf-dataset "OpenFF Rowley Biaryl v1.0" --qcf-datatype td
```

A full list of options can be printed using the `--help` flag:

```shell
splore --help
Usage: splore [OPTIONS]

Options:
--file FILE The path to the file of molecules (.smi,
.sdf, .sdf.gz) to display.
--qcf-dataset TEXT The name of a QC dataset stored in the public
QCArchive to extract the molecules to
visualize from.
--qcf-datatype [basic|opt|td] The type of dataset referenced by the
`--qcf-dataset` input.
--port INTEGER The port to run the GUI on. [default: 8000;
required]
--help Show this message and exit.
```

### Installation

The framework and its required dependencies can be installed using `conda`:

```shell
conda install -c conda-forge -c simonboothroyd splore
```

#### From Source

The required dependencies for this framework can be installed using `conda`:

```shell
conda env create --name splore --file devtools/conda-envs/test-env.yaml
```

after which the GUI can be built by running:

```shell
python setup.py build_gui
```

and the package installed in the normal ways, e.g.:

```shell
python setup.py develop
```

### License

The main package is release under the [MIT license](LICENSE).

### Copyright

Copyright (c) 2021, Simon Boothroyd