npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

trident-chemwidgets

v0.2.1

Published

Chemical widget set to work in jupyter notebook and lab.

Downloads

20

Readme

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 [email protected].

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.