This repository contains certain python scripts to analyze PELE simulations: analyze. Some others are meant to automatize specific PELE simulations in different ways: protocol.
1. analysis: Directory with the code related to analyze PELE simulations:
1.1. disc.py: Script to: (1) Read all the information about a metric in a simulation and calculating different scoring functions. (2) Make plots of the evolution of the Boltzmann weighted average or minimum of a certain metric throughout a simulation.
1.2. analysis.py: Script to analyze simulations.
1.3. pele_fetcher.py: Script that fetches specific snapshot of a simulation.
1.4. rmsd.py: Script that prepares all to run an rmsd calculation in MN4.
1.5. qm.py: Script to optimize ligand, calculate charges and prepare ligand to put results in a folder ready to make peleffy parametrize the ligand.
2. protocol: Directory with code related to the pelissimo protocol that is being assembled.
2.1 corrector: Directory containing the code involved in the correction of the energies of a simulation.
2.2 entropy: Directory with the code related to the Ligand Conformational Entropy (LiCE) calculation
2.2.1 lice.py: Script that reads the results from dihedral clustering and further processes information to obtain an entropy change.
2.2.2 dihedral_clustering.py: Script that calculates dihedral angles for all the rotatable bonds in all the conformations reached by the ligand in a simulation. This information will be used to cluster conformations.
2.2.2 propy.py: Script that calculates dihedral angles for all peptidic bonds phi and psi of the backbone in all the conformations reached by the ligand in a simulation. This information will be used to cluster conformations.
2.2.4 entropy.py: Script that ensembles the other three to make a complete entropy analysis of a simulation.
2.3 initial_files: Directory with an example of the necessary files to perform a full simulation of the protocol.
2.4 strain: Directory with the code related to the calculation of the Ligand Internal Energy (LInEn).
In all cases the usage of the flag -h is recommended in order to understand the possibilities offered by the script.
python path/to/code/analysis.py -h
In case of doubt the code can be read since all the functions are commented and explained.
All the analysis scripts are designed to be run from the father directory of the output directory generated by PELE.
disc.py: In this case we want to analyze the reports inside output_1 and we want to take a look at the fifth metric in the reports.
python path/to/code/disc.py -d ouput_1 -c 5
analysis.py: If we want to make 50 bootstrap datasets from the results in output_2 regarding the sasa:
python path/to/code/analysis.py -d ouput_2 -ns 50 -m sasa --bootstrap
If we want to select the snapshots the first quantile of the BindingEnergy and analyze the energetic results of the BindingEnergy:
python path/to/code/analysis.py -rn rmsd_report -es 3 -q ['BindingEnergy',0.25] --filter --analyze -m BindingEnergy
python path/to/code/pele_fetcher.py -e 4 -t 33 -m 7 -s 1MTS_min
python path/to/code/rmsd.py -pdbr 1HPV_lig.pdb
entropy
python path/to/code/dihedral_clustering.py -f 1A28_lig.pdb -d output_original
strain
python path/to/code/linen.py -f 1A28_lig.pdb -ff OpenFF-OPLS2005 -sm OBC