-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17ad0fe
commit 76f3634
Showing
49 changed files
with
5,733 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ build | |
dist | ||
__pycache__/ | ||
*.py[cod] | ||
.idea/* | ||
.idea/* | ||
jupyter_execute/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 3dae10dbd3d8e49364bffe7f587fb124 | ||
config: 3aeac4334ddae1d4ee491dadd1fd1e78 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# CLI Reference | ||
|
||
The following reference provides documentation for all commands, options, and arguments available via the ChemREL Command Line Interface (CLI). | ||
|
||
--- | ||
|
||
```{include} ../chemrel/README.md | ||
:heading-offset: 1 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Functions Reference | ||
|
||
This reference provides comprehensive documentation for all Python methods which are intended to be importable within your own code. | ||
All such functions are part of the `functions` module, viewable below. Two main submodules exist, the `auxiliary` and `predict` modules. | ||
For more information on how to import and use the provided functions, view the [Importing Functions](usage.md#importing-functions) section of the documentation. | ||
|
||
```{toctree} | ||
:maxdepth: 3 | ||
:caption: "Package Contents:" | ||
|
||
functions | ||
``` | ||
|
||
## Package Index | ||
|
||
The following index lists all available methods in the `functions` module. | ||
|
||
+ {ref}`genindex` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
```{include} ../README.md | ||
:start-after: <!-- begin intro --> | ||
:end-before: <!-- end intro --> | ||
``` | ||
```{admonition} Notice | ||
:class: seealso | ||
Any alterations to the models, datasets, or methods included with ChemREL must be properly attributed using the [citation](usage.md#citation) provided in this documentation. | ||
``` | ||
To install and begin using ChemREL, proceed to the [Setup](setup) section. | ||
|
||
```{toctree} | ||
:hidden: | ||
:caption: Getting Started | ||
|
||
Welcome <self> | ||
setup | ||
usage | ||
``` | ||
|
||
```{toctree} | ||
:hidden: | ||
:caption: Reference | ||
|
||
cli | ||
functions_index | ||
``` | ||
|
||
```{toctree} | ||
:hidden: | ||
:caption: Example Notebooks | ||
|
||
notebooks/predict | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# Setup | ||
ChemREL can be installed via the command line from the PyPI index using the `pip install` command. Once installed, the | ||
ChemREL CLI can be invoked from any directory in the command line using the `chemrel` command (but you should `cd` into | ||
the proper directory first, as described below). | ||
|
||
## Virtual Environment | ||
|
||
To ensure that the `chemrel` keyword is recognized by your system, it is recommended that you create a new virtual | ||
environment before installing ChemREL. To do so, open the command line and run the following. | ||
```console | ||
$ python -m venv venv | ||
``` | ||
|
||
Next, if using a MacOS (unix-like) or Linux machine, activate the environment by running | ||
```console | ||
$ source venv/bin/activate | ||
``` | ||
or if using a Windows machine, run | ||
```console | ||
$ venv\Scripts\activate | ||
``` | ||
instead. Your virtual environment should now be active, and the prompt in the command line should be | ||
prefaced by the name of your environment, `venv`. | ||
|
||
## GPU Commands | ||
|
||
If you plan to use ChemREL CLI commands to train on a CUDA-enabled GPU, you should install versions of Spacy and PyTorch | ||
which have been compiled with CUDA enabled before installing ChemREL. To do so, within the command line and within your | ||
virtual environment, run the installation commands generated by the | ||
[PyTorch quickstart site](https://pytorch.org/get-started/locally/) and the | ||
[Spacy quickstart site](https://spacy.io/usage) after selecting your applicable preferences. Once the PyTorch and Spacy | ||
installations have been completed, proceed to the next step. | ||
|
||
```{caution} | ||
If you do not install CUDA-enabled versions of Spacy and PyTorch before installing ChemREL, all GPU-related commands will fail by default. | ||
|
||
``` | ||
|
||
## Installation | ||
|
||
Now, to install ChemREL in the environment, run the following. | ||
```console | ||
$ pip install chemrel | ||
``` | ||
|
||
Next, run the following to ensure that ChemREL has been properly installed. A help prompt should display. | ||
```console | ||
$ chemrel --help | ||
``` | ||
|
||
Before running any model-related commands, ChemREL must be initialized by downloading all necessary model and config | ||
files required by the package. To download the files to your desired directory, first enter the directory where you wish | ||
to save the files by running the `cd` command in the command line as follows, where `[PATH]` should be replaced | ||
with the directory path of your desired location. | ||
```console | ||
$ cd [PATH] | ||
``` | ||
```{note} | ||
Note that you will need to `cd` into this directory before using ChemREL in the future. | ||
``` | ||
|
||
You can then run the `pwd` command to print the path you have entered to verify that you are in the correct directory. | ||
|
||
Next, run the following command to download the required files. The files will be downloaded in the folder path you | ||
previously entered. This may take a while to complete. | ||
```console | ||
$ chemrel init | ||
``` | ||
```{tip} | ||
You can also install the files to a path relative to the currently focused directory by passing an additional | ||
argument into the command, e.g. `chemrel init [ALTERNATE PATH]`. | ||
``` | ||
```{admonition} Note for Windows installations | ||
:class: note | ||
If the `chemrel init` command hangs while downloading required files, you can | ||
alternatively clone the contents of the | ||
[`chemrelmodels` Hugging Face repository](https://huggingface.co/AbdulelahAlshehri/chemrelmodels/tree/main) to the same | ||
directory. | ||
``` | ||
|
||
Once the initialization is complete, you are ready to begin using ChemREL. |
Oops, something went wrong.