SimonBoothroyd / plotmol

Interactive plotting of data annotated with molecule structures.
MIT License
10 stars 4 forks source link

Add options to customize molecule drawing #3

Closed SimonBoothroyd closed 3 years ago

SimonBoothroyd commented 3 years ago

Description

This PR expands on #1 by adding a new MoleculeStyle object which can be passed to the scatter function to control how the 2D structure shown as a tooltip is rendered, as well as adding a molecule_to_image_function so that a completely custom render function can be used.

Status

codecov[bot] commented 3 years ago

Codecov Report

Merging #3 (bb87c66) into main (083fef3) will increase coverage by 0.38%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main       #3      +/-   ##
==========================================
+ Coverage   98.07%   98.46%   +0.38%     
==========================================
  Files           3        4       +1     
  Lines          52       65      +13     
==========================================
+ Hits           51       64      +13     
  Misses          1        1              
Flag Coverage Δ
unittests 98.46% <100.00%> (+0.38%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
plotmol/plotmol.py 97.14% <100.00%> (+0.36%) :arrow_up:
plotmol/styles.py 100.00% <100.00%> (ø)
plotmol/utilities/rdkit.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 083fef3...bb87c66. Read the comment docs.