11 days ago
-
Updated info
-
Updated info
-
Updated info
[SALSA: Semantically-Aware Latent Space Autoencoder](https://doi.org/10.1609/aaai.v38i12.29221) (AAAI 2024)
## Installation
Requires Python 3.11 or newer.
```bash
pip install git+https://github.com/molecularmodelinglab/SALSA.git
```
To work on the code instead:
```bash
git clone https://github.com/molecularmodelinglab/SALSA.git
cd SALSA
pip install -e ".[dev]"
```
Optional extras: `viz` for plotting and UMAP, `dev` for tests and linters.
## Quick Start
Installing provides the `salsa-lit` command:
```bash
salsa-lit mutate molecules.parquet -o mutants/
salsa-lit train mutants/<generated>.parquet -o run/
salsa-lit embed molecules.parquet -m run/ -o embeddings.parquet
```
The same three steps from Python:
```python
from salsa_lit import mutate_dataset, cook_salsa, serve_salsa
df, train_path = mutate_dataset("molecules.parquet",
output_file="mutants.parquet")
model, trainer = cook_salsa(train_path, save_dir="run/")
embeddings, smiles = serve_sal… -
initial commit