Deg Screening Analysis logo

Deg Screening Analysis

OrganizationPopular
aipoch
deg-screening-analysis

Use when screening differentially expressed genes from a bulk expression matrix between two user-specified groups, producing DEG tables, a volcano plot, and a clustered heatmap. Triggers include DEG analysis, volcano plot, clustered heatmap, limma-based two-group comparison, and case-vs-control screening. NOT for single-cell RNA-seq, multi-group contrasts, count-model workflows such as DESeq2/edgeR, or non-expression omics data.

Overview

Publisheraipoch
Repositorymedical-research-skills
Skill namedeg-screening-analysis
Stars
1.9K
Forks
175
Bundled files
13
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 13 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by aipoch on GitHub. Read the source before you install it.

Installation

Install the Deg Screening Analysis AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.

Use it in TypingMind

Enable Deg Screening Analysis in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Deg Screening Analysis on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Deg Screening Analysis is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Source: https://github.com/aipoch/medical-research-skills

Differential Expression Gene Screening Analysis (Volcano Plot & Clustered Heatmap)

When to Use

Use this skill when you need a reproducible two-group DEG workflow on a bulk expression matrix and want:

  • a full differential expression table
  • a filtered DEG table
  • a volcano plot
  • a clustered heatmap of top differential genes

Typical requests include:

  • compare case vs control samples with limma
  • screen upregulated and downregulated genes from a normalized expression matrix
  • generate a DEG table with volcano and heatmap outputs from bulk transcriptome data

Out of Scope

Do not use this skill for:

  • single-cell RNA-seq workflows
  • multi-group contrasts or factorial designs
  • count-model pipelines that require DESeq2 or edgeR
  • batch correction, covariate-adjusted models, or generalized design-matrix consulting
  • non-expression omics data

If the request falls outside this scope, stop and hand off to a more appropriate analysis workflow instead of forcing the data through this skill.

Practical Caveats

  • Diffanalysis.csv currently exports name, logFC, P.value, and P.adj.
  • --p_type controls both DEG screening semantics and volcano plot significance semantics.
  • plot/heatmap.pdf is generated only when at least two heatmap genes remain after ranking.
  • When the result is very sparse, prefer keeping tables and volcano output as the primary artifacts.

When to Read External Files

SituationFile to ReadPurpose
Need algorithm details or statistical assumptionsreferences/algorithm.mdlimma method, filtering logic, volcano/heatmap selection rules
Need to execute the workflowscripts/main.RGet the exact CLI entry and runnable command
Encounter an error code or bad input formatreferences/troubleshooting.mdMatch SKILL_* errors to causes and fixes
Need more CLI examplesreferences/cli-guide.mdSee complete command examples for common use cases
Need a minimal runnable exampletests/data/Use bundled test input files for validation

Usage

bash
Rscript scripts/main.R \
  --input_file tests/data/oa_exp.csv \
  --group_file tests/data/oa_group.csv \
  --case OA \
  --control control \
  --output_dir ./results

Arguments

ShortLongTypeDefaultRequiredDescription
-i--input_filecharacternoneyesExpression matrix CSV. First column is gene ID, remaining columns are sample values.
-g--group_filecharacternoneyesGroup annotation CSV. The script auto-detects sample and group columns, including files where the first column is row names or index.
-o--output_dircharacter./DEGnoOutput directory for tables, plots, and session metadata.
--casecharacternoneyesCase group name to compare. Matching is case-insensitive and trimmed.
--controlcharacternoneyesControl group name to compare. Matching is case-insensitive and trimmed.
-m--diff_methodcharacterlimmanoDifferential expression method. Current implementation supports limma only.
-p--p_thresholdnumeric0.05noSignificance threshold for DEG screening.
-f--logfc_thresholdnumeric1noAbsolute log fold change threshold for DEG screening.
--top_ninteger5noNumber of top upregulated and top downregulated genes considered for heatmap selection.
--p_typecharacterp.adjnoP-value field used for significance filtering and volcano significance coloring. Allowed values: p, p.adj.
--run_plotslogicalTRUEnoWhether to generate the volcano plot and clustered heatmap.
--timeout_secondsinteger3600noMaximum allowed runtime before timeout.
-s--seedinteger42noRandom seed recorded for reproducibility.

Output Files

FileFormatDescription
session_info.txttxtR session metadata and package versions used in the run.
data/DEG_list.rdardaSerialized R object containing method, groups, thresholds, the full differential table, and the screened DEG table.
table/Diffanalysis.csvcsvFull differential expression result table with columns name, logFC, P.value, and P.adj.
table/DEG.csvcsvSignificant DEG table only, containing screened genes with group labels up or down.
plot/volcano_plot.pdfpdfVolcano plot of differential genes using the p-value mode selected by --p_type.
plot/heatmap.pdfpdfClustered heatmap for selected top differential genes when at least two heatmap genes are available and plotting is enabled.

Workflow

Step 1: Validate Input

  • check that input files exist
  • load the expression matrix and ensure it is non-empty
  • auto-detect sample and group columns in the group file
  • verify sample IDs overlap correctly
  • verify case/control groups exist and each selected group has at least two samples

Step 2: Run Differential Expression

  • fit a two-group limma linear model
  • build the contrast case - control
  • compute empirical Bayes moderated statistics
  • export the full differential result table

Step 3: Screen Differentially Expressed Genes

  • apply p_threshold and logfc_threshold
  • use P.value or P.adj based on --p_type
  • label genes as up, down, or no
  • export DEG tables and serialized result objects

Step 4: Generate Volcano Plot & Clustered Heatmap

  • build plot/volcano_plot.pdf directly from the full differential table
  • select top up and top down genes for heatmap input
  • build plot/heatmap.pdf only when at least two heatmap genes are available

Error Handling

Error CodeMeaningTypical Fix
SKILL_FILE_NOT_FOUNDInput file path does not existVerify the file path and rerun
SKILL_PACKAGE_NOT_FOUNDRequired R package is missingInstall the missing package, then rerun
SKILL_MISSING_COLUMNSInput file does not contain the necessary columnsCheck CSV structure and column placement
SKILL_EMPTY_DATAInput file is empty or limma returns no analyzable rowsValidate input content or confirm the matrix contains enough valid values
SKILL_INVALID_PARAMETERArgument value or group selection is invalidCheck thresholds, --case, --control, and --p_type
SKILL_SAMPLE_MISMATCHExpression matrix samples and group file samples do not matchAlign sample IDs between the two input files
SKILL_TIMEOUTThe run exceeded the allowed runtimeIncrease --timeout_seconds or simplify the run

If you need step-by-step fixes, read references/troubleshooting.md.

Testing

bash
Rscript tests/run_tests.R

Minimal CLI smoke test:

bash
Rscript scripts/main.R \
  --input_file tests/data/oa_exp.csv \
  --group_file tests/data/oa_group.csv \
  --case OA \
  --control control \
  --output_dir ./tests_output

Expected outputs:

  • tests_output/table/Diffanalysis.csv
  • tests_output/table/DEG.csv
  • tests_output/plot/volcano_plot.pdf
  • tests_output/session_info.txt

tests_output/plot/heatmap.pdf is expected only when enough significant genes remain for heatmap rendering. Runs with fewer than two selected heatmap genes skip heatmap generation with a warning instead of failing. tests_output/table/DEG.csv may be empty when no genes pass the current thresholds.

Skill name: deg-screening-analysis

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Deg Screening Analysis AI skill do?

Use when screening differentially expressed genes from a bulk expression matrix between two user-specified groups, producing DEG tables, a volcano plot, and a clustered heatmap. Triggers include DEG analysis, volcano plot, clustered heatmap, limma-based two-group comparison, and case-vs-control screening. NOT for single-cell RNA-seq, multi-group contrasts, count-model workflows such as DESeq2/edgeR, or non-expression omics data.

Why use Deg Screening Analysis on TypingMind?

Because you install it once and use it with any model. Deg Screening Analysis is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Deg Screening Analysis in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/aipoch/medical-research-skills/tree/main/awesome-med-research-skills/Data%20Analysis/deg-screening-analysis. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Deg Screening Analysis?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Deg Screening Analysis?

As many as you like. As long as a model supports skills, you can use Deg Screening Analysis with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Deg Screening Analysis AI skill free?

Yes. It is published on GitHub by aipoch under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇