Skip to content
Back to skills

Visualization Utilities

ASecurity

"Guides agents using datamol visualization, molecule image

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
toolsreactapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill visualization-utilities --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Visualization Utilities?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Visualization Utilities
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-visualization-utilities/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-visualization-utilities)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: visualization-utilities
description: "Guides agents using datamol visualization, molecule image
  rendering, lasso highlighting, dataframe display, parallel utilities,
  filesystem helpers, RDKit log controls, and environment diagnostics."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Visualization Utilities

Use this sub-skill when the task asks to render molecules, save SVG/PNG depictions, highlight substructures, display molecule dataframes, visualize existing conformers, run small datamol utility jobs, inspect fsspec paths, silence RDKit logs, or diagnose datamol/RDKit runtime behavior.

## Route First

- For molecule parsing, cleanup, dataframe construction, SDF/CSV/XLSX IO, or property preservation before rendering, use `../molecule-io-prep/` first.
- For conformer generation, 3D coordinate creation, SASA, alignment, scaffolds, fragments, reactions, tautomers, or isomers, use `../structure-generation/` first.
- For fingerprints, clustering, distance matrices, MCS, graph comparisons, or diversity selection before visualization, use `../fingerprints-similarity/` first.

## What This Covers

- 2D grids with `dm.viz.to_image()` or top-level `dm.to_image()` from SMILES or RDKit molecules.
- SMARTS, query-molecule, and explicit atom-index highlighting with `dm.viz.lasso_highlight_image()` and `dm.viz.match_substructure()`.
- File and notebook output choices, including SVG strings, Pillow PNG objects, and `outfile` paths handled through fsspec.
- Existing-conformer display with `dm.viz.conformers()` when optional notebook widgets are installed and conformers already exist.
- Utility helpers: `dm.parallelized()`, `dm.parallelized_with_batches()`, `dm.JobRunner`, `dm.utils.fs`, `dm.utils.perf.watch_duration`, `dm.utils.decorators.disable_on_os`, and RDKit log/version helpers.

## Reference Map

- Use `references/api-reference.md` for signatures, parameters, return types, utility helper notes, and ownership boundaries.
- Use `references/workflows.md` for SVG/PNG rendering, lasso highlights, dataframe rendering, parallel jobs, fsspec checks, RDKit log control, and diagnostics recipes.
- Use `references/troubleshooting.md` for headless rendering, invalid highlight indices, SVG/PNG/Pillow issues, notebook assumptions, fsspec URI errors, and joblib pickling failures.
- Run `scripts/visualization_utility_smoke.py --help` for a safe executable smoke test, or run it with `--output-dir <dir>` to render a tiny SVG and exercise utility helpers.

## Decision Checklist

1. Normalize input molecules with the root skill or `../molecule-io-prep/` if the task starts from mixed files, tables, or potentially invalid SMILES.
2. Choose `use_svg=True` for deterministic text artifacts and `use_svg=False` only when the caller explicitly needs PNG/Pillow output.
3. Prefer `lasso_highlight_image()` for publication-style outline highlights and `to_image(highlight_atom=..., highlight_bond=...)` or `match_substructure()` for simple RDKit grid highlights.
4. Keep parallel helper callables top-level or otherwise picklable when using process workers; use `scheduler="threads"` or `n_jobs=0/1` for closures and notebook workflows.
5. Wrap noisy parsing or rendering probes in `dm.without_rdkit_log()` and restore global logs with `dm.enable_rdkit_log()` after temporary global muting.

Files in this skill

  • SKILL.md3.3 KB
  • references/api-reference.md10.5 KB
  • references/troubleshooting.md8.4 KB
  • references/workflows.md8.1 KB
  • scripts/visualization_utility_smoke.py3.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.