deepmirror is a command-line interface for interacting with the deepmirror API. It allows you to train models, run predictions, and submit structure prediction jobs directly from your terminal.
pip install deepmirrorBefore using most commands, you need to log in to get your API token:
dm login EMAILThis saves your token and host in ~/.config/deepmirror/ for reuse.
dm model listdm model metadata MODEL_IDdm model info MODEL_IDdm train --model-name mymodel \
--csv-file path/to/data.csv \
--smiles-column smiles \
--value-column target \
[--classification]--classificationenables classification mode.- Default SMILES column is
smiles, target column istarget.
You can run inference using either a CSV file or direct SMILES input:
# From a CSV or TXT file
dm predict --model-name mymodel --csv-file inputs.csv
# Direct SMILES
dm predict --model-name mymodel --smiles "CCO"Upload a Parquet file for large-scale predictions:
dm batch create MODEL_ID path/to/input.parquetCheck job status and download results once completed:
dm batch status TASK_ID
dm batch download TASK_ID predictions.parquetExplore co-folding capabilities using the following notebooks:
-
Predict 3D structures of protein–ligand complexes via co-folding
-
Apply constraints during co-folding to guide the predicted structure
-
Estimate binding affinity values alongside structural prediction using Boltz-2
-
Apply Covalent Bond Constraints to guide co-folding of covalent ligands in Chai-1
-
If a token is missing or expired, commands will prompt you to log in again.
-
Use
--helpon any command for more details, e.g.:dm train --help