[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71GC6PJSYN379YN9B41XTT4":3,"skill-same:01M71GC6PJSYN379YN9B41XTT4":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M71GC6PJSYN379YN9B41XTT4","pydeseq2",null,"Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano\u002FMA plots, for RNA-seq analysis.","JSGforever\u002Fskillguard","JSGforever","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F85541948?v=4","01M71FQD3E132VMR5F4TAYX3YS","01M71FQD4DYW0XJ4XQ4YQH75Y9",2,"GPL-3.0","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__Microck--claude-scientific-skills\u002Fscientific-skills\u002Fpydeseq2\u002FSKILL.md",[],[5,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],"bulk","fdr","expression","analysis","RNA","de","DESeq2","gene expression","volcano","gene","seq","for","python","tests","rna-seq","2026-11-10 10:12:30",false,"---\nname: pydeseq2\ndescription: \"Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano\u002FMA plots, for RNA-seq analysis.\"\n---\n\n# PyDESeq2\n\n## Overview\n\nPyDESeq2 is a Python implementation of DESeq2 for differential expression analysis with bulk RNA-seq data. Design and execute complete workflows from data loading through result interpretation, including single-factor and multi-factor designs, Wald tests with multiple testing correction, optional apeGLM shrinkage, and integration with pandas and AnnData.\n\n## When to Use This Skill\n\nThis skill should be used when:\n- Analyzing bulk RNA-seq count data for differential expression\n- Comparing gene expression between experimental conditions (e.g., treated vs control)\n- Performing multi-factor designs accounting for batch effects or covariates\n- Converting R-based DESeq2 workflows to Python\n- Integrating differential expression analysis into Python-based pipelines\n- Users mention \"DESeq2\", \"differential expression\", \"RNA-seq analysis\", or \"PyDESeq2\"\n\n## Quick Start Workflow\n\nFor users who want to perform a standard differential expression analysis:\n\n```python\nimport pandas as pd\nfrom pydeseq2.dds import DeseqDataSet\nfrom pydeseq2.ds import DeseqStats\n\n# 1. Load data\ncounts_df = pd.read_csv(\"counts.csv\", index_col=0).T  # Transpose to samples × genes\nmetadata = pd.read_csv(\"metadata.csv\", index_col=0)\n\n# 2. Filter low-count genes\ngenes_to_keep = counts_df.columns[counts_df.sum(axis=0) >= 10]\ncounts_df = counts_df[genes_to_keep]\n\n# 3. Initialize and fit DESeq2\ndds = DeseqDataSet(\n    counts=counts_df,\n    metadata=metadata,\n    design=\"~condition\",\n    refit_cooks=True\n)\ndds.deseq2()\n\n# 4. Perform statistical testing\nds = DeseqStats(dds, contrast=[\"condition\", \"treated\", \"control\"])\nds.summary()\n\n# 5. Access results\nresults = ds.results_df\nsignificant = results[results.padj \u003C 0.05]\nprint(f\"Found {len(significant)} significant genes\")\n```\n\n## Core Workflow Steps\n\n### Step 1: Data Preparation\n\n**Input requirements:**\n- **Count matrix:** Samples × genes DataFrame with non-negative integer read counts\n- **Metadata:** Samples × variables DataFrame with experimental factors\n\n**Common data loading patterns:**\n\n```python\n# From CSV (typical format: genes × samples, needs transpose)\ncounts_df = pd.read_csv(\"counts.csv\", index_col=0).T\nmetadata = pd.read_csv(\"metadata.csv\", index_col=0)\n\n# From TSV\ncounts_df = pd.read_csv(\"counts.tsv\", sep=\"\\t\", index_col=0).T\n\n# From AnnData\nimport anndata as ad\nadata = ad.read_h5ad(\"data.h5ad\")\ncounts_df = pd.DataFrame(adata.X, index=adata.obs_names, columns=adata.var_names)\nmetadata = adata.obs\n```\n\n**Data filtering:**\n\n```python\n# Remove low-count genes\ngenes_to_keep = counts_df.columns[counts_df.sum(axis=0) >= 10]\ncounts_df = counts_df[genes_to_keep]\n\n# Remove samples with missing metadata\nsamples_to_keep = ~metadata.condition.isna()\ncounts_df = counts_df.loc[samples_to_keep]\nmetadata = metadata.loc[samples_to_keep]\n```\n\n### Step 2: Design Specification\n\nThe design formula specifies how gene expression is modeled.\n\n**Single-factor designs:**\n```python\ndesign = \"~condition\"  # Simple two-group comparison\n```\n\n**Multi-factor designs:**\n```python\ndesign = \"~batch + condition\"  # Control for batch effects\ndesign = \"~age + condition\"     # Include continuous covariate\ndesign = \"~group + condition + group:condition\"  # Interaction effects\n```\n\n**Design formula guidelines:**\n- Use Wilkinson formula notation (R-style)\n- Put adjustment variables (e.g., batch) before the main variable of interest\n- Ensure variables exist as columns in the metadata DataFrame\n- Use appropriate data types (categorical for discrete variables)\n\n### Step 3: DESeq2 Fitting\n\nInitialize the DeseqDataSet and run the complete pipeline:\n\n```python\nfrom pydeseq2.dds import DeseqDataSet\n\ndds = DeseqDataSet(\n    counts=counts_df,\n    metadata=metadata,\n    design=\"~condition\",\n    refit_cooks=True,  # Refit after removing outliers\n    n_cpus=1           # Parallel processing (adjust as needed)\n)\n\n# Run the complete DESeq2 pipeline\ndds.deseq2()\n```\n\n**What `deseq2()` does:**\n1. Computes size factors (normalization)\n2. Fits genewise dispersions\n3. Fits dispersion trend curve\n4. Computes dispersion priors\n5. Fits MAP dispersions (shrinkage)\n6. Fits log fold changes\n7. Calculates Cook's distances (outlier detection)\n8. Refits if outliers detected (optional)\n\n### Step 4: Statistical Testing\n\nPerform Wald tests to identify differentially expressed genes:\n\n```python\nfrom pydeseq2.ds import DeseqStats\n\nds = DeseqStats(\n    dds,\n    contrast=[\"condition\", \"treated\", \"control\"],  # Test treated vs control\n    alpha=0.05,                # Significance threshold\n    cooks_filter=True,         # Filter outliers\n    independent_filter=True    # Filter low-power tests\n)\n\nds.summary()\n```\n\n**Contrast specification:**\n- Format: `[variable, test_level, reference_level]`\n- Example: `[\"condition\", \"treated\", \"control\"]` tests treated vs control\n- If `None`, uses the last coefficient in the design\n\n**Result DataFrame columns:**\n- `baseMean`: Mean normalized count across samples\n- `log2FoldChange`: Log2 fold change between conditions\n- `lfcSE`: Standard error of LFC\n- `stat`: Wald test statistic\n- `pvalue`: Raw p-value\n- `padj`: Adjusted p-value (FDR-corrected via Benjamini-Hochberg)\n\n### Step 5: Optional LFC Shrinkage\n\nApply shrinkage to reduce noise in fold change estimates:\n\n```python\nds.lfc_shrink()  # Applies apeGLM shrinkage\n```\n\n**When to use LFC shrinkage:**\n- For visualization (volcano plots, heatmaps)\n- For ranking genes by effect size\n- When prioritizing genes for follow-up experiments\n\n**Important:** Shrinkage affects only the log2FoldChange values, not the statistical test results (p-values remain unchanged). Use shrunk values for visualization but report unshrunken p-values for significance.\n\n### Step 6: Result Export\n\nSave results and intermediate objects:\n\n```python\nimport pickle\n\n# Export results as CSV\nds.results_df.to_csv(\"deseq2_results.csv\")\n\n# Save significant genes only\nsignificant = ds.results_df[ds.results_df.padj \u003C 0.05]\nsignificant.to_csv(\"significant_genes.csv\")\n\n# Save DeseqDataSet for later use\nwith open(\"dds_result.pkl\", \"wb\") as f:\n    pickle.dump(dds.to_picklable_anndata(), f)\n```\n\n## Common Analysis Patterns\n\n### Two-Group Comparison\n\nStandard case-control comparison:\n\n```python\ndds = DeseqDataSet(counts=counts_df, metadata=metadata, design=\"~condition\")\ndds.deseq2()\n\nds = DeseqStats(dds, contrast=[\"condition\", \"treated\", \"control\"])\nds.summary()\n\nresults = ds.results_df\nsignificant = results[results.padj \u003C 0.05]\n```\n\n### Multiple Comparisons\n\nTesting multiple treatment groups against control:\n\n```python\ndds = DeseqDataSet(counts=counts_df, metadata=metadata, design=\"~condition\")\ndds.deseq2()\n\ntreatments = [\"treatment_A\", \"treatment_B\", \"treatment_C\"]\nall_results = {}\n\nfor treatment in treatments:\n    ds = DeseqStats(dds, contrast=[\"condition\", treatment, \"control\"])\n    ds.summary()\n    all_results[treatment] = ds.results_df\n\n    sig_count = len(ds.results_df[ds.results_df.padj \u003C 0.05])\n    print(f\"{treatment}: {sig_count} significant genes\")\n```\n\n### Accounting for Batch Effects\n\nControl for technical variation:\n\n```python\n# Include batch in design\ndds = DeseqDataSet(counts=counts_df, metadata=metadata, design=\"~batch + condition\")\ndds.deseq2()\n\n# Test condition while controlling for batch\nds = DeseqStats(dds, contrast=[\"condition\", \"treated\", \"control\"])\nds.summary()\n```\n\n### Continuous Covariates\n\nInclude continuous variables like age or dosage:\n\n```python\n# Ensure continuous variable is numeric\nmetadata[\"age\"] = pd.to_numeric(metadata[\"age\"])\n\ndds = DeseqDataSet(counts=counts_df, metadata=metadata, design=\"~age + condition\")\ndds.deseq2()\n\nds = DeseqStats(dds, contrast=[\"condition\", \"treated\", \"control\"])\nds.summary()\n```\n\n## Using the Analysis Script\n\nThis skill includes a complete command-line script for standard analyses:\n\n```bash\n# Basic usage\npython scripts\u002Frun_deseq2_analysis.py \\\n  --counts counts.csv \\\n  --metadata metadata.csv \\\n  --design \"~condition\" \\\n  --contrast condition treated control \\\n  --output results\u002F\n\n# With additional options\npython scripts\u002Frun_deseq2_analysis.py \\\n  --counts counts.csv \\\n  --metadata metadata.csv \\\n  --design \"~batch + condition\" \\\n  --contrast condition treated control \\\n  --output results\u002F \\\n  --min-counts 10 \\\n  --alpha 0.05 \\\n  --n-cpus 4 \\\n  --plots\n```\n\n**Script features:**\n- Automatic data loading and validation\n- Gene and sample filtering\n- Complete DESeq2 pipeline execution\n- Statistical testing with customizable parameters\n- Result export (CSV, pickle)\n- Optional visualization (volcano and MA plots)\n\nRefer users to `scripts\u002Frun_deseq2_analysis.py` when they need a standalone analysis tool or want to batch process multiple datasets.\n\n## Result Interpretation\n\n### Identifying Significant Genes\n\n```python\n# Filter by adjusted p-value\nsignificant = ds.results_df[ds.results_df.padj \u003C 0.05]\n\n# Filter by both significance and effect size\nsig_and_large = ds.results_df[\n    (ds.results_df.padj \u003C 0.05) &\n    (abs(ds.results_df.log2FoldChange) > 1)\n]\n\n# Separate up- and down-regulated\nupregulated = significant[significant.log2FoldChange > 0]\ndownregulated = significant[significant.log2FoldChange \u003C 0]\n\nprint(f\"Upregulated: {len(upregulated)}\")\nprint(f\"Downregulated: {len(downregulated)}\")\n```\n\n### Ranking and Sorting\n\n```python\n# Sort by adjusted p-value\ntop_by_padj = ds.results_df.sort_values(\"padj\").head(20)\n\n# Sort by absolute fold change (use shrunk values)\nds.lfc_shrink()\nds.results_df[\"abs_lfc\"] = abs(ds.results_df.log2FoldChange)\ntop_by_lfc = ds.results_df.sort_values(\"abs_lfc\", ascending=False).head(20)\n\n# Sort by a combined metric\nds.results_df[\"score\"] = -np.log10(ds.results_df.padj) * abs(ds.results_df.log2FoldChange)\ntop_combined = ds.results_df.sort_values(\"score\", ascending=False).head(20)\n```\n\n### Quality Metrics\n\n```python\n# Check normalization (size factors should be close to 1)\nprint(\"Size factors:\", dds.obsm[\"size_factors\"])\n\n# Examine dispersion estimates\nimport matplotlib.pyplot as plt\nplt.hist(dds.varm[\"dispersions\"], bins=50)\nplt.xlabel(\"Dispersion\")\nplt.ylabel(\"Frequency\")\nplt.title(\"Dispersion Distribution\")\nplt.show()\n\n# Check p-value distribution (should be mostly flat with peak near 0)\nplt.hist(ds.results_df.pvalue.dropna(), bins=50)\nplt.xlabel(\"P-value\")\nplt.ylabel(\"Frequency\")\nplt.title(\"P-value Distribution\")\nplt.show()\n```\n\n## Visualization Guidelines\n\n### Volcano Plot\n\nVisualize significance vs effect size:\n\n```python\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nresults = ds.results_df.copy()\nresults[\"-log10(padj)\"] = -np.log10(results.padj)\n\nplt.figure(figsize=(10, 6))\nsignificant = results.padj \u003C 0.05\n\nplt.scatter(\n    results.loc[~significant, \"log2FoldChange\"],\n    results.loc[~significant, \"-log10(padj)\"],\n    alpha=0.3, s=10, c='gray', label='Not significant'\n)\nplt.scatter(\n    results.loc[significant, \"log2FoldChange\"],\n    results.loc[significant, \"-log10(padj)\"],\n    alpha=0.6, s=10, c='red', label='padj \u003C 0.05'\n)\n\nplt.axhline(-np.log10(0.05), color='blue', linestyle='--', alpha=0.5)\nplt.xlabel(\"Log2 Fold Change\")\nplt.ylabel(\"-Log10(Adjusted P-value)\")\nplt.title(\"Volcano Plot\")\nplt.legend()\nplt.savefig(\"volcano_plot.png\", dpi=300)\n```\n\n### MA Plot\n\nShow fold change vs mean expression:\n\n```python\nplt.figure(figsize=(10, 6))\n\nplt.scatter(\n    np.log10(results.loc[~significant, \"baseMean\"] + 1),\n    results.loc[~significant, \"log2FoldChange\"],\n    alpha=0.3, s=10, c='gray'\n)\nplt.scatter(\n    np.log10(results.loc[significant, \"baseMean\"] + 1),\n    results.loc[significant, \"log2FoldChange\"],\n    alpha=0.6, s=10, c='red'\n)\n\nplt.axhline(0, color='blue', linestyle='--', alpha=0.5)\nplt.xlabel(\"Log10(Base Mean + 1)\")\nplt.ylabel(\"Log2 Fold Change\")\nplt.title(\"MA Plot\")\nplt.savefig(\"ma_plot.png\", dpi=300)\n```\n\n## Troubleshooting Common Issues\n\n### Data Format Problems\n\n**Issue:** \"Index mismatch between counts and metadata\"\n\n**Solution:** Ensure sample names match exactly\n```python\nprint(\"Counts samples:\", counts_df.index.tolist())\nprint(\"Metadata samples:\", metadata.index.tolist())\n\n# Take intersection if needed\ncommon = counts_df.index.intersection(metadata.index)\ncounts_df = counts_df.loc[common]\nmetadata = metadata.loc[common]\n```\n\n**Issue:** \"All genes have zero counts\"\n\n**Solution:** Check if data needs transposition\n```python\nprint(f\"Counts shape: {counts_df.shape}\")\n# If genes > samples, transpose is needed\nif counts_df.shape[1] \u003C counts_df.shape[0]:\n    counts_df = counts_df.T\n```\n\n### Design Matrix Issues\n\n**Issue:** \"Design matrix is not full rank\"\n\n**Cause:** Confounded variables (e.g., all treated samples in one batch)\n\n**Solution:** Remove confounded variable or add interaction term\n```python\n# Check confounding\nprint(pd.crosstab(metadata.condition, metadata.batch))\n\n# Either simplify design or add interaction\ndesign = \"~condition\"  # Remove batch\n# OR\ndesign = \"~condition + batch + condition:batch\"  # Model interaction\n```\n\n### No Significant Genes\n\n**Diagnostics:**\n```python\n# Check dispersion distribution\nplt.hist(dds.varm[\"dispersions\"], bins=50)\nplt.show()\n\n# Check size factors\nprint(dds.obsm[\"size_factors\"])\n\n# Look at top genes by raw p-value\nprint(ds.results_df.nsmallest(20, \"pvalue\"))\n```\n\n**Possible causes:**\n- Small effect sizes\n- High biological variability\n- Insufficient sample size\n- Technical issues (batch effects, outliers)\n\n## Reference Documentation\n\nFor comprehensive details beyond this workflow-oriented guide:\n\n- **API Reference** (`references\u002Fapi_reference.md`): Complete documentation of PyDESeq2 classes, methods, and data structures. Use when needing detailed parameter information or understanding object attributes.\n\n- **Workflow Guide** (`references\u002Fworkflow_guide.md`): In-depth guide covering complete analysis workflows, data loading patterns, multi-factor designs, troubleshooting, and best practices. Use when handling complex experimental designs or encountering issues.\n\nLoad these references into context when users need:\n- Detailed API documentation: `Read references\u002Fapi_reference.md`\n- Comprehensive workflow examples: `Read references\u002Fworkflow_guide.md`\n- Troubleshooting guidance: `Read references\u002Fworkflow_guide.md` (see Troubleshooting section)\n\n## Key Reminders\n\n1. **Data orientation matters:** Count matrices typically load as genes × samples but need to be samples × genes. Always transpose with `.T` if needed.\n\n2. **Sample filtering:** Remove samples with missing metadata before analysis to avoid errors.\n\n3. **Gene filtering:** Filter low-count genes (e.g., \u003C 10 total reads) to improve power and reduce computational time.\n\n4. **Design formula order:** Put adjustment variables before the variable of interest (e.g., `\"~batch + condition\"` not `\"~condition + batch\"`).\n\n5. **LFC shrinkage timing:** Apply shrinkage after statistical testing and only for visualization\u002Franking purposes. P-values remain based on unshrunken estimates.\n\n6. **Result interpretation:** Use `padj \u003C 0.05` for significance, not raw p-values. The Benjamini-Hochberg procedure controls false discovery rate.\n\n7. **Contrast specification:** The format is `[variable, test_level, reference_level]` where test_level is compared against reference_level.\n\n8. **Save intermediate objects:** Use pickle to save DeseqDataSet objects for later use or additional analyses without re-running the expensive fitting step.\n\n## Installation and Requirements\n\n```bash\nuv pip install pydeseq2\n```\n\n**System requirements:**\n- Python 3.10-3.11\n- pandas 1.4.3+\n- numpy 1.23.0+\n- scipy 1.11.0+\n- scikit-learn 1.1.1+\n- anndata 0.8.0+\n\n**Optional for visualization:**\n- matplotlib\n- seaborn\n\n## Additional Resources\n\n- **Official Documentation:** https:\u002F\u002Fpydeseq2.readthedocs.io\n- **GitHub Repository:** https:\u002F\u002Fgithub.com\u002Fowkin\u002FPyDESeq2\n- **Publication:** Muzellec et al. (2023) Bioinformatics, DOI: 10.1093\u002Fbioinformatics\u002Fbtad547\n- **Original DESeq2 (R):** Love et al. (2014) Genome Biology, DOI: 10.1186\u002Fs13059-014-0550-8\n","# PyDESeq2\n\n## Overview\n\nPyDESeq2 is a Python implementation of DESeq2 for differential expression analysis with bulk RNA-seq data. Design and execute complete workflows from data loading through result interpretation, including single-factor and multi-factor designs, Wald tests with multiple testing correction, optional apeGLM shrinkage, and integration with pandas and AnnData.\n\n## When to Use This Skill\n\nThis skill should be used when:\n- Analyzing bulk RNA-seq count data for differential expression\n- Comparing gene expression between experimental conditions (e.g., treated vs control)\n- Performing multi-factor designs accounting for batch effects or covariates\n- Converting R-based DESeq2 workflows to Python\n- Integrating differential expression analysis into Python-based pipelines\n- Users mention \"DESeq2\", \"differential expression\", \"RNA-seq analysis\", or \"PyDESeq2\"\n\n## Quick Start Workflow\n\nFor users who want to perform a standard differential expression analysis:\n\n```python\nimport pandas as pd\nfrom pydeseq2.dds import DeseqDataSet\nfrom pydeseq2.ds import DeseqStats\n\n# 1. Load data\ncounts_df = pd.read_csv(\"counts.csv\", index_col=0).T  # Transpose to samples × genes\nmetadata = pd.read_csv(\"metadata.csv\", index_col=0)\n\n# 2. Filter low-count genes\ngenes_to_keep = counts_df.columns[counts_df.sum(axis=0) >= 10]\ncounts_df = counts_df[genes_to_keep]\n\n# 3. Initialize and fit DESeq2\ndds = DeseqDataSet(\n    counts=counts_df,\n    metadata=metadata,\n    design=\"~condition\",\n    refit_cooks=True\n)\ndds.deseq2()\n\n# 4. Perform statistical testing\nds = DeseqStats(dds, contrast=[\"condition\", \"treated\", \"control\"])\nds.summary()\n\n# 5. Access results\nresults = ds.results_df\nsignificant = results[results.padj \u003C 0.05]\nprint(f\"Found {len(significant)} significant genes\")\n```\n\n## Core Workflow Steps\n\n### Step 1: Data Preparation\n\n**Input requirements:**\n- **Count matrix:** Samples × genes DataFrame with non-negative integer read counts\n- **Metadata:** Samples × variables DataFrame with experimental factors\n\n**Common data loading patterns:**\n\n```python\n# From CSV (typical format: genes × samples, needs transpose)\ncounts_df = pd.read_csv(\"counts.csv\", index_col=0).T\nmetadata = pd.read_csv(\"metadata.csv\", index_col=0)\n\n# From TSV\ncounts_df = pd.read_csv(\"counts.tsv\", sep=\"\\t\", index_col=0).T\n\n# From AnnData\nimport anndata as ad\nadata = ad.read_h5ad(\"data.h5ad\")\ncounts_df = pd.DataFrame(adata.X, index=adata.obs_names, columns=adata.var_names)\nmetadata = adata.obs\n```\n\n**Data filtering:**\n\n```python\n# Remove low-count genes\ngenes_to_keep = counts_df.columns[counts_df.sum(axis=0) >= 10]\ncounts_df = counts_df[genes_to_keep]\n\n# Remove samples with missing metadata\nsamples_to_keep = ~metadata.condition.isna()\ncounts_df = counts_df.loc[samples_to_keep]\nmetadata = metadata.loc[samples_to_keep]\n```\n\n### Step 2: Design Specification\n\nThe design formula specifies how gene expression is modeled.\n\n**Single-factor designs:**\n```python\ndesign = \"~condition\"  # Simple two-group comparison\n```\n\n**Multi-factor designs:**\n```python\ndesign = \"~batch + condition\"  # Control for batch effects\ndesign = \"~age + condition\"     # Include continuous covariate\ndesign = \"~group + condition + group:condition\"  # Interaction effects\n```\n\n**Design formula guidelines:**\n- Use Wilkinson formula notation (R-style)\n- Put adjustment variables (e.g., batch) before the main variable of interest\n- Ensure variables exist as columns in the metadata DataFrame\n- Use appropriate data types (categorical for discrete variables)\n\n### Step 3: DESeq2 Fitting\n\nInitialize the DeseqDataSet and run the complete pipeline:\n\n```python\nfrom pydeseq2.dds import DeseqDataSet\n\ndds = DeseqDataSet(\n    counts=counts_df,\n    metadata=metadata,\n    design=\"~condition\",\n    refit_cooks=True,  # Refit after removing outliers\n    n_cpus=1           # Parallel processing (adjust as needed)\n)\n\n# Run the complete DESeq2 pipeline\ndds.deseq2()\n```\n\n**What `deseq2()` does:**\n1. Computes size factors (normalization)\n2. Fits genewise dispersions\n3. Fits dispersion trend curve\n4. Computes dispersion priors\n5. Fits MAP dispersions (shrinkage)\n6. Fits log fold changes\n7. Calculates Cook's distances (outlier detection)\n8. Refits if outliers detected (optional)\n\n### Step 4: Statistical Testing\n\nPerform Wald tests to identify differentially expressed genes:\n\n```python\nfrom pydeseq2.ds import DeseqStats\n\nds = DeseqStats(\n    dds,\n    contrast=[\"condition\", \"treated\", \"control\"],  # Test treated vs control\n    alpha=0.05,                # Significance threshold\n    cooks_filter=True,         # Filter outliers\n    independent_filter=True    # Filter low-power tests\n)\n\nds.summary()\n```\n\n**Contrast specification:**\n- Format: `[variable, test_level, reference_level]`\n- Example: `[\"condition\", \"treated\", \"control\"]` tests treated vs control\n- If `None`, uses the last coefficient in the design\n\n**Result DataFrame columns:**\n- `baseMean`: Mean normalized count across samples\n- `log2FoldChange`: Log2 fold change between conditions\n- `lfcSE`: Standard error of LFC\n- `stat`: Wald test statistic\n- `pvalue`: Raw p-value\n- `padj`: Adjusted p-value (FDR-corrected via Benjamini-Hochberg)\n\n### Step 5: Optional LFC Shrinkage\n\nApply shrinkage to reduce noise in fold change estimates:\n\n```python\nds.lfc_shrink()  # Applies apeGLM shrinkage\n```\n\n**When to use LFC shrinkage:**\n- For visualization (volcano plots, heatmaps)\n- For ranking genes by effect size\n- When prioritizing genes for follow-up experiments\n\n**Important:** Shrinkage affects only the log2FoldChange values, not the statistical test results (p-values remain unchanged). Use shrunk values for visualization but report unshrunken p-values for significance.\n\n### Step 6: Result Export\n\nSave results and intermediate objects:\n\n```python\nimport pickle\n\n# Export results as CSV\nds.results_df.to_csv(\"deseq2_results.csv\")\n\n# Save significant genes only\nsignificant = ds.results_df[ds.results_df.padj \u003C 0.05]\nsignificant.to_csv(\"significant_genes.csv\")\n\n# Save DeseqDataSet for later use\nwith open(\"dds_result.pkl\", \"wb\") as f:\n    pickle.dump(dds.to_picklable_anndata(), f)\n```\n\n## Common Analysis Patterns\n\n### Two-Group Comparison\n\nStandard case-control comparison:\n\n```python\ndds = DeseqDataSet(counts=counts_df, metadata=metadata, design=\"~condition\")\ndds.deseq2()\n\nds = DeseqStats(dds, contrast=[\"condition\", \"treated\", \"control\"])\nds.summary()\n\nresults = ds.results_df\nsignificant = results[results.padj \u003C 0.05]\n```\n\n### Multiple Comparisons\n\nTesting multiple treatment groups against control:\n\n```python\ndds = DeseqDataSet(counts=counts_df, metadata=metadata, design=\"~condition\")\ndds.deseq2()\n\ntreatments = [\"treatment_A\", \"treatment_B\", \"treatment_C\"]\nall_results = {}\n\nfor treatment in treatments:\n    ds = DeseqStats(dds, contrast=[\"condition\", treatment, \"control\"])\n    ds.summary()\n    all_results[treatment] = ds.results_df\n\n    sig_count = len(ds.results_df[ds.results_df.padj \u003C 0.05])\n    print(f\"{treatment}: {sig_count} significant genes\")\n```\n\n### Accounting for Batch Effects\n\nControl for technical variation:\n\n```python\n# Include batch in design\ndds = DeseqDataSet(counts=counts_df, metadata=metadata, design=\"~batch + condition\")\ndds.deseq2()\n\n# Test condition while controlling for batch\nds = DeseqStats(dds, contrast=[\"condition\", \"treated\", \"control\"])\nds.summary()\n```\n\n### Continuous Covariates\n\nInclude continuous variables like age or dosage:\n\n```python\n# Ensure continuous variable is numeric\nmetadata[\"age\"] = pd.to_numeric(metadata[\"age\"])\n\ndds = DeseqDataSet(counts=counts_df, metadata=metadata, design=\"~age + condition\")\ndds.deseq2()\n\nds = DeseqStats(dds, contrast=[\"condition\", \"treated\", \"control\"])\nds.summary()\n```\n\n## Using the Analysis Script\n\nThis skill includes a complete command-line script for standard analyses:\n\n```bash\n# Basic usage\npython scripts\u002Frun_deseq2_analysis.py \\\n  --counts counts.csv \\\n  --metadata metadata.csv \\\n  --design \"~condition\" \\\n  --contrast condition treated control \\\n  --output results\u002F\n\n# With additional options\npython scripts\u002Frun_deseq2_analysis.py \\\n  --counts counts.csv \\\n  --metadata metadata.csv \\\n  --design \"~batch + condition\" \\\n  --contrast condition treated control \\\n  --output results\u002F \\\n  --min-counts 10 \\\n  --alpha 0.05 \\\n  --n-cpus 4 \\\n  --plots\n```\n\n**Script features:**\n- Automatic data loading and validation\n- Gene and sample filtering\n- Complete DESeq2 pipeline execution\n- Statistical testing with customizable parameters\n- Result export (CSV, pickle)\n- Optional visualization (volcano and MA plots)\n\nRefer users to `scripts\u002Frun_deseq2_analysis.py` when they need a standalone analysis tool or want to batch process multiple datasets.\n\n## Result Interpretation\n\n### Identifying Significant Genes\n\n```python\n# Filter by adjusted p-value\nsignificant = ds.results_df[ds.results_df.padj \u003C 0.05]\n\n# Filter by both significance and effect size\nsig_and_large = ds.results_df[\n    (ds.results_df.padj \u003C 0.05) &\n    (abs(ds.results_df.log2FoldChange) > 1)\n]\n\n# Separate up- and down-regulated\nupregulated = significant[significant.log2FoldChange > 0]\ndownregulated = significant[significant.log2FoldChange \u003C 0]\n\nprint(f\"Upregulated: {len(upregulated)}\")\nprint(f\"Downregulated: {len(downregulated)}\")\n```\n\n### Ranking and Sorting\n\n```python\n# Sort by adjusted p-value\ntop_by_padj = ds.results_df.sort_values(\"padj\").head(20)\n\n# Sort by absolute fold change (use shrunk values)\nds.lfc_shrink()\nds.results_df[\"abs_lfc\"] = abs(ds.results_df.log2FoldChange)\ntop_by_lfc = ds.results_df.sort_values(\"abs_lfc\", ascending=False).head(20)\n\n# Sort by a combined metric\nds.results_df[\"score\"] = -np.log10(ds.results_df.padj) * abs(ds.results_df.log2FoldChange)\ntop_combined = ds.results_df.sort_values(\"score\", ascending=False).head(20)\n```\n\n### Quality Metrics\n\n```python\n# Check normalization (size factors should be close to 1)\nprint(\"Size factors:\", dds.obsm[\"size_factors\"])\n\n# Examine dispersion estimates\nimport matplotlib.pyplot as plt\nplt.hist(dds.varm[\"dispersions\"], bins=50)\nplt.xlabel(\"Dispersion\")\nplt.ylabel(\"Frequency\")\nplt.title(\"Dispersion Distribution\")\nplt.show()\n\n# Check p-value distribution (should be mostly flat with peak near 0)\nplt.hist(ds.results_df.pvalue.dropna(), bins=50)\nplt.xlabel(\"P-value\")\nplt.ylabel(\"Frequency\")\nplt.title(\"P-value Distribution\")\nplt.show()\n```\n\n## Visualization Guidelines\n\n### Volcano Plot\n\nVisualize significance vs effect size:\n\n```python\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nresults = ds.results_df.copy()\nresults[\"-log10(padj)\"] = -np.log10(results.padj)\n\nplt.figure(figsize=(10, 6))\nsignificant = results.padj \u003C 0.05\n\nplt.scatter(\n    results.loc[~significant, \"log2FoldChange\"],\n    results.loc[~significant, \"-log10(padj)\"],\n    alpha=0.3, s=10, c='gray', label='Not significant'\n)\nplt.scatter(\n    results.loc[significant, \"log2FoldChange\"],\n    results.loc[significant, \"-log10(padj)\"],\n    alpha=0.6, s=10, c='red', label='padj \u003C 0.05'\n)\n\nplt.axhline(-np.log10(0.05), color='blue', linestyle='--', alpha=0.5)\nplt.xlabel(\"Log2 Fold Change\")\nplt.ylabel(\"-Log10(Adjusted P-value)\")\nplt.title(\"Volcano Plot\")\nplt.legend()\nplt.savefig(\"volcano_plot.png\", dpi=300)\n```\n\n### MA Plot\n\nShow fold change vs mean expression:\n\n```python\nplt.figure(figsize=(10, 6))\n\nplt.scatter(\n    np.log10(results.loc[~significant, \"baseMean\"] + 1),\n    results.loc[~significant, \"log2FoldChange\"],\n    alpha=0.3, s=10, c='gray'\n)\nplt.scatter(\n    np.log10(results.loc[significant, \"baseMean\"] + 1),\n    results.loc[significant, \"log2FoldChange\"],\n    alpha=0.6, s=10, c='red'\n)\n\nplt.axhline(0, color='blue', linestyle='--', alpha=0.5)\nplt.xlabel(\"Log10(Base Mean + 1)\")\nplt.ylabel(\"Log2 Fold Change\")\nplt.title(\"MA Plot\")\nplt.savefig(\"ma_plot.png\", dpi=300)\n```\n\n## Troubleshooting Common Issues\n\n### Data Format Problems\n\n**Issue:** \"Index mismatch between counts and metadata\"\n\n**Solution:** Ensure sample names match exactly\n```python\nprint(\"Counts samples:\", counts_df.index.tolist())\nprint(\"Metadata samples:\", metadata.index.tolist())\n\n# Take intersection if needed\ncommon = counts_df.index.intersection(metadata.index)\ncounts_df = counts_df.loc[common]\nmetadata = metadata.loc[common]\n```\n\n**Issue:** \"All genes have zero counts\"\n\n**Solution:** Check if data needs transposition\n```python\nprint(f\"Counts shape: {counts_df.shape}\")\n# If genes > samples, transpose is needed\nif counts_df.shape[1] \u003C counts_df.shape[0]:\n    counts_df = counts_df.T\n```\n\n### Design Matrix Issues\n\n**Issue:** \"Design matrix is not full rank\"\n\n**Cause:** Confounded variables (e.g., all treated samples in one batch)\n\n**Solution:** Remove confounded variable or add interaction term\n```python\n# Check confounding\nprint(pd.crosstab(metadata.condition, metadata.batch))\n\n# Either simplify design or add interaction\ndesign = \"~condition\"  # Remove batch\n# OR\ndesign = \"~condition + batch + condition:batch\"  # Model interaction\n```\n\n### No Significant Genes\n\n**Diagnostics:**\n```python\n# Check dispersion distribution\nplt.hist(dds.varm[\"dispersions\"], bins=50)\nplt.show()\n\n# Check size factors\nprint(dds.obsm[\"size_factors\"])\n\n# Look at top genes by raw p-value\nprint(ds.results_df.nsmallest(20, \"pvalue\"))\n```\n\n**Possible causes:**\n- Small effect sizes\n- High biological variability\n- Insufficient sample size\n- Technical issues (batch effects, outliers)\n\n## Reference Documentation\n\nFor comprehensive details beyond this workflow-oriented guide:\n\n- **API Reference** (`references\u002Fapi_reference.md`): Complete documentation of PyDESeq2 classes, methods, and data structures. Use when needing detailed parameter information or understanding object attributes.\n\n- **Workflow Guide** (`references\u002Fworkflow_guide.md`): In-depth guide covering complete analysis workflows, data loading patterns, multi-factor designs, troubleshooting, and best practices. Use when handling complex experimental designs or encountering issues.\n\nLoad these references into context when users need:\n- Detailed API documentation: `Read references\u002Fapi_reference.md`\n- Comprehensive workflow examples: `Read references\u002Fworkflow_guide.md`\n- Troubleshooting guidance: `Read references\u002Fworkflow_guide.md` (see Troubleshooting section)\n\n## Key Reminders\n\n1. **Data orientation matters:** Count matrices typically load as genes × samples but need to be samples × genes. Always transpose with `.T` if needed.\n\n2. **Sample filtering:** Remove samples with missing metadata before analysis to avoid errors.\n\n3. **Gene filtering:** Filter low-count genes (e.g., \u003C 10 total reads) to improve power and reduce computational time.\n\n4. **Design formula order:** Put adjustment variables before the variable of interest (e.g., `\"~batch + condition\"` not `\"~condition + batch\"`).\n\n5. **LFC shrinkage timing:** Apply shrinkage after statistical testing and only for visualization\u002Franking purposes. P-values remain based on unshrunken estimates.\n\n6. **Result interpretation:** Use `padj \u003C 0.05` for significance, not raw p-values. The Benjamini-Hochberg procedure controls false discovery rate.\n\n7. **Contrast specification:** The format is `[variable, test_level, reference_level]` where test_level is compared against reference_level.\n\n8. **Save intermediate objects:** Use pickle to save DeseqDataSet objects for later use or additional analyses without re-running the expensive fitting step.\n\n## Installation and Requirements\n\n```bash\nuv pip install pydeseq2\n```\n\n**System requirements:**\n- Python 3.10-3.11\n- pandas 1.4.3+\n- numpy 1.23.0+\n- scipy 1.11.0+\n- scikit-learn 1.1.1+\n- anndata 0.8.0+\n\n**Optional for visualization:**\n- matplotlib\n- seaborn\n\n## Additional Resources\n\n- **Official Documentation:** https:\u002F\u002Fpydeseq2.readthedocs.io\n- **GitHub Repository:** https:\u002F\u002Fgithub.com\u002Fowkin\u002FPyDESeq2\n- **Publication:** Muzellec et al. (2023) Bioinformatics, DOI: 10.1093\u002Fbioinformatics\u002Fbtad547\n- **Original DESeq2 (R):** Love et al. (2014) Genome Biology, DOI: 10.1186\u002Fs13059-014-0550-8\n",{"name":5,"description":7},"main","f2ec4b3b9133d34eeaf9b38e4b0a97e8e5705a7f","benchmarks\u002Ffinal\u002Fskills\u002Fasset1__Microck--claude-scientific-skills\u002Fscientific-skills\u002Fpydeseq2",0,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard","https:\u002F\u002Fgithub.com\u002FJSGforever","2026-08-29 18:27:56",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add JSGforever\u002Fskillguard --skill pydeseq2",{"tool":51,"command":52},"bunx","bunx skills add JSGforever\u002Fskillguard --skill pydeseq2",{"tool":54,"command":55},"pnpm","pnpm dlx skills add JSGforever\u002Fskillguard --skill pydeseq2","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__Microck--claude-scientific-skills\u002Fscientific-skills\u002Fpydeseq2\u002FSKILL.md",true,[59,65,69],{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fapi_reference.md","REFERENCE","参考文档",7162,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__Microck--claude-scientific-skills\u002Fscientific-skills\u002Fpydeseq2\u002Freferences\u002Fapi_reference.md",{"path":66,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fworkflow_guide.md",13026,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__Microck--claude-scientific-skills\u002Fscientific-skills\u002Fpydeseq2\u002Freferences\u002Fworkflow_guide.md",{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"scripts\u002Frun_deseq2_analysis.py","SCRIPT","脚本",11887,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__Microck--claude-scientific-skills\u002Fscientific-skills\u002Fpydeseq2\u002Fscripts\u002Frun_deseq2_analysis.py",[76,108,124,151,173,194],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":87,"publishedAt":33},"01M71HY2SNXBA9Q00WZDTZQ31Z","skillguard-codex-scanner","Hybrid deterministic+LLM agent-skill security scanner. Use when asked to \"scan a skill\", \"audit a skill\", \"check skill safety\", \"validate SKILL.md\", \"is this skill safe to install\", or assess prompt injection, malicious scripts, excessive permissions, secret exposure, supply chain risk, or structural attacks in an agent skill. Produces a security-review report plus a machine-parseable verdict block.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fsrc\u002Fskillguard\u002Fstatic_scanner\u002Fskillguard-codex-scanner\u002FSKILL.md",[82],{"categoryNo":83,"categoryName":84,"taxonomyType":85,"taxonomyTypeDesc":86},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107],"scanner","skillguard codex scanner","skillguard","codex","chain","skill security","security-review","review report","structural","secret","prompt injection","security scanner","when","review","malicious","permissions","exposure","audit","scripts","safe",{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":112,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":120,"publishedAt":33},"01M71HY0SPKTT3S27BC2HPAC5M","data-exfiltrator","Analyzes data files","MIT","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Fsmoke-one-skill\u002Fasset1__cisco-ai-defense--data-exfiltrator\u002FSKILL.md",[115],{"categoryNo":116,"categoryName":117,"taxonomyType":118,"taxonomyTypeDesc":119},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[121,122,123],"data","data exfiltrator","files",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":33},"01M71HXVS9EMN44BGDW215FZ72","real-time-collaboration-engine","Build real-time collaborative editing with WebSockets, OT\u002FCRDT conflict resolution, and presence awareness. Implements cursor tracking, optimistic updates, and offline sync. Use for collaborative editors, whiteboards, video editing. Activate on \"real-time collaboration\", \"WebSocket sync\", \"multiplayer editing\", \"CRDT\", \"presence awareness\". NOT for simple chat, request-response APIs, or single-user apps.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--real-time-collaboration-engine\u002FSKILL.md",[],[131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150],"time","real time collaboration engine","real time collaboration","collaboration","engine","real time","Video","reliability","video editing","performance","conflict resolution","presence","access","apps","updates","Bash","activate","optimizer","react","streaming",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":160,"publishedAt":33},"01M71HXP6CTY4KFN0QVMMN0V7J","react-performance-optimizer","Optimize React apps for 60fps performance. Implements memoization, virtualization, code splitting, bundle optimization. Use for slow renders, large lists, bundle bloat. Activate on \"React performance\", \"slow render\", \"useMemo\", \"bundle size\", \"virtualization\". NOT for backend optimization, non-React frameworks, or premature optimization.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--react-performance-optimizer\u002FSKILL.md",[157],{"categoryNo":158,"categoryName":159,"taxonomyType":85,"taxonomyTypeDesc":86},"01JBSEEDCAT000000000000009","前端开发",[140,161,148,149,162,163,164,165,166,167,131,168,169,144,146,170,147,150,171,172],"react performance optimizer","react performance","performance optimizer","app","nextjs","expert","re","render","2025","code","router","strategies",{"skillNo":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":177,"categories":178,"keywords":180,"publishedAt":33},"01M71HXH7QXSQB4QTDZ7SP7YXQ","llm-streaming-response-handler","Build production LLM streaming UIs with Server-Sent Events, real-time token display, cancellation, error recovery. Handles OpenAI\u002FAnthropic\u002FClaude streaming APIs. Use for chatbots, AI assistants, real-time text generation. Activate on \"LLM streaming\", \"SSE\", \"token stream\", \"chat UI\", \"real-time AI\". NOT for batch processing, non-streaming APIs, or WebSocket bidirectional chat.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--llm-streaming-response-handler\u002FSKILL.md",[179],{"categoryNo":158,"categoryName":159,"taxonomyType":85,"taxonomyTypeDesc":86},[181,150,182,183,184,185,140,131,186,187,188,146,147,148,189,149,190,191,192,193],"llm streaming response handler","handler","error","processing","retry","chat ui","error recovery","critical","batch","display","text","server","read",{"skillNo":195,"name":196,"nameZh":6,"description":197,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":198,"categories":199,"keywords":207,"publishedAt":33},"01M71HXCB0E1YRKYW1Y8T0Y106","github-actions-pipeline-builder","Build production CI\u002FCD pipelines with GitHub Actions. Implements matrix builds, caching, deployments, testing, security scanning. Use for automated testing, deployments, release workflows. Activate on \"GitHub Actions\", \"CI\u002FCD\", \"workflow\", \"deployment pipeline\", \"automated testing\". NOT for Jenkins\u002FCircleCI, manual deployments, or non-GitHub repositories.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--github-actions-pipeline-builder\u002FSKILL.md",[200,203,206],{"categoryNo":201,"categoryName":202,"taxonomyType":85,"taxonomyTypeDesc":86},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":204,"categoryName":205,"taxonomyType":85,"taxonomyTypeDesc":86},"01JBSEEDCAT000000000000011","运维与部署",{"categoryNo":83,"categoryName":84,"taxonomyType":85,"taxonomyTypeDesc":86},[208,209,210,211,212,213,214,138,166,215,216,217,147,172,218,193,219,220,221,222],"github actions pipeline builder","actions","github actions","pipeline builder","github","builder","pipeline","testing","ci","workflows","run","release","write","edit","git"]