Skip to content
Back to skills

R Bio

ASecurity

R bioinformatics packages. Use for genomic data analysis, RNA-seq, phylogenetics, and Bioconductor workflows.

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

Works with

  • api

Security analysis

A100/100

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

Scanned June 4, 2026

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

Installs into .claude/skills of the current project.

Are you the author of R Bio?

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

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

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
description: R bioinformatics packages. Use for genomic data analysis, RNA-seq, phylogenetics, and Bioconductor workflows.
---

# R Bioinformatics Skill

## Sub-skills

| Sub-skill | Description |
|-----------|-------------|
| [r-bio-genomics](r-bio-genomics/SKILL.md) | GenomicRanges, Biostrings, annotation |
| [r-bio-rnaseq](r-bio-rnaseq/SKILL.md) | DESeq2, edgeR, differential expression |
| [r-bio-phylo](r-bio-phylo/SKILL.md) | ape, ggtree, phylogenetics |

Bioinformatics and biostatistics in R.

## Core Packages

| Package | Description |
|---------|-------------|
| **Bioconductor** ★ | Genomic data analysis platform |
| **GenomicRanges** | Genomic intervals |
| **Biostrings** | DNA/RNA/protein sequences |
| **SummarizedExperiment** | Assay data container |

## Genetics & Phylogenetics

| Package | Description |
|---------|-------------|
| **genetics** | Genetic data handling |
| **gap** | Genetic data analysis |
| **ape** | Phylogenetics and evolution |
| **ggtree** | Phylogenetic tree visualization |

## Mixed Effects (Biostatistics)

| Package | Description |
|---------|-------------|
| **lme4** ★ | Mixed-effects models |
| **nlme** | Mixed-effects with custom covariance |
| **glmmTMB** | Generalized mixed-effects |

## Visualization

| Package | Description |
|---------|-------------|
| **pheatmap** | Pretty heatmaps |
| **ComplexHeatmap** | Advanced heatmaps |
| **EnhancedVolcano** | Volcano plots |

## Quick Examples

```r
# Install Bioconductor
if (!require("BiocManager", quietly = TRUE))
    install.packages("BiocManager")
BiocManager::install()

# Install packages
BiocManager::install(c("DESeq2", "edgeR", "GenomicRanges"))

# GenomicRanges
library(GenomicRanges)
gr <- GRanges(
  seqnames = c("chr1", "chr1", "chr2"),
  ranges = IRanges(start = c(100, 200, 150), width = 50),
  strand = c("+", "-", "+"),
  score = c(1.5, 2.0, 3.0)
)
findOverlaps(gr1, gr2)
subsetByOverlaps(gr1, gr2)

# RNA-seq with DESeq2
library(DESeq2)
dds <- DESeqDataSetFromMatrix(
  countData = counts,
  colData = sample_info,
  design = ~ condition
)
dds <- DESeq(dds)
res <- results(dds, contrast = c("condition", "treated", "control"))
sig <- res[which(res$padj < 0.05), ]

# Volcano plot
library(EnhancedVolcano)
EnhancedVolcano(res,
  lab = rownames(res),
  x = 'log2FoldChange',
  y = 'pvalue',
  pCutoff = 0.05,
  FCcutoff = 1
)

# Heatmap
library(pheatmap)
pheatmap(mat,
  scale = "row",
  clustering_distance_rows = "correlation",
  annotation_col = annotation
)

# Phylogenetic analysis
library(ape)
tree <- read.tree("tree.nwk")
plot(tree)

# Gene annotation
library(org.Hs.eg.db)
mapIds(org.Hs.eg.db,
  keys = gene_ids,
  column = "SYMBOL",
  keytype = "ENSEMBL"
)
```

## Common Workflows

### RNA-seq Analysis
```r
# 1. Load counts
counts <- read.csv("counts.csv", row.names = 1)
coldata <- read.csv("samples.csv", row.names = 1)

# 2. Create DESeq object
dds <- DESeqDataSetFromMatrix(counts, coldata, ~ condition)

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

# 4. Run DESeq
dds <- DESeq(dds)

# 5. Get results
res <- results(dds, alpha = 0.05)
resOrdered <- res[order(res$padj),]

# 6. Visualize
plotMA(res)
plotPCA(vst(dds), intgroup = "condition")
```

### Gene Set Enrichment
```r
library(clusterProfiler)
library(org.Hs.eg.db)

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

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

## Resources

- Bioconductor: https://www.bioconductor.org/
- DESeq2: https://bioconductor.org/packages/DESeq2/
- edgeR: https://bioconductor.org/packages/edgeR/
- GenomicRanges: https://bioconductor.org/packages/GenomicRanges/

Files in this skill

  • SKILL.md3.7 KB
  • r-bio-genomics/Bioconductor/SKILL.md1.8 KB
  • r-bio-genomics/Biostrings/SKILL.md1.7 KB
  • r-bio-genomics/GenomicRanges/SKILL.md1.5 KB
  • r-bio-genomics/SKILL.md1.5 KB
  • r-bio-genomics/pheatmap/SKILL.md3.5 KB
  • r-bio-genomics/seqinr/SKILL.md1.7 KB
  • r-bio-phylo/SKILL.md1.3 KB
  • r-bio-phylo/ape/SKILL.md3 KB
  • r-bio-phylo/phangorn/SKILL.md1.8 KB
  • r-bio-rnaseq/DESeq2/SKILL.md2.7 KB
  • r-bio-rnaseq/SKILL.md1.5 KB
  • r-bio-rnaseq/edgeR/SKILL.md1.5 KB
  • r-bio-rnaseq/limma/SKILL.md1.8 KB
  • sub-skills/r-bio-genomics/sub-skills/Biostrings/SKILL.md1.7 KB
  • sub-skills/r-bio-genomics/sub-skills/GenomicRanges/SKILL.md1.5 KB
  • sub-skills/r-bio-rnaseq/sub-skills/edgeR/SKILL.md1.5 KB
  • sub-skills/r-bio-rnaseq/sub-skills/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.