File size: 1,066 Bytes
27dc10f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
#!/bin/bash
DATA_DIR=${1:-screening_data/2rgp}
DOCKING_MODEL=${2:-vina}
CSV_FILE=${3:-screening_data/2rgp/2rgp_property_20k.csv}
FINGERPRINT=${4:-screening_data/2rgp/fingerprints_20k.npy}
ACQ_FUNCION=${5:-qeubo}
PORT=${6:-4000}
shift 6 # Shift positional parameters so remaining ones are treated as OBJS
# If OBJS are provided as arguments, use them; otherwise, set defaults
if [ $# -gt 0 ]; then
OBJS=("$@")
else
OBJS=("MW" "Lipophilicity" "Half_Life")
fi
CONFIG_FILE="configs/default_cheapvs.yaml"
sed -i "s|DATA_DIR_PLACEHOLDER|$DATA_DIR|g" "$CONFIG_FILE"
YAML_ARGS=$(python utils/parse_config.py "$CONFIG_FILE")
python -m cheapvs.cheapvs_llm $YAML_ARGS \
--csv_file $CSV_FILE \
--seeds 42 \
--acq $ACQ_FUNCION \
--docking_model_name $DOCKING_MODEL \
--fingerprint $FINGERPRINT \
--port $PORT \
--objectives "${OBJS[@]}" \
--outpath cheapvs_llm/2rgp/chai_20k_hp \
--warmup_ratio 0.01 \
--n_compare 32 \
--n_sample 20_000 \
--gp_batch_size 128 \
--timeout 48 \
--iterations 20 \
--n_select 50 |