Skip to content

Commit

Permalink
[paired_batch_size] Write score
Browse files Browse the repository at this point in the history
  • Loading branch information
envidian committed Feb 13, 2024
1 parent 83c5b9f commit 1b435e5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions unidock/src/main/vina_cuda_worker.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,14 @@ class vina_cuda_worker : public Vina
default_output(get_filename(ligand_name), out_dir));
write_poses_gpu(gpu_out_name, num_modes, energy_range);

// write best score
if (!m_poses_gpu.empty())
{
std::string score_file_name = default_score_output(get_filename(ligand_name));
ofile f(make_path(out_dir + '/' + score_file_name));
f << "affinity(kcal/mol)[0]=" << m_poses_gpu[0][0].e << "\n";
}

return 0;
}

Expand Down

0 comments on commit 1b435e5

Please sign in to comment.