GenomicRanges

GenomicRanges is a skill for Claude Code, Codex from LeoLin990405/r-analytics-skill. It costs 21 tokens per session (502 once invoked), scanned A, original, MIT.

Guidance for using R's GenomicRanges package to represent and manipulate genomic intervals, such as regions on chromosomes. It covers coordinates, strands, metadata, resizing, promoters, and overlaps.

In plain words
What is it for?
For analyzing chromosome coordinates, finding overlapping regions, extracting promoters and flanks, merging intervals, and performing genomic interval set operations in R.
Why use it?
It provides standard ways to query, transform, merge, and compare genomic regions without handling interval logic manually.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit For analyzing chromosome coordinates, finding overlapping regions, extracting promoters and flanks, merging intervals, and performing genomic interval set operations in R.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/leolin990405/r-analytics-skill/genomicranges
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add LeoLin990405/r-analytics-skill --skill genomicranges
Clone the repo
git clone --depth 1 https://github.com/LeoLin990405/r-analytics-skill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for GenomicRanges

README.md
[![agentmods](https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/genomicranges/github.svg)](https://agentmods.dev/skills/leolin990405/r-analytics-skill/genomicranges)
Your own site
<a href="https://agentmods.dev/skills/leolin990405/r-analytics-skill/genomicranges"><img src="https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/genomicranges/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for GenomicRanges

Your own site · 80×15
<a href="https://agentmods.dev/skills/leolin990405/r-analytics-skill/genomicranges"><img src="https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/genomicranges.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 502 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.00502
Opus 5.5 $0.00008 $0.00201
Sonnet 5.5 $0.00004 $0.00100
Haiku 4.5 $0.00002 $0.00050

Measured 1mo ago against content hash b3379721d024, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

GenomicRanges scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

sub-skills/r-bio/r-bio-genomics/GenomicRanges/SKILL.md · 108 lines

What it actually says

GenomicRanges Package

Representation and manipulation of genomic intervals.

GRanges Object

library(GenomicRanges)

# Create GRanges
gr <- GRanges(
  seqnames = c("chr1", "chr1", "chr2"),
  ranges = IRanges(start = c(100, 200, 150), end = c(150, 250, 200)),
  strand = c("+", "-", "+"),
  score = c(1.5, 2.0, 3.0)
)

# From data frame
gr <- makeGRangesFromDataFrame(df,
  seqnames.field = "chr",
  start.field = "start",
  end.field = "end"
)

Accessors

seqnames(gr)
start(gr)
end(gr)
width(gr)
strand(gr)
ranges(gr)
mcols(gr)  # Metadata columns
gr$score   # Access metadata

Subsetting

gr[1:5]
gr[seqnames(gr) == "chr1"]
gr[strand(gr) == "+"]
gr[gr$score > 2]

Operations

# Shift
shift(gr, 100)

# Resize
resize(gr, width = 500, fix = "start")

# Flank
flank(gr, width = 100, start = TRUE)

# Promoters
promoters(gr, upstream = 2000, downstream = 200)

# Reduce (merge overlapping)
reduce(gr)

# Disjoin
disjoin(gr)

Overlaps

# Find overlaps
hits <- findOverlaps(query, subject)

# Subset by overlap
subsetByOverlaps(gr1, gr2)

# Count overlaps
countOverlaps(gr1, gr2)

# Overlap operations
intersect(gr1, gr2)
union(gr1, gr2)
setdiff(gr1, gr2)

GRangesList

grl <- GRangesList(gene1 = gr1, gene2 = gr2)
grl[[1]]
unlist(grl)

Import/Export

library(rtracklayer)
gr <- import("file.bed")
export(gr, "output.bed")
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 108 lines · 21 tokens per session scan A b3379721d024

Subscribe to this mod's changes

GenomicRanges is a skill published in the GitHub repository LeoLin990405/r-analytics-skill (5 stars, last pushed 7mo ago), licensed MIT. It adds 21 tokens to every session and 502 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

foundations-mathematical-statistics

Choose and verify classical statistical tests from first principles — test-selection table with assumptions and exact/asymptotic null distributions, tie corrections, correct scipy.stats calls (binomtest, wilcoxon, mannwhitneyu, kruskal, kstest, chisquare ddof, chi2contingency, levene, ttestind equalvar=False), CI…

Pavel-Kravchenko/Bioinformatics · 131 tokens

bio-applied-molecular-evolution

Test Hardy-Weinberg equilibrium, simulate Wright-Fisher drift/selection, and compute dN/dS, Tajima's D, and Fst with NumPy/SciPy. Use for neutral theory, molecular clock divergence time, selection scans, or effective population size (Ne) questions.

Pavel-Kravchenko/Bioinformatics · 67 tokens

foundations-linear-algebra

Solve linear-algebra tasks in bioinformatics with numpy.linalg and scipy.linalg — linear systems (solve vs inv, lstsq, nnls), rank with tolerance, null spaces, eig vs eigh, SVD/PCA, QR, Cholesky, expm, condition numbers, generalized eigenproblems. Use when computing steady-state fluxes or conservation laws from a…

Pavel-Kravchenko/Bioinformatics · 136 tokens

bio-applied-bio-data-formats

Parse/write FASTA, FASTQ, SAM/BAM, VCF, BED, GFF/GTF with pysam and pure Python; decode SAM FLAG/CIGAR; reconcile 0-based vs 1-based coordinates. Use for custom format parsers or off-by-one coordinate bugs.

Pavel-Kravchenko/Bioinformatics · 67 tokens

bio-applied-cancer-transcriptomics

Classify tumor RNA-seq into subtypes (melanoma Tirosh/Harbst on TCGA-SKCM): log1p/z-score, PCA/t-SNE, hierarchical clustering, random forest, Kaplan-Meier survival. Use when subtyping cBioPortal expression data.

Pavel-Kravchenko/Bioinformatics · 67 tokens

bio-applied-data-harmonization

Harmonize multi-omics data (RNA-seq, proteomics, methylation, metabolomics) before integration — per-layer normalization, KNN/half-minimum missing-value imputation, PCA/PVCA batch-effect detection, and ComBat correction with pandas/scikit-learn. Use when prepping matrices for MOFA2/DIABLO/mixOmics, fixing missing…

Pavel-Kravchenko/Bioinformatics · 106 tokens