Skip to content

mnowotka/sdf_viewer

 
 

Repository files navigation

sdf_viewer.py - an interactive SDF viewer by Axel Pahl at gmx dot de license: BSD, see license.txt in this folder

*** Usage

  • For features and usage of the program, see also sdf_viewer.pdf, included in this folder (presented on RDKit UGM 2014).

  • When performing fact searches, please remember that number field names are prefixed with "n_" and text field names are prefixed with "s_". The program uses this to determine the plottable fields and the fields that can be used for the "colorby" option.

    • A search in the field that is displayed as "pIC50" in the table would therefore have to look like this in the entry field: n_pIC50 >= 8
    • And a search in the text field "family" accordingly like this (values are converted to lower-case in the text search): "a.1" in s_family
    • field names beginning with "k_" (key, e.g. "k_molid") are used neither for plotting nor for coloring, but can be used in fact searching.
  • When the opened SDF does not follow this field naming scheme, the program tries to guess the types of the fields and renames them accordingly.

  • Searches can be performed in the original sdf as well as in any other sublist derived from it by earlier searches. Just click on the respective entry in the table that lists all the search results to make it the base for the next search.

  • The button is used to call a website for the displayed record. The function of the button can be defined in the <sdf_viewer_config.py> file (2 examples are given)

    • when defined, a url template is formatted with an sdf property (e.g. "k_molid") and the url is passed to webbrowser.open(url)
  • Saved sessions can be opened again under the name of the original sd file, e.g. when the original file was openend as <ugm2014_bzr> (with or without <.sdf>) then the saved session can also be loaded as <ugm2014_bzr>.

*** Planned Improvements (many based on discussions during the RDKit UGM 2014)

[ ] combine search results with [ ] show molecule grid of selected records [ ] include editable property ("s_remark") [ ] rename property [ ] select calculable properties [ ] create some unit tests

About

interactive SDF Viewer presented originally at the RDKit UGM 2014

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%