Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
williamyxl authored Sep 26, 2023
1 parent 102206b commit 0cfd9a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 3_difflinker_sample.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import argparse
import subprocess
from utils.difflinker_sample_and_analyze import run_dflk_sample_analyze

nodes = ['CuCu']
# change to the line below to reproduce paper result
Expand All @@ -15,6 +16,8 @@
print(f'Now on node: {node}')
OUTPUT_DIR = f'output/n_atoms_{n_atoms}/{node}'
os.makedirs(OUTPUT_DIR,exist_ok=True)
subprocess.run(f'python -W ignore utils/difflinker_sample_and_analyze.py --linker_size {n_atoms} --fragments data/fragments_all/{node}/hMOF_frag.sdf --model models/geom_difflinker.ckpt --output {OUTPUT_DIR} --n_samples 1',shell=True)
# subprocess.run(f'python -W ignore utils/difflinker_sample_and_analyze.py --linker_size {n_atoms} --fragments data/fragments_all/{node}/hMOF_frag.sdf --model models/geom_difflinker.ckpt --output {OUTPUT_DIR} --n_samples 1',shell=True)
run_dflk_sample_analyze(input_path="data/fragments_all/{node}/hMOF_frag.sdf", model="models/geom_difflinker.ckpt", linker_size=n_atoms, output_dir=OUTPUT_DIR, n_samples=1)

# change to the line below to reproduce paper result
#subprocess.run(f'python -W ignore utils/difflinker_sample_and_analyze.py --linker_size {n_atoms} --fragments data/fragments_all/{node}/hMOF_frag.sdf --model models/geom_difflinker.ckpt --output {OUTPUT_DIR} --n_samples 20',shell=True)

0 comments on commit 0cfd9a2

Please sign in to comment.