inst/docs/en/core-concepts.md

Core Concepts

This page explains the ideas behind Rclade so the function arguments make sense.

Taxonomy formats

Rclade reads the taxonomic assignment of each tip from its label. Several formats are supported:

| Format | Example label | Detected by | |--------|---------------|-------------| | GTDB | d__Bacteria;p__Firmicutes;c__Bacilli | prefix d__/p__/... | | Silva | Bacteria;Firmicutes;Bacilli | semicolon ranks, no codes | | NCBI | cellular organisms; Bacteria; Firmicutes | named ranks | | embedded (custom_rank) | k__Bacteria;p__Firmicutes | explicit codes | | custom_regex | Domain:Bacteria\|Phylum:Firmicutes | user regex |

Detection is automatic (taxonomy_format = "auto"). To force a format, set taxonomy_format explicitly. See detect_taxonomy_format and parse_taxonomy.

MRCA-based collapsing

"Collapsing" means replacing a whole clade with a single triangle whose width encodes the clade's age range. Rclade finds the MRCA (Most Recent Common Ancestor) of all tips that share a taxonomic group, then draws a triangle for that clade.

You can collapse in three ways:

Monophyly matters

A group can only be collapsed cleanly if it is monophyletic (all descendants share one MRCA). Non-monophyletic groups trigger a warning and are skipped by default (strict = FALSE); set strict = TRUE to abort instead. Check with check_monophyly.

Triangle and space modes

Geological timescale

Rclade adds a geological timescale to the x-axis using deeptime (ICS 2023/02).

Colors and legend

Special identifiers

Rclade understands ancestral nodes of life:

Use them with highlight = "LUCA" or resolve_special_identifier.

External taxonomy file

When labels are incomplete or missing taxonomy, supply a two-column file (tip_label, taxonomy_string) via taxonomy_file. See read_taxonomy_file and summarize_taxonomy_quality_with_file.

Next



Try the Rclade package in your browser

Any scripts or data that you put into this service are public.

Rclade documentation built on Sept. 26, 2026, 5:07 p.m.