Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LigFlow/ScoreFlow search for ChemBase parametrized molecules #36

Open
diegoenry opened this issue Jul 11, 2018 · 3 comments
Open

LigFlow/ScoreFlow search for ChemBase parametrized molecules #36

diegoenry opened this issue Jul 11, 2018 · 3 comments
Assignees
Milestone

Comments

@diegoenry
Copy link
Contributor

diegoenry commented Jul 11, 2018

LigFlow/ScoreFlow should first search for a compound in ChemBase for parameters instead of recomputing all over again.

This is especially important for am1-bcc and even more for RESP which take a lot of time.

Another highlight here if to prevent recomputing the same parameters for the SAME molecule, in case a user wants to MMGBSA rescore multiple docking conformations.

@diegoenry
Copy link
Contributor Author

diegoenry commented Jul 19, 2018

Ideally, we must have a check at ChemFlow_functions to see if we have the pre-computed charges @ "$CHEMFLOW_HOME/ChemBase/${CHARGE}/"

If not, check it we have the pre-computed charges within "$PROJECT.chemflow/LigFlow/${CHARGE}/" (charge = bcc or resp )

If all fails, try to compute it, normally.

Quick update. I implemente the idea in a project folder.

PROJECT="hivpr"
PROTOCOL="bcc"
CHARGE="bcc"

WORKDIR=~/ChemFlow_paper/Benchmark_meso/
RUNDIR=~/ChemFlow_paper/Benchmark_meso/hivpr.chemflow/ScoreFlow/bcc/receptor/

LIGAND_LIST="CHEMBL158050"

for LIGAND in ${LIGAND_LIST} ; do

    FILENAME=${WORKDIR}/${PROJECT}.chemflow/LigFlow/${CHARGE}/${LIGAND}.mol2

    if [ -f ${FILENAME} ] ; then
        awk '/1 MOL/&&!/TEMP/ {print $9}'  ${FILENAME} > charges.dat
        antechamber -i ligand_gas.mol2 -o ligand_bcc.mol2 -fi mol2 -fo mol2 -cf charges.dat -c rc -pf yes &> /dev/null
    fi

done

@donadef
Copy link
Collaborator

donadef commented Jul 19, 2018

What about when the charge option is rest ? what is the procedure ?

@donadef
Copy link
Collaborator

donadef commented Jul 20, 2018

Done. @diegoenry you might want to test and then you can close this issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
ScoreFlow Project
Awaiting triage
Development

No branches or pull requests

2 participants