Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
a8819a3
fix on debug mode and made GUI install available
cbouy Oct 3, 2018
f823c07
Merge branch 'devel' of https://github.com/IFMlab/ChemFlow into devel
cbouy Oct 3, 2018
3727c3b
Added a '--yes' option. This was required to automatize. So far it on…
diegoenry Oct 3, 2018
dcaed9d
Checking for pre-computed values either in ChemBase or LigFlow folder…
diegoenry Oct 5, 2018
0078d0c
Speed improvement in #DockFlow_update_ligand_list
diegoenry Oct 5, 2018
e00ebf4
Bugfix, wrong variable for CHARGE_FILE.
diegoenry Oct 5, 2018
1a25a48
Put SmilesTo3D as a tab
cbouy Oct 6, 2018
6696351
Merge branch 'devel' of http://github.com/IFMlab/ChemFlow into devel
cbouy Oct 6, 2018
d5a2595
fixed order when pressing tab
cbouy Oct 6, 2018
c1170fa
"_resp" as being added to RESP .mol2 files, only whe using HPC resour…
diegoenry Oct 9, 2018
3bf2641
DockFlow --postprocess was appending results in case "docked_ligands.…
diegoenry Oct 10, 2018
f3aca87
Introduced "-dr no" and "--yes" into ScoreFlow to allow scripting.
diegoenry Oct 10, 2018
448e5c7
SmilesTo3D update and bugfix on GUI
cbouy Oct 11, 2018
7763f98
Merge branch 'devel' of http://github.com/IFMlab/ChemFlow into devel
cbouy Oct 11, 2018
f1d40d7
BugFix - LigFlow was executing "LigFlow.xargs" for bcc charges even i…
diegoenry Oct 12, 2018
25b9474
Bugfix: ChemFlow_functions was changing the number of cores/node back…
diegoenry Oct 12, 2018
c059de4
BugFix: [LigFlow] The new implementation for checking LigFlow complet…
diegoenry Oct 12, 2018
def5884
BugFix: DockFlow --postprocess was not properly handling the output n…
diegoenry Oct 12, 2018
7c34d6b
BugFix: ScoreFlow --postprocess output header contained "DOCK_PROGRAM…
diegoenry Oct 15, 2018
75c1d2d
Bugfix no SplitSDF
diegoenry Nov 7, 2018
5a1fd0a
fixed typo on LigFlow menus
diegoenry Nov 13, 2018
861dc36
fixed another typo in LigFlow
diegoenry Nov 13, 2018
6160686
Included support for double precision for CUDA calculations.
diegoenry Nov 15, 2018
d45bc88
Bugfix on CUDA double
diegoenry Nov 15, 2018
bd71d4b
BugFix on MMGBSA. -sp complex.prmtop should only be used when proces…
diegoenry Nov 15, 2018
9f7e29c
Removed Gasteiger charges from LigFlow.
diegoenry Nov 16, 2018
39e0091
Tiny bugfix on the last antechamber command after gaussian, over PBS/…
diegoenry Nov 16, 2018
d6a9c0c
MMPBSA finally added to the code.
diegoenry Jan 10, 2019
3a8d595
Updated docs
diegoenry Feb 5, 2019
59501a6
Update installation.rst
diegoenry Feb 6, 2019
79d08d0
Update TUTORIAL.rst
diegoenry Feb 6, 2019
e3121af
Update TUTORIAL.rst
diegoenry Feb 6, 2019
ebce399
Update TUTORIAL.rst
diegoenry Feb 6, 2019
46f9f89
Update TUTORIAL.rst
diegoenry Feb 6, 2019
3bd3b30
Update Lab name
diegoenry Feb 6, 2019
41c0de1
Bugfix on DockFlow postprocessing
diegoenry Feb 13, 2019
ab8e7c4
Always overwrite docked_ligands.mol2 and DockFlow.csv when running po…
diegoenry Feb 13, 2019
84d66ec
BugFix: ChemFlow was not checking if Antechamber was installed.
diegoenry Feb 14, 2019
6d89b4c
BugFix of the Bugfix. Now I actually stop LigFlow from running when e…
diegoenry Feb 14, 2019
9037fa1
Update installation.rst
diegoenry Feb 21, 2019
e327da5
Almost done !
diegoenry Jul 29, 2019
6e992a8
Update installation.rst
diegoenry Jul 29, 2019
b773ced
Update installation.rst
diegoenry Aug 21, 2019
b76cdc0
Improved usage os file paths
diegoenry Aug 21, 2019
eaf84a4
Ultra-simple install instructions. Preserved GUI guidelines, although…
diegoenry Aug 21, 2019
6a938f8
Minor update to ScoreFlow Help
diegoenry Aug 21, 2019
f8c41bd
Update TUTORIAL.rst
diegoenry Aug 21, 2019
7c5ca3c
Update TUTORIAL.rst
diegoenry Aug 21, 2019
f9a2050
Documentation work
diegoenry Aug 21, 2019
05a9aae
More updates to Documentation
diegoenry Aug 21, 2019
89d027a
Update to documentation
diegoenry Aug 22, 2019
5f751a6
New Documentation
diegoenry Aug 22, 2019
ab0ecc7
More documentation.
diegoenry Aug 29, 2019
84f9c74
Manual update
diegoenry Aug 29, 2019
d69c6a8
Latest updates
diegoenry Sep 9, 2019
ea7d06f
Update features.rst
Oct 14, 2019
52c050c
Update manual.rst
Oct 14, 2019
5e3b100
Update workflows.rst
Oct 14, 2019
c070c51
Update authors.rst
Oct 14, 2019
0024c3f
Update overview.rst
Oct 14, 2019
d66a2c8
Merge branch 'master' into devel
Oct 19, 2019
f5c7631
Small update to manual
diegoenry Oct 22, 2019
93b3e85
"Finished" the manual !!!
diegoenry Oct 23, 2019
6aaf77a
Novel updates to "Final" documentation... it never ends.
diegoenry Oct 23, 2019
b789aae
Added CHEMFLOW_LOGO file.
diegoenry Oct 23, 2019
af3183f
Ok, really, last modification on docs. Back to the SI!
diegoenry Oct 23, 2019
ad41b55
More Bugfixes.
diegoenry Nov 6, 2019
fbf2eb0
There's a bug in the bugfix
diegoenry Nov 6, 2019
761b6e5
Small bugfixes to LigFlow and ScoreFlow
diegoenry Feb 4, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .idea/ChemFlow.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added CHEMFLOW_LOGO.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 20 additions & 3 deletions ChemFlow/bin/LigFlow
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,26 @@ source ${CHEMFLOW_HOME}/src/ChemFlow_functions.bash
ChemFlow_echo_software_header

# Programm
ChemFlow_set_defaults 'LigFlow' # Set default values for docking parameters.
LigFlow_CLI "$@" # Read the command line.
ChemFlow_validate_input # Sanity check. (parameters and input files)
ChemFlow_set_defaults 'LigFlow' # Set default values for docking parameters.
LigFlow_CLI "$@" # Read the command line.
ChemFlow_validate_input # Sanity check. (parameters and input files)


#
# Another dirty fix by DIEGO - PLEASE FIX THIS PORCAPUTTANA!!!
#
if [ -z "$(command -v antechamber)" ] ; then
echo "AmberTools 17+ is not installed or on PATH" ; exit 1;
fi

if [ "${CHARGE}" == "resp" ] && [ -z "$(command -v g09)" ] ; then
echo "Gaussian is not installed or on PATH" ; exit 1
fi

if [ -z "$(command -v g09)" ] ; then
exit 0
fi


RUNDIR=${WORKDIR}/${PROJECT}.chemflow/LigFlow/

Expand Down
8 changes: 4 additions & 4 deletions ChemFlow/bin/SmilesTo3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ def Generate3D(mol):
else:
AllChem.MMFFOptimizeMolecule(m_H)
# Keep hydrogens or not
if args.hydrogen:
m = m_H
else:
if args.no_hydrogen:
m = Chem.RemoveHs(m_H)
else:
m = m_H
return m

def ExThreadSubmit(smiles, args):
Expand Down Expand Up @@ -148,7 +148,7 @@ def OutputSDF(structures, args):

group_output = parser.add_argument_group('OUTPUT arguments')
group_output.add_argument("-o", "--output", metavar='filename', required=True, type=str, help="Path to the output SDF file")
group_output.add_argument("--hydrogen", action="store_true", help="Output with all hydrogen atoms" )
group_output.add_argument("-noh", "--no-hydrogen", action="store_true", help="Remove hydrogen atoms from the output" )
group_output.add_argument("-v", "--verbose", action="store_true", help="Increase terminal output verbosity")

group_args = parser.add_argument_group('Other arguments')
Expand Down
18 changes: 9 additions & 9 deletions ChemFlow/bin/bounding_shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def bounding_box(XYZ, padding):
if d > dmax:
dmax = d
dmax += padding
size.append(dmax)
size.append(dmax*2)
return center, size

if __name__ == '__main__':
Expand Down Expand Up @@ -169,14 +169,14 @@ def bounding_box(XYZ, padding):
center, size = bounding_box(XYZ, args.padding)
print(' '.join(['{:.3f}'.format(x) for x in center + size]))
if args.pymol:
print('pseudoatom a1, pos={}'.format([center[0]+size[0],center[1]+size[1],center[2]+size[2]]))
print('pseudoatom a2, pos={}'.format([center[0]+size[0],center[1]+size[1],center[2]-size[2]]))
print('pseudoatom a3, pos={}'.format([center[0]+size[0],center[1]-size[1],center[2]-size[2]]))
print('pseudoatom a4, pos={}'.format([center[0]+size[0],center[1]-size[1],center[2]+size[2]]))
print('pseudoatom a5, pos={}'.format([center[0]-size[0],center[1]-size[1],center[2]+size[2]]))
print('pseudoatom a6, pos={}'.format([center[0]-size[0],center[1]-size[1],center[2]-size[2]]))
print('pseudoatom a7, pos={}'.format([center[0]-size[0],center[1]+size[1],center[2]-size[2]]))
print('pseudoatom a8, pos={}'.format([center[0]-size[0],center[1]+size[1],center[2]+size[2]]))
print('pseudoatom a1, pos={}'.format([center[0]+size[0]/2,center[1]+size[1]/2,center[2]+size[2]/2]))
print('pseudoatom a2, pos={}'.format([center[0]+size[0]/2,center[1]+size[1]/2,center[2]-size[2]/2]))
print('pseudoatom a3, pos={}'.format([center[0]+size[0]/2,center[1]-size[1]/2,center[2]-size[2]/2]))
print('pseudoatom a4, pos={}'.format([center[0]+size[0]/2,center[1]-size[1]/2,center[2]+size[2]/2]))
print('pseudoatom a5, pos={}'.format([center[0]-size[0]/2,center[1]-size[1]/2,center[2]+size[2]/2]))
print('pseudoatom a6, pos={}'.format([center[0]-size[0]/2,center[1]-size[1]/2,center[2]-size[2]/2]))
print('pseudoatom a7, pos={}'.format([center[0]-size[0]/2,center[1]+size[1]/2,center[2]-size[2]/2]))
print('pseudoatom a8, pos={}'.format([center[0]-size[0]/2,center[1]+size[1]/2,center[2]+size[2]/2]))
print('distance d12, a1, a2')
print('distance d23, a2, a3')
print('distance d34, a3, a4')
Expand Down
36 changes: 24 additions & 12 deletions ChemFlow/src/ChemFlow_functions.bash
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ echo "
# + ||de Strasbourg + ++ + + + #
# +++++++++++++++++++ ++ + + + LAB #
# #
# Laboratoire d'Ingenierie de la Fonction Moleculaire #
# Laboratoire d'Ingenierie des Fonctions Moleculaires #
# #
# Marco Cecchini - cecchini@unistra.fr #
# Diego E. B. Gomes - dgomes@pq.cnpq.br #
Expand Down Expand Up @@ -134,6 +134,7 @@ case "${WORKFLOW}" in
if [ "$(basename ${RECEPTOR_FILE} | cut -d. -f2 )" != "mol2" ] ; then
ERROR_MESSAGE="Plants rescoring requires a mol2 file as receptor input"; ChemFlow_error ;
fi
check_center
;;
"vina")
SCORE_PROGRAM="VINA" ;
Expand All @@ -143,23 +144,20 @@ case "${WORKFLOW}" in
if [ "${VINA_MODE}" != "local_only" ] && [ "${VINA_MODE}" != "score_only" ] ; then
ERROR_MESSAGE="Vina rescoring mode ${VINA_MODE} does not exist"; ChemFlow_error ;
fi
check_center
;;
"mmgbsa") # mmgbsa as scoring function is only allowed for ScoreFlow.
"mmgbsa"|"mmpbsa") # mmgbsa as scoring function is only allowed for ScoreFlow.
SCORE_PROGRAM="AMBER"
RECEPTOR_NAME="$(basename ${RECEPTOR_FILE} .pdb)"
if [ "$(basename ${RECEPTOR_FILE} | cut -d. -f2 )" != "pdb" ] ; then
ERROR_MESSAGE="mmgbsa rescoring requires a PDB file as receptor input"; ChemFlow_error ;
ERROR_MESSAGE="MM(PB,GB)SA rescoring requires a PDB file as receptor input"; ChemFlow_error ;
fi
;;
*)
ERROR_MESSAGE="SCORING_FUNCTION ${SCORING_FUNCTION} not implemented"; ChemFlow_error ;
;;
esac

if [ "${SCORING_FUNCTION}" != "mmgbsa" ] ; then
# Center is not required for mmgbsa rescoring.
check_center
fi
;;
esac

Expand All @@ -170,14 +168,22 @@ if [ -z "${POSTPROCESS}" ] && [ -z "${ARCHIVE}" ] ; then
case "${JOB_SCHEDULLER}" in
"None") ;;
"PBS"|"SLURM")
if [ -z ${NC_CHANGED} ] ; then
NCORES=16
fi
# if [ -z ${NC_CHANGED} ] ; then
# NCORES=16
# fi
echo "Using ${JOB_SCHEDULLER}"
;;
*) ERROR_MESSAGE="Invalid JOB_SCHEDULLER" ; ChemFlow_error ;
;;
esac


# AmberTools must be installed because we use AnteChamber everywhere
if [ -z "$(command -v antechamber)" ] ; then
ERROR_MESSAGE="AmberTools 17+ is not installed or on PATH" ; ChemFlow_error ;
fi


# Check program locations ---------------------------------------------------
case "${DOCK_PROGRAM}" in
"PLANTS")
Expand All @@ -189,7 +195,7 @@ if [ -z "${POSTPROCESS}" ] && [ -z "${ARCHIVE}" ] ; then
if [ -z "$(command -v vina)" ] ; then
ERROR_MESSAGE="Autodock Vina is not installed or on PATH" ; ChemFlow_error ;
fi
if [ -z "$(command -v ${mgltools_folder}/MGLToolsPckgs/AutoDockTools/Utilities24/prepare_ligand4.py)" ] ; then
if [ -z "$(command -v prepare_ligand4.py)" ] ; then
ERROR_MESSAGE="MglTools is not installed or on PATH" ; ChemFlow_error ;
fi
;;
Expand All @@ -205,7 +211,7 @@ if [ -z "${POSTPROCESS}" ] && [ -z "${ARCHIVE}" ] ; then
if [ -z "$(command -v vina)" ] ; then
ERROR_MESSAGE="Autodock Vina is not installed or on PATH" ; ChemFlow_error ;
fi
if [ -z "$(command -v ${mgltools_folder}/MGLToolsPckgs/AutoDockTools/Utilities24/prepare_ligand4.py)" ] ; then
if [ -z "$(command -v prepare_ligand4.py)" ] ; then
ERROR_MESSAGE="MglTools is not installed or on PATH" ; ChemFlow_error ;
fi
;;
Expand All @@ -231,7 +237,12 @@ if [ -z "${POSTPROCESS}" ] && [ -z "${ARCHIVE}" ] ; then
fi
fi
else

AMBER_EXEC="pmemd.cuda"
if [ "${CUDA_PRECISION}" == "DOUBLE" ] ; then
AMBER_EXEC="pmemd.cuda_DPFP"
fi

fi
;;
esac
Expand Down Expand Up @@ -297,6 +308,7 @@ ChemFlow_set_defaults(){
#
# Author: Dona de Francquen
#===============================================================================

# General options
WORKDIR="${PWD}"
PROTOCOL="default"
Expand Down
Loading