Hi,
I would like to implement a contrained score after the "--minimized". It just means, some part atom positions are fixed in the minimized process. I read the source code of smina, and found the branch tree would be parsed by the ligand OBmol. So I tried to keep the root position not be updated in each step of bfgs. I just understand this root position with p vector (see the following code ) could move the whole ligand positions. Thus I assign zero to them. But the orientations and torsions are allowable. Am I right? Any suggestions for implementing the function? Thx
bfgs.h:L130
p(0)=0;p(1)=0;p(2)=0;for(;;) //always try full newton step first
{
x_new=x;x_new.increment(p, alpha);f1=f(x_new, g_new);
Best regards,
YJ
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You don't need to modify the source code. Provide the ligand as the "flex" argument as a pdbqt that is formatted so the ROOT is the part you don't want to move.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
But the parse_error called "Parse error on line 15 in file "examples/ligand0009695.pdbqt": Unknown or inappropriate tag". here in the file is a tag "ROOT"
I guess I may should place the root part of the ligand into the Rigid part in the create_init_model?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I would like to implement a contrained score after the "--minimized". It just means, some part atom positions are fixed in the minimized process. I read the source code of smina, and found the branch tree would be parsed by the ligand OBmol. So I tried to keep the root position not be updated in each step of bfgs. I just understand this root position with p vector (see the following code ) could move the whole ligand positions. Thus I assign zero to them. But the orientations and torsions are allowable. Am I right? Any suggestions for implementing the function? Thx
bfgs.h:L130
Best regards,
YJ
You don't need to modify the source code. Provide the ligand as the "flex" argument as a pdbqt that is formatted so the ROOT is the part you don't want to move.
You'll need to pass the
--no_lig
argument as well so smina knows there is no ligand and it should just optimize the flex part.I tried the follow command,
But the parse_error called "Parse error on line 15 in file "examples/ligand0009695.pdbqt": Unknown or inappropriate tag". here in the file is a tag "ROOT"
I guess I may should place the root part of the ligand into the Rigid part in the
create_init_model
?May I have to refer to an example file as --flex argument?
Each separate component needs to be wrapped in BEGIN_RES/END_RES as is output, for example, with the -xs option for openbabel pdbqt export: