Skip to content

Commit

Permalink
Merge pull request #72 from envidian/main
Browse files Browse the repository at this point in the history
  • Loading branch information
ysyecust authored Feb 13, 2024
2 parents 83c5b9f + 1b435e5 commit 9ad06c4
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 9ad06c4

Please sign in to comment.