Skip to content

Releases: cbouy/mols2grid

v0.0.6 - 2021/05/14

14 May 19:35
Compare
Choose a tag to compare

Changed

  • Javascript module for RDKit is now sourced from unpkg.com and pinned to v2021.3.2

v0.0.5 - 2021/04/08

08 Apr 00:25
Compare
Choose a tag to compare

CHANGELOG

Added

  • New transform parameter that accepts a dictionary of field-function items where each
    function transforms the input value that will be displayed. Fixes: Issue #10

Fixed

  • Running mols2grid could throw an ImportError (instead of ModuleNotFoundError) if the
    google module was installed, but not google.colab. Solved by PR #11
  • Private molecule properties (i.e properties starting with _) were not registered when
    reading properties from RDKit molecules (SDF or list of mols).

v0.0.4 - 2021/04/01

01 Apr 16:01
Compare
Choose a tag to compare

CHANGELOG

Changed

  • The demo notebook can now be run on Google Colab

Fixed

  • DataFrames with NaN values would previously lead to an empty grid as NaN were
    converted to nan (not recognized by JS) instead of NaN.
  • Selection of molecules in Google Colab now works as expected.
  • Saved documents are now displayed properly

v0.0.3 - 2021/03/31

31 Mar 13:32
Compare
Choose a tag to compare

CHANGELOG

Added

  • SMARTS search: the "🔎" button now lets users choose between a text search or a SMARTS
    search. This relies on RDKit's "MinimalLib" JS wrapper which is still in beta, and will
    likely break at some point. Use at your own risk!
  • Sorting: added a "Sort by" button that lets users choose in which order the molecules
    should be listed. Default: by index. Fixes: Issue #7
  • MolDrawOptions drawing parameter: this will allow further customization of the drawing
    options.
  • Selection: added checkboxes to each cell. Clicking on a checkbox will add the molecule's
    corresponding index and SMILES to the mols2grid.selection dictionnary.
  • New input formats: dict and record (list of dicts) are automatically converted to a
    pandas DataFrame when used as input to the MolGrid class. The mols2grid.display
    function only accepts the dict option (since the list format is already used for lists
    of RDKit molecules).
  • New input options: mol_col parameter. Adds the ability to directly use an RDKit mol
    instead of relying on a SMILES intermediate. This makes using the 2D coordinates of the
    input mol a possibility, instead of systematically generating new ones. It also allows
    for adding annotations and highlights on drawings. Introduces 2 new parameters:
    • mol_col=None: Column of the dataframe containing RDKit molecules
    • use_coords=True: directly use the coordinates from each molecule, or generate new
      ones

Changed

  • The "mols2grid-id" now keeps track of molecules that could not be read by RDKit. This
    makes relying on the index of the corresponding entry more reliable.

Deprecated

Removed

Fixed

  • The "mols2grid-id" field is now correctly set in the internal DataFrame and the
    JavaScript List.
  • Using the search bar will now only search inside the fields listed in subset and
    tooltip and exclude the img field.
  • When using the display function, the height of the iframe is now automatically set
    based on the different parameters, instead of a fixed 600px height. Fixes: Issue #6

v0.0.2 - 2021/03/23

23 Mar 15:29
Compare
Choose a tag to compare

CHANGELOG

  • Fixed NoTemplateError when installing from PyPI
  • Added wrapper functions to the save and display methods for easier usage
  • Added a search bar