Recent Releases of prolif
prolif - v2.0.3 - 2024-03-10
[2.0.3] - 2024-03-10
Fixed
- The SMARTS pattern for halogen bond acceptors was not allowing carbonyles and other groups with double bonds to match (PR #190 by @asiomchen).
- Python
Published by cbouy almost 2 years ago
prolif - v2.0.2 - 2024-03-06
Maintenance update:
Added
PROLIF_N_JOBSenvironment variable to control the default number of processes (used during the documentation build).
Changed
- Updated CI pipelines to test on Python 3.8, 3.10 and 3.12.
Fixed
- Packaging maintenance to fix the
tests/directory being included as a module rather than as plain data files. This could interfere withpytestduring test collection in other packages.
- Python
Published by cbouy almost 2 years ago
prolif - v2.0.1 - 2023-10-11
[2.0.1] - 2023-10-11
Added
- In
Complex3Dyou can now use thecomparemethod to display two 3D structures side by side.
Fixed
- The barcode plot would display artifacts due to downsampling in the underlying matplotlib
imshowcall when generating the plot for large fingerprints. Interpolation has been disabled to address the issue. - The barcode plot would skip labelling the second residue on the Y axis.
- Parsing residue names/number was broken for TIP3 water molecules and others.
- Python
Published by cbouy over 2 years ago
prolif - v2.0.0.post1 - 2023-09-13
[2.0.0.post1] - 2023-09-13
This is a post-release to fix releases not containing the complete test suite.
- Python
Published by cbouy over 2 years ago
prolif - v2.0.0.post0 - 2023-09-13
[2.0.0.post0] - 2023-09-13
This is a post-release to fix an issue with the conda build not being able to run the tests.
- Python
Published by cbouy over 2 years ago
prolif - v2.0.0 - 2023-09-03
[2.0.0] - 2023-09-03
Summary
This is a major refactoring of the ProLIF codebase introducing new features, but also breaking changes:
- Visualisation functions are now available through the
Fingerprintobject:plot_3d,plot_barcode,plot_lignetwork. Aprolif.display_residuesfunction is also available for easier debugging of structure preparation. - Fingerprint objects now store interaction metadata: distances, angles, and atom indices, accessible through
Fingerprint.ifp. - ProLIF can now generate count-vectors if requested to (i.e. enumerate all the occurrences of an interaction instead of stopping at the first one) by specifying
Fingerprint(count=True). - A new
parametersargument in theFingerprintclass allows providing custom parameters for interactions (rather than having to create new interaction classes). - The tutorials have been rewritten and reorganized.
- The multiprocessing backend has been switched to
multiprocessanddillfor better support in notebooks. - Refer to the
Removedsection for a list of breaking changes.
Added
- Added a
display_residuesfunction to quickly visualize the residues in aMoleculeobject. - Added a
Complex3Dclass for plotting interactions in 3D. Added the correspondingFingerprint.plot_3dmethod to generate the plot directly from an FP object. - Added a
Barcodeclass for plotting interactions. Added the correspondingFingerprint.plot_barcodemethod to generate the plot directly from an FP object. - Added a
countargument inFingerprint. Ifcount=True, enumerates all groups of atoms that satisfy interaction constraints (instead of stopping at the first one), allowing users to generate a count-fingerprint. TheFingerprint.to_dataframemethod has been modified accordingly, and aFingerprint.to_countvectorsmethod has been added to generate a list of RDKit'sUIntSparseIntVectfrom the count-fingerprint. The visualisation scripts have been updated to display the occurence with the shortest distance when a count-fingerprint is being used. - Added a
parametersargument inFingerprintto easily update the parameters used by an interaction, instead of defining a new interaction class (Issue #118). - Added new abstract interaction classes
SingleAngleandDoubleAngleto more easily create custom interactions. - Added the
vdwradiiparameter to theVdWContactinteraction class to update the radii it uses. - Added the
Fingerprint.plot_lignetworkmethod to generate aLigNetworkplot directly. - Added
LigNetwork.from_fingerprintto generate the ligplot from aFingerprintinstance. Added adisplay_allparameter for displaying all interactions instead of only the shortest one for a given pair of residues. Addeduse_coordinatesandflatten_coordinatesto control how the ligand structure is displayed. - Added support for displaying peptides with the
LigNetwork. - Added
Fingerprint.metadatato generate a dictionary containing metadata about interactions between two residues. ReplacesFingerprint.bitvector_atoms. - Added a
vicinity_cutoffparameter inFingerprintto control the distance cutoff used to automatically restrict the IFP calculation to residues within the specified range of the ligand. - Added a
metadatamethod to the baseInteractionclass to easily generate metadata for custom interactions. - Added an
Interaction.invert_classclassmethod to easily invert the role of the ligand and protein residues in an interaction, e.g. to create a donor class from an acceptor class.
Changed
- The tutorials have been overhauled and should now be much easier to navigate.
- The multiprocessing and pickling backends have been switched to
multiprocessanddillrespectively, and the parallel implementation has been improved. Users should now be able to define custom interactions in Jupyter notebooks, IPython and so on without any issue (Issue #117, Issue #86). - The
LigNetworkplot now displays the distance for each interaction on mouse hover. - Changed the format of the
Fingerprint.ifpattribute to be a dictionary indexed by frame/structure index. The values are customIFPdictionaries that can be more easily indexed by using residue identifier strings (e.g.ALA216.A) rather thanResidueIdobjects. Each entry contains complete interaction metadata instead of just atom indices. - All interaction classes now return more complete details about the interaction (e.g. distances, angles, atom indices in the residue and parent molecule).
- Changed the default color for
VanDerWaalsinteractions in the builtin plots. - Converting the IFP to a dataframe with atom indices has been optimized and now runs about 5 times faster (Issue #112, PR #113 by @ReneHamburger1993). Note: discarded by the subsequent updates to the codebase which removed the ability to have atom indices in the dataframe.
- Various changes related to packaging, code formatting, linting and CI pipelines (PR #114).
Fixed
- Fixed pickling properties on RDKit molecules for Windows.
Removed
- Removed the
return_atomsargument inFingerprint.to_dataframe. Users should directly useFingerprint.ifpinstead (the documentation's tutorials have been updated accordingly). - Removed the
Fingerprint.bitvector_atomsmethod, replaced byFingerprint.metadata. - Removed the
__wrapped__attribute on interaction methods that are available from theFingerprintobject. These methods now accept ametadataparameter instead. - Removed
LigNetwork.from_ifpin favor ofLigNetwork.from_fingerprint. - Removed the
match3Dparameter inLigNetwork. Replaced byuse_coordinatesandflatten_coordinatesto give users more control and allow them to provide their own 2D coordinates.
- Python
Published by cbouy over 2 years ago
prolif - v1.1.0 - 2022-11-18
[1.1.0] - 2022-11-18
Added
Fingerprint.runnow has aconverter_kwargsparameter that can pass kwargs to the underlying RDKitConverter from MDAnalysis (Issue #57).- Formatting with
black.
Changed
- The SMARTS for the following groups have been updated to a more accurate definition
(Issue #68, PR #73 by @DrrDom, and PR #84):
- Hydrophobic: excluded F, Cl, tetracoordinated C and S, C connected to N, O or F.
- HBond donor: exclude charged O, S and charged aromatic N, only accept nitrogen that is in valence 3 or ammonium
- HBond acceptor: exclude amides and some amines, exclude biaryl ethers and alkoxy oxygen from esters, include some aromatic oxygen and nitrogen,
- Anion: include resonance forms of carboxylic, sulfonic and phosphorus acids,
- Cation: include amidine and guanidine,
- Metal ligand: exclude amides and some amines.
- The Pi stacking interactions have been changed for a more accurate implementation (PR #97, PR #98).
- The Van der Waals contact has been added to the default interactions, and the
toleranceparameter has been set to 0. - The
pdbqt_supplierwill not add explicit hydrogen atoms anymore, to avoid detecting hydrogen bonds with "random" hydrogens that weren't in the PDBQT file (PR #99). - When using the
pdbqt_supplier, irrelevant warnings and logs have been disabled (PR #99). - Updated the minimal RDKit version to
2021.03.1
Fixed
- Dead link in the quickstart notebook for the MDAnalysis quickstart (PR #75, @radifar).
- The
pdbqt_suppliernow correctly preserves hydrogens from the input PDBQT file (PR #99). - If no interaction was detected,
to_dataframewould error without giving a helpful message. It now returns a dataframe with the correct number of frames in the index and no column.
- Python
Published by cbouy over 3 years ago
prolif - v1.0.0 - 2022-06-07
[1.0.0] - 2022-06-07
Added
- Support for multiprocessing, enabled by default (Issue #46). The number of processes can
be controlled through
n_jobsinfp.runandfp.run_from_iterable. - New interaction: van der Waals contact, based on the sum of vdW radii of two atoms.
- Saving/loading the fingerprint object as a pickle with
fp.to_pickleandFingerprint.from_pickle(Issue #40).
Changed
- Molecule suppliers can now be indexed, reused and can return their length, instead of being single-use generators.
Fixed
- ProLIF can now be installed through pip and conda (Issue #6).
- If no interaction is detected in the first frame,
to_dataframewill not complain about aKeyErroranymore (Issue #44). - When creating a
plf.Fingerprint, unknown interactions will no longer fail silently.
- Python
Published by cbouy over 3 years ago
prolif - v0.3.4 - 2021-09-28
[0.3.4] - 2021-09-28
This is the version corresponding to the ProLIF published paper.
Added
- Added our J. Cheminformatics article to the citation page of the documentation and the
CITATION.cfffile. ### Changed - Improved the documentation on how to properly restrict interactions to ignore the
protein backbone (Issue #22), how to fix the empty dataframe issue when no bond
information is present in the PDB file (Issue #15), how to save the LigNetwork diagram
(Issue #21), and some clarifications on using
fp.generate### Fixed - Mixing residue type with interaction type in the interactive legend of the LigNetwork would incorrectly display/hide some residues on the canvas (#PR 23)
- MOL2 files starting with a comment (
#) would lead to an error
- Python
Published by cbouy over 4 years ago
prolif - v0.3.3 - 2021-06-11
[0.3.3] - 2021-06-11
Changed
- Custom interactions must return three values: a boolean for the interaction, and the indices of residue atoms responsible for the interaction ### Fixed
- Custom interactions that only returned a single value instead of three would raise an uninformative error message
- Python
Published by cbouy over 4 years ago
prolif - v0.3.2 - 2021-06-11
[0.3.2] - 2021-06-11
Added
- LigNetwork: an interaction diagram with atomistic details for the ligand and residue-level details for the protein, fully interactive in a browser/notebook, inspired from LigPlot (PR #19)
fp.generate: a method to get the IFP between twoprolif.Moleculeobjects (PR #19) ### Changed- Default residue name and number:
UNKand0are now the default values ifNoneor''is given - The Hydrophobic interaction now uses
+0(no charge) instead of!$([+{1-},-{1-}])(not negatively or positively charged) for part of its SMARTS pattern (PR #19) - Moved the
return_atomsparameter from therunmethods toto_dataframeto avoid recalculating the IFP if one wants to display it with atomic details (PR #19) - Changed the values returned by
fp.bitvector_atoms: the atom indices have been separated in two lists, one for the ligand and one for the protein (PR #19) ### Fixed - Residues with a resnumber of
0are not converted toNoneanymore (Issue #13)
- Python
Published by cbouy over 4 years ago
prolif - v0.3.1 - 2021-02-02
[0.3.1] - 2021-02-02
Added
- Integration with Zenodo to automatically generate a DOI for new releases
- Citation page
- Docking section in the Quickstart notebook (Issue #11)
- PDBQT, MOL2 and SDF molecule suppliers to make it easier for users to use docking results as input (Issue #11)
Molecule.from_rdkitclassmethod to easily prepare RDKit molecules for ProLIF ### Changed- The visualisation notebook now displays the protein with py3Dmol. Some examples for creating and displaying a graph from the interaction dataframe have been added
- Updated the installation instructions to show how to install a specific release
- The previous repr method of
ResidueIdwas easy to confuse with a string, especially when trying to access theFingerprint.ifpresults by string. The new repr method is now more explicit. - Added the
Fingerprint.run_from_iterablemethod, which uses the new supplier functions to quickly generate a fingerprint. - Sorted the output of
Fingerprint.list_available### Fixed Fingerprint.to_dataframeis now much faster (Issue #7)ResidueId.from_stringmethod now supports 1-letter and 2-letter codes for RNA/DNA (Issue #8)
- Python
Published by cbouy about 5 years ago
prolif - v0.3.0 - 2020-12-23
[0.3.0] - 2020-12-23
Added
- Reading input directly from RDKit Mol as well as MDAnalysis AtomGroup objects
- Proper documentation and tests
- CI through GitHub Actions
- Publishing to PyPI triggered by GitHub releases ### Changed
- All the API and the underlying code have been modified
- Repository has been moved from GitHub user @cbouy to organisation @chemosim-lab ### Deprecated ### Removed
- Custom MOL2 file reader
- Command-line interface ### Fixed
- Interactions not detected properly
- Python
Published by cbouy about 5 years ago