Skip to content
Back to skills

R Bio Genomics

ASecurity

R genomics with GenomicRanges, Biostrings. Use for genomic intervals, sequences, and annotations.

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

Works with

  • api

Security analysis

A100/100

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

Scanned June 4, 2026

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

Installs into .claude/skills of the current project.

Are you the author of R Bio Genomics?

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

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

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-genomics
description: R genomics with GenomicRanges, Biostrings. Use for genomic intervals, sequences, and annotations.
---

# R Genomics

Genomic data structures and operations.

## GenomicRanges

```r
library(GenomicRanges)

# Create GRanges
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)
)

# Accessors
seqnames(gr); start(gr); end(gr); width(gr); strand(gr)
mcols(gr)  # Metadata columns

# Operations
shift(gr, 10)
resize(gr, width = 100)
flank(gr, width = 50)
reduce(gr)  # Merge overlapping

# Overlaps
findOverlaps(gr1, gr2)
subsetByOverlaps(gr1, gr2)
countOverlaps(gr1, gr2)

# Set operations
union(gr1, gr2)
intersect(gr1, gr2)
setdiff(gr1, gr2)
```

## Biostrings

```r
library(Biostrings)

# DNA sequences
dna <- DNAStringSet(c("ATCGATCG", "GCTAGCTA"))
reverseComplement(dna)
translate(dna)

# Pattern matching
matchPattern("ATG", dna[[1]])
vmatchPattern("ATG", dna)
countPattern("ATG", dna)

# Alignment
pairwiseAlignment(pattern, subject, type = "global")
```

## Annotation

```r
library(org.Hs.eg.db)

# Map IDs
mapIds(org.Hs.eg.db, keys = genes, column = "SYMBOL", keytype = "ENSEMBL")

# Select
select(org.Hs.eg.db, keys = genes, columns = c("SYMBOL", "GENENAME"), keytype = "ENSEMBL")

# TxDb for transcripts
library(TxDb.Hsapiens.UCSC.hg38.knownGene)
txdb <- TxDb.Hsapiens.UCSC.hg38.knownGene
genes(txdb)
transcripts(txdb)
exons(txdb)
```

Files in this skill

  • Bioconductor/SKILL.md1.8 KB
  • Biostrings/SKILL.md1.7 KB
  • GenomicRanges/SKILL.md1.5 KB
  • SKILL.md1.5 KB
  • pheatmap/SKILL.md3.5 KB
  • seqinr/SKILL.md1.7 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.