Skip to content

Instantly share code, notes, and snippets.

@myociss
Created June 9, 2025 21:44
Show Gist options
  • Save myociss/cff2ed6121df2608c8a6d2a96860bea8 to your computer and use it in GitHub Desktop.
Save myociss/cff2ed6121df2608c8a6d2a96860bea8 to your computer and use it in GitHub Desktop.
Protein docking: get hits in top n
cutoff_a = 2.5
l_u_copy = deepcopy(all_residues_dict["l_u"])
close_irmsds = []
for score_rank in 1:length(top_scores)
rotation_idx, t, score = top_scores[score_rank]
translation = voxel_size * ([t[1],t[2],t[3]] - [center_val+1,center_val+1,center_val+1])
all_residues_dict["l_u"] = apply_transformation(l_u_copy, get_rotation(rotation_vectors[rotation_idx,:]), translation)
i_rmsd = calc_interface_rmsd(all_residues_dict)
(i_rmsd < cutoff_a) && push!(close_irmsds, (score_rank, rotation_vectors[rotation_idx,:], score, i_rmsd))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment