omicverse-visualization-for-bulk-color-systems-and-single-cell-d
Guide users through OmicVerse plotting utilities showcased in the bulk, color system, and single-cell visualization tutorials, including venn/volcano charts, palette selection, and advanced embedding layouts.
Install
mkdir -p .claude/skills/omicverse-visualization-for-bulk-color-systems-and-single-cell-d && curl -L -o skill.zip "https://mcp.directory/api/skills/download/6043" && unzip -o skill.zip -d .claude/skills/omicverse-visualization-for-bulk-color-systems-and-single-cell-d && rm skill.zipInstalls to .claude/skills/omicverse-visualization-for-bulk-color-systems-and-single-cell-d
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
- 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()(orov.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.
- Import
- 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 settingsetsas a dictionary of set names → gene lists. - For volcano plots, load the DEG table (
result = ov.read('...csv')) and callov.pl.volcano(result, pval_name='qvalue', fc_name='log2FoldChange', ...). Explain optional keyword arguments such assig_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 invokeov.pl.boxplot(data, x_value=..., y_value=..., hue=..., ax=ax, palette=...). Mention how to adjust figure size, legend placement, and significance annotations.
- Use
- Color management (
t_visualize_colorsystem)- Introduce the color book via
fb = ov.pl.ForbiddenCity()and demonstratefb.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).
- Introduce the color book via
- 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 settingkind='area'. - Showcase compound embedding utilities:
ov.pl.embedding_celltypeto place counts/proportions alongside UMAPs.ov.pl.ConvexHullorov.pl.contourfor highlighting regions of interest.ov.pl.embedding_adjustto reposition legends automatically.ov.pl.embedding_densityfor density overlays, controlling smoothness withadjust.
- For spatial gene density, describe the workflow:
ov.pl.calculate_gene_density(adata, genes=[...], basis='spatial'), then overlay withov.pl.embedding(..., layer='gene_density', cmap='...'). - Cover additional charts like
ov.pl.single_group_boxplot,ov.pl.bardotplot,ov.pl.dotplot, andov.pl.marker_heatmap, emphasizing input formats (long-form DataFrame vs. AnnData with.obsannotations) and optional helpers such asov.pl.add_paluefor manual p-value annotations.
- Remind users to preprocess AnnData if needed (
- 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.obscolumns andadata.obsmembeddings 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.
- Missing AnnData keys: Always validate
- Encourage adding titles, axis labels, and
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_colorselections, and render an embedding with adjusted legend placement." - "Generate single-cell proportion bar/area plots plus gene-density overlays using OmicVerse helper functions."
References
- Bulk tutorial:
t_visualize_bulk.ipynb - Color system tutorial:
t_visualize_colorsystem.ipynb - Single-cell tutorial:
t_visualize_single.ipynb - Quick reference snippets:
reference.md
More by Starlitnightly
View all skills by Starlitnightly →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversStreamline project docs with Specs Workflow: automate software project plan templates, tracking, and OpenAPI-driven prog
Unlock powerful Excel automation: read/write Excel files, create sheets, and automate workflows with seamless integratio
Guide your software projects with structured prompts from requirements to code using the waterfall development model and
Manage servers and databases with Coolify—seamless system management server and SQL server tools via natural language.
Integrate Chronulus AI forecasting & prediction agents with Claude for seamless AI forecasting, prediction tools, and fo
Integrate Microsoft Teams with Microsoft Graph API to manage chats, messages, and users securely using device code authe
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.