Releases: ale94mleon/moldrug
Releases · ale94mleon/moldrug
1.1.0 - 2022.08.23
Changed
-
moldrug.utils.Individual
now is a hashable object. -
moldrug.utils.GA.SawIndividuals
now is aset
instead of alist
-
moldrug.utils.update_reactant_zone
sets the keywordsmatchValences
andringMatchesRingOnly
to True on rdFMCS.FindMCS. This prevent undesired effects. E.g:from moldrug.utils import update_reactant_zone from rdkit import Chem mol1 = Chem.MolFromSmiles('c1ccccc1') mol2 = Chem.MolFromSmiles('CCCN') update_reactant_zone(parent=mol1,offspring=mol2 parent_replace_ids = [0,2])
Before the results was:
([0, 2, 3], [])
. Now it is:([0, 1, 2, 3], [])
. The behavior was because theringMatchesRingOnly
is set toFalse
by default inside RDKit.
Removed
moldrug.utils.timeit
. No longer needed.
Added
- Documentation.
1.0.2 - 2022.08.08
Removed
Popen
option inmoldrug.utils.run
.
Changed
RuntimeError
bywarnings.warn
when vina run fails and save every error asidx_error.pbz2
. Where idx is the index of the failed individual.- Print format when
mutate
fails inside ofmoldrug.utils.GA
Added
- Print MolDrug's version when the command line is used.
1.0.0 - 2022.07.30
Fixed
- Hidden
RuntimeError
inmoldrug.fitness
module. - Bug printing number of generations in final info.
Removed
- Unused code in
moldrug.home
module. - 3D conformation in the
mol
attribute of the Individual during initialization. - The use of
grow_mol
in the initialization of the populating whenget_similar = True
. Now the population is initialized withmutate_mol
and the same set of crem parameters used during the searching. - The automatic addition of Hs in the case where
min_size
and/ormax_size
were equal to zero. Now if your intention is work with the hydrogens, you must provided a SMILES with the explicit Hs. In the future the input could be just a RDKit mol. Now you must specify if you would like to add explicit Hs to the molecule withe keywordAddHs
; default is False and is used for bothmoldrug.utils.GA
andmoldrug.utils.Local
.
Added
- Handling vina RuntimeError and keeping track for debug. This feature is used to identify what is the error. In the future will be removed.
- Two new fitness functions:
moldrug.fitness.CostOnlyVina
andmoldrug.fitness.CostMultiReceptorsOnlyVina
. They only use the information of vina scoring function. See the docs for more info about it. - Tracking of atom indexes during generations in order to use
protected_ids
andreplace_ids
options ofmutate_mol
function of CReM. Before it was not possible; the use of these features generate undesired solutions because the indexes are not static over generations. Even so, there are still some problems for symmetric molecules. We are working on it.
Changed
- The whole MolDrug works base on the RDKit mol instead of the SMILES string:
moldrug.utils.Individual
is now initializedmol
insteadsmiles
. Now the SMILES string is generated internally, it still used as identifying for the instance.moldrug.utils.GA
changedsmiles
forseed_mol
and it is not needed themol
variable any more.moldrug.utils.Local
changedmol
forseed_mol
in the initialization variables..moldrug.utils.confgen
changed smiles formol
variable.
0.1.0 - 2022.07.25
Fixed
- Minor cleaning code.
- Bug during the import of user custom cost function.
Added
outdir
option for the command line.- User custom desirability.
0.0.4
0.0.3
- Fix issue with molecules that does not produce a correct pdbqt file
0.0.2
- Follow jobs on the command line
- Fixing make_sdf for multiple receptors
- Much better documentation
0.0.1.beta.9
- Comand line available
- Adding sdf export
- Eliminate OpenBabel dependency
- Adding meeko for working with pdbqt
0.0.1.beta7
Here we add the automatic detection based on mutate_crem_kwargs
on GA
of the need of add explicit hydrogens inside of the mutate function
0.0.1.beta6
change version name