Start a fresh conversation. Replace the highlighted placeholders.
Use bulk-wgcna-analysis-with-omicverse to analyze [expression matrix] with [sample metadata] for [species], identifying co-expression modules, module–trait relationships, and hub genes with visualizations.
Required inputs
[expression matrix]
[sample metadata]
[species]
User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗
SKILL.md
name: bulk-wgcna-analysis-with-omicversetitle: Bulk WGCNA analysis with omicversedescription: Assist Claude in running PyWGCNA through omicverse—preprocessing expression matrices, constructing co-expression modules, visualising eigengenes, and extracting hub genes.
Bulk WGCNA analysis with omicverse
Overview
Activate this skill for users who want to reproduce the WGCNA workflow from t_wgcna.ipynb. It guides you through loading expression data, configuring PyWGCNA, constructing weighted gene co-expression networks, and inspecting modules of interest.
Instructions
Prepare the environment
Import omicverse as ov, scanpy as sc, matplotlib.pyplot as plt, and pandas as pd.
Set plotting defaults via ov.plot_set().
Load and filter expression data
Read expression matrices (e.g., from expressionList.csv).
Calculate median absolute deviation with from statsmodels import robust and gene_mad = data.apply(robust.mad).
Keep the top variable genes (e.g., data = data.T.loc[gene_mad.sort_values(ascending=False).index[:2000]]).