Skip to content
Back to skills

R Bio Rnaseq

ASecurity

R RNA-seq analysis with DESeq2, edgeR. Use for differential expression and gene set enrichment.

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 4, 2026
datagoexpress

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned June 4, 2026

npx -y skills add LeoLin990405/r-analytics-skill --skill r-bio-rnaseq --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of R Bio Rnaseq?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for R Bio Rnaseq
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leolin990405-r-bio-rnaseq/badge)](https://www.skillsdirectory.com/skills/leolin990405-r-bio-rnaseq)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: r-bio-rnaseq
description: R RNA-seq analysis with DESeq2, edgeR. Use for differential expression and gene set enrichment.
---

# R RNA-seq Analysis

Differential expression analysis.

## DESeq2

```r
library(DESeq2)

# Create object
dds <- DESeqDataSetFromMatrix(
  countData = counts,
  colData = sample_info,
  design = ~ condition
)

# Filter low counts
keep <- rowSums(counts(dds)) >= 10
dds <- dds[keep,]

# Run DESeq
dds <- DESeq(dds)

# Results
res <- results(dds, contrast = c("condition", "treated", "control"))
res <- results(dds, alpha = 0.05)
summary(res)

# Significant genes
sig <- res[which(res$padj < 0.05), ]
sig_up <- sig[sig$log2FoldChange > 1, ]
sig_down <- sig[sig$log2FoldChange < -1, ]

# Visualization
plotMA(res)
plotPCA(vst(dds), intgroup = "condition")
```

## edgeR

```r
library(edgeR)

# Create object
y <- DGEList(counts = counts, group = group)

# Filter
keep <- filterByExpr(y)
y <- y[keep, , keep.lib.sizes = FALSE]

# Normalize
y <- calcNormFactors(y)

# Dispersion
y <- estimateDisp(y)

# Test
et <- exactTest(y)
topTags(et)

# GLM approach
design <- model.matrix(~ group)
fit <- glmQLFit(y, design)
qlf <- glmQLFTest(fit, coef = 2)
topTags(qlf)
```

## Gene Set Enrichment

```r
library(clusterProfiler)

# GO enrichment
ego <- enrichGO(gene = sig_genes, OrgDb = org.Hs.eg.db, keyType = "ENSEMBL", ont = "BP")
dotplot(ego)

# KEGG
ekegg <- enrichKEGG(gene = entrez_ids, organism = "hsa")

# GSEA
gse <- gseGO(geneList = ranked_genes, OrgDb = org.Hs.eg.db, ont = "BP")
```

Files in this skill

  • DESeq2/SKILL.md2.7 KB
  • SKILL.md1.5 KB
  • edgeR/SKILL.md1.5 KB
  • limma/SKILL.md1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.