Skip to main content

Jupyter widgets for working with chemical datasets

Project description




License Version PRs

Summary

About

The Trident Chemwidgets (TCW) package provides a set of Jupyter widgets to improve data visibility in cheminformatics and molecular machine learning.

Trident Chemwidgets is a product of Trident Bioscience. Trident Bioscience builds machine learning applications for the biotech and pharmaceutical industries. If you're interested in learning more, you can visit us at trident.bio or email us at info@trident.bio.

Installation

Trident Chemwidgets is available from pip and conda:

pip:

pip install trident-chemwidgets

conda:

conda install -c conda-forge trident-chemwidgets

Then, for Jupyter Lab, run:

jupyter labextension install trident-chemwidgets

Full instructions here.

Documentation

Click the link above to access the documentation. If you're looking for example notebooks, check out the links below (clone this repository to use them directly).

Usage

We suggest importing Trident Chemwidgets using the convention tcw, as shown below.

import trident_chemwidgets as tcw

Input functions

JSME

To facilitate molecular input, TCW provides an interface to the JSME Molecule Editor with added functionality.

editor = tcw.JSME()
editor

You can play with JSME widget in this notebook.


Plotting functions

Understanding the distribution of your data is critical to many cheminformatic tasks. To this end, we supply a number of interactive plotting functions that allow you to display both the data and underlying molecular structures. You can even subset and save the data based on the property values for use in downstream analysis.

Histogram

For 1-dimensional datasets, TCW provides a histogram plot function:

histogram = tcw.Histogram(data=data, smiles='smiles', x='tpsa', x_label='TPSA')
histogram

You can play with Histogram widget in this notebook.

Scatter plot

For 2-dimensional datasets, TCW provides a scatter plot function:

scatter = tcw.Scatter(data=data, smiles='smiles', x='mwt', y='logp',
                      x_label='Molecular Weight', y_label='logP')

You can play with Scatter widget in this notebook.


Output functions

Interactive molecule

To examine features at the atom level, TCW provides a function to plot a molecule and allow users to explore the atom-specific features:

mol = tcw.InteractiveMolecule('CC(C)CC1=CC=C(C=C1)C(C)C(=O)O', data=atom_data)
mol

You can play with InteractiveMolecule widget in this notebook.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trident_chemwidgets-0.2.0.tar.gz (13.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trident_chemwidgets-0.2.0-py2.py3-none-any.whl (16.6 MB view details)

Uploaded Python 2Python 3

File details

Details for the file trident_chemwidgets-0.2.0.tar.gz.

File metadata

  • Download URL: trident_chemwidgets-0.2.0.tar.gz
  • Upload date:
  • Size: 13.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for trident_chemwidgets-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6ed98abe25a7601070c47ef6f959c74cc0604f661ec5bf03208cccc31c04b923
MD5 adc3ab065418c98571c7c3d66a408c49
BLAKE2b-256 1ce286e236b5cbd45343db0afd71da111632e16341c574d3e901258e5ed2ac28

See more details on using hashes here.

File details

Details for the file trident_chemwidgets-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for trident_chemwidgets-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7119e90d819bd2a683594a49792679f6253d0f1fec80696be50c16cf6d29d7db
MD5 fb5ef832f0158f6e89b47b340049c6d0
BLAKE2b-256 3c28428abfb2a4d3beaedc2418def0af57f481843834030dcefe99264963ed39

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page