AgentStack
SKILL verified MIT Self-run

R Bio Phylo

skill-leolin990405-r-analytics-skill-r-bio-phylo · by LeoLin990405

R phylogenetics with ape, ggtree. Use for phylogenetic trees and evolutionary analysis.

No reviews yet
0 installs
10 views
0.0% view→install

Install

$ agentstack add skill-leolin990405-r-analytics-skill-r-bio-phylo

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of R Bio Phylo? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

R Phylogenetics

Phylogenetic analysis and visualization.

ape

library(ape)

# Read tree
tree <- read.tree("tree.nwk")
tree <- read.nexus("tree.nex")

# Plot
plot(tree)
plot(tree, type = "fan")
plot(tree, type = "cladogram")

# Tree manipulation
drop.tip(tree, c("species1", "species2"))
root(tree, outgroup = "outgroup")
ladderize(tree)

# Distance
cophenetic(tree)
dist.nodes(tree)

# Bootstrap
boot.phylo(tree, data, FUN, B = 100)

ggtree

library(ggtree)

# Basic tree
ggtree(tree) + geom_tiplab()

# Circular
ggtree(tree, layout = "circular") + geom_tiplab()

# With data
ggtree(tree) %<+% metadata +
  geom_tippoint(aes(color = group)) +
  geom_tiplab(aes(label = name))

# Heatmap
gheatmap(ggtree(tree), data, width = 0.3)

# Annotations
ggtree(tree) +
  geom_hilight(node = 10, fill = "blue", alpha = 0.3) +
  geom_cladelabel(node = 10, label = "Clade A")

phangorn

library(phangorn)

# Parsimony
pars <- parsimony(tree, data)
tree_pars <- optim.parsimony(tree, data)

# Maximum likelihood
fit <- pml(tree, data)
fit <- optim.pml(fit, model = "GTR")

# Bootstrap
bs <- bootstrap.pml(fit, bs = 100)
plotBS(tree, bs)

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.