Skip to content

Commit

Permalink
Merge pull request #143 from ccsb-scripps/release
Browse files Browse the repository at this point in the history
Bug fix for spurious receptor reading
  • Loading branch information
atillack authored May 22, 2021
2 parents f709367 + 67b8ebe commit 5335617
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions host/src/setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,12 +354,14 @@ int setup(
}
} else {
// read receptor in case contact analysis is requested and we haven't done so already (in the preload case above)
std::string receptor_name=mygrid.grid_file_path;
if(strlen(mygrid.grid_file_path)>0) receptor_name+="/";
receptor_name += mygrid.receptor_name;
receptor_name += ".pdbqt";
mypars.receptor_atoms = read_receptor(receptor_name.c_str(),&mygrid,mypars.receptor_map,mypars.receptor_map_list);
mypars.nr_receptor_atoms = mypars.receptor_atoms.size();
if(mypars.contact_analysis){
std::string receptor_name=mygrid.grid_file_path;
if(strlen(mygrid.grid_file_path)>0) receptor_name+="/";
receptor_name += mygrid.receptor_name;
receptor_name += ".pdbqt";
mypars.receptor_atoms = read_receptor(receptor_name.c_str(),&mygrid,mypars.receptor_map,mypars.receptor_map_list);
mypars.nr_receptor_atoms = mypars.receptor_atoms.size();
}
// Reading the grid files and storing values in the memory region pointed by floatgrids
if (get_gridvalues_f(&mygrid,
floatgrids.data(),
Expand Down

0 comments on commit 5335617

Please sign in to comment.