OM

omicverse-visualization-for-bulk-color-systems-and-single-cell-d

Generates scientific visualizations like volcano plots and heatmaps for OmicVerse genomic data analysis.

Install

mkdir -p .claude/skills/omicverse-visualization-for-bulk-color-systems-and-single-cell-d && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/6043" && unzip -o skill.zip -d .claude/skills/omicverse-visualization-for-bulk-color-systems-and-single-cell-d && rm skill.zip

Installs to .claude/skills/omicverse-visualization-for-bulk-color-systems-and-single-cell-d

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

OmicVerse plotting: volcano, venn, boxplot, embedding, density, heatmap families, dotplot, convex hull, stacked bar, and Forbidden City color palettes.
151 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Generate volcano and heatmap plots
  • Configure forbidden city color palettes
  • Apply genomic styling to AnnData objects
  • Layout multi-chart single-cell embeddings
  • Produce Venn diagrams for gene lists

How it works

It wraps Matplotlib calls with OmicVerse-specific styling functions and pre-set aesthetic configurations for bioinformatics.

Inputs & outputs

You give it
Genomic dataset (AnnData/CSV) and plot type
You get back
Styled genomic visualization figures

When to use omicverse-visualization-for-bulk-color-systems-and-single-cell-d

  • Creating volcano plots for DEGs
  • Visualizing single-cell embedding layouts
  • Generating Venn diagrams for gene lists

About this skill

OmicVerse visualization for bulk, color systems, and single-cell data

Overview

Leverage this skill when a user wants help recreating or adapting plots from the OmicVerse plotting tutorials:

It covers how to configure OmicVerse's plotting style, choose colors from the Forbidden City palette, and generate bulk as well as single-cell specific figures.

Instructions

  1. Set up the plotting environment
    • Import omicverse as ov, matplotlib.pyplot as plt, and other libraries required by the user's request (pandas, seaborn, scanpy, etc.).
    • Call ov.ov_plot_set() (or ov.plot_set() depending on the installed version) to apply OmicVerse's default styling before generating figures.
    • Load example data via ov.read(...)/ov.pp.preprocess(...) or instruct users to supply their own AnnData/CSV files.
  2. Bulk RNA-seq visuals (t_visualize_bulk)
    • Use ov.pl.venn(sets=..., palette=...) to display overlaps among DEG lists (no more than 4 groups). Encourage setting sets as a dictionary of set names → gene lists.
    • For volcano plots, load the DEG table (result = ov.read('...csv')) and call ov.pl.volcano(result, pval_name='qvalue', fc_name='log2FoldChange', ...). Explain optional keyword arguments such as sig_pvalue, sig_fc, palette, and label formatting.
    • To compare group distributions with box plots, gather long-form data (e.g., from seaborn.load_dataset('tips')) and invoke ov.pl.boxplot(data, x_value=..., y_value=..., hue=..., ax=ax, palette=...). Mention how to adjust figure size, legend placement, and significance annotations.
  3. Color management (t_visualize_colorsystem)
    • Introduce the color book via fb = ov.pl.ForbiddenCity() and demonstrate fb.get_color(name='凝夜紫') for specific hues.
    • Show how to pull predefined palettes (ov.pl.green_color, ov.pl.red_color, etc.) and build dicts mapping cell types/groups to color hex codes.
    • For segmented gradients, combine colors and call ov.pl.get_cmap_seg(colors, name='custom'), then pass the colormap into Matplotlib/Scanpy plotting functions.
    • Highlight using these palettes in embeddings: ov.pl.embedding(adata, basis='X_umap', color='clusters', palette=color_dict, ax=ax).
  4. Single-cell visualizations (t_visualize_single)
    • Remind users to preprocess AnnData if needed (adata = ov.pp.preprocess(adata, mode='shiftlog|pearson', n_HVGs=2000)).
    • IMPORTANT - Data validation: Before plotting, always verify that required data exists:
      # Before plotting by clustering or other categorical variable
      color_col = 'leiden'  # or 'clusters', 'celltype', etc.
      if color_col not in adata.obs.columns:
          raise ValueError(f"Column '{color_col}' not found in adata.obs. Available columns: {list(adata.obs.columns)}")
      
      # Before plotting embeddings
      basis = 'X_umap'  # or 'X_pca', 'X_tsne', etc.
      if basis not in adata.obsm.keys():
          raise ValueError(f"Embedding '{basis}' not found in adata.obsm. Available embeddings: {list(adata.obsm.keys())}")
      
    • For palette optimization, use ov.pl.optim_palette(adata, basis='X_umap', colors='clusters') to auto-generate color schemes when categories clash.
    • Reproduce stacked proportions with ov.pl.cellproportion(adata, groupby='clusters', celltype_clusters='celltype', ax=ax) and transform into stacked area charts by setting kind='area'.
    • Showcase compound embedding utilities:
      • ov.pl.embedding_celltype to place counts/proportions alongside UMAPs.
      • ov.pl.ConvexHull or ov.pl.contour for highlighting regions of interest.
      • ov.pl.embedding_adjust to reposition legends automatically.
      • ov.pl.embedding_density for density overlays, controlling smoothness with adjust.
    • For spatial gene density, describe the workflow: ov.pl.calculate_gene_density(adata, genes=[...], basis='spatial'), then overlay with ov.pl.embedding(..., layer='gene_density', cmap='...').
    • For heatmaps, prefer the Marsilea mainline family:
      • ov.pl.group_heatmap for grouped expression summaries.
      • ov.pl.feature_heatmap for cell-level ordered heatmaps.
      • ov.pl.dynamic_heatmap for pseudotime/lineage heatmaps.
      • ov.pl.cell_cor_heatmap for group similarity heatmaps.
    • Treat ov.pl.complexheatmap and ov.pl.marker_heatmap as compatibility entry points for older workflows rather than the default extension surface.
    • Keep default border=False unless a user explicitly asks for framed panels; this matches current OmicVerse heatmap styling more closely.
    • For trajectory heatmaps, prefer real inferred pseudotime stored on the AnnData object over synthetic ordering whenever notebook or cached lineage results are available.
    • Cover additional charts like ov.pl.single_group_boxplot, ov.pl.bardotplot, ov.pl.dotplot, and legacy ov.pl.marker_heatmap, emphasizing input formats (long-form DataFrame vs. AnnData with .obs annotations) and optional helpers such as ov.pl.add_palue for manual p-value annotations.
  5. Finishing touches and exports
    • Encourage adding titles, axis labels, and fig.tight_layout() to prevent clipping.
    • Suggest saving figures with fig.savefig('plot.png', dpi=300, bbox_inches='tight') and documenting color mappings for reproducibility.
    • Troubleshoot common issues:
      • Missing AnnData keys: Always validate adata.obs columns and adata.obsm embeddings exist before plotting
      • Palette names not found: Verify color dictionaries match actual category values
      • Matplotlib font rendering: When using Chinese characters, ensure appropriate fonts are installed
      • "Could not find X in adata.obs": Check that clustering or annotation has been performed before trying to visualize results. Use defensive checks to compute missing prerequisites on-the-fly.

Examples

  • "Plot a three-set Venn diagram of overlapping DEG lists and reuse Forbidden City colors for consistency."
  • "Load the dentate gyrus AnnData, color clusters with fb.get_color selections, and render an embedding with adjusted legend placement."
  • "Generate single-cell proportion bar/area plots plus gene-density overlays using OmicVerse helper functions."

References

When not to use it

  • General-purpose web graphing
  • Visualizing non-genomic datasets

Prerequisites

OmicVerse librarymatplotlibpandas

Limitations

  • Only supports specific genomic file types
  • Visual complexity is limited by OmicVerse's underlying Matplotlib implementation

How it compares

It provides out-of-the-box styling designed specifically for the unique layout and color requirements of single-cell and bulk RNA-seq data.

Compared to similar skills

omicverse-visualization-for-bulk-color-systems-and-single-cell-d side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
omicverse-visualization-for-bulk-color-systems-and-single-cell-d (this skill)14moNo flagsIntermediate
umap-learn62moReviewIntermediate
hugging-face-trackio16moReviewIntermediate
tensorboard17moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

umap-learn

K-Dense-AI

UMAP dimensionality reduction. Fast nonlinear manifold learning for 2D/3D visualization, clustering preprocessing (HDBSCAN), supervised/parametric UMAP, for high-dimensional data.

6100

hugging-face-trackio

patchy631

Track and visualize ML training experiments with Trackio. Use when logging metrics during training (Python API) or retrieving/analyzing logged metrics (CLI). Supports real-time dashboard visualization, HF Space syncing, and JSON output for automation.

14

tensorboard

davila7

Visualize training metrics, debug models with histograms, compare experiments, visualize model graphs, and profile performance with TensorBoard - Google's ML visualization toolkit

10

academic-plotting

Supporter09

Generates publication-quality figures for ML papers from research context. Given a paper section or description, extracts system components and relationships to generate architecture diagrams via Gemini. Given experiment results or data, auto-selects chart type and generates data-driven figures via

00

quant-analyst

zenobi-us

Expert quantitative analyst specializing in financial modeling, algorithmic trading, and risk analytics. Masters statistical methods, derivatives pricing, and high-frequency trading with focus on mathematical rigor, performance optimization, and profitable strategy development.

103355

plotly

davila7

Interactive scientific and statistical data visualization library for Python. Use when creating charts, plots, or visualizations including scatter plots, line charts, bar charts, heatmaps, 3D plots, geographic maps, statistical distributions, financial charts, and dashboards. Supports both quick visualizations (Plotly Express) and fine-grained customization (graph objects). Outputs interactive HTML or static images (PNG, PDF, SVG).

20111

Search skills

Search the agent skills registry