SALSA: Semantically-Aware Latent Space Autoencoder (AAAI 2024)
Installation
Requires Python 3.11 or newer.
pip install git+https://github.com/molecularmodelinglab/SALSA.git
To work on the code instead:
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:
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:
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_salsa("molecules.parquet", model="run/",
output_file="embeddings.parquet")
Datasets are read and written as parquet by default; pass a .csv path or
--format csv to use CSV instead.
Citation
Kirchoff, K. E., Maxfield, T., Tropsha, A., & Gomez, S. M. (2024). SALSA: Semantically-Aware Latent Space Autoencoder. Proceedings of the AAAI Conference on Artificial Intelligence, 38(12), 13211β13219. https://doi.org/10.1609/aaai.v38i12.29221
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support