Skip to contents

GTDB publishes, for each release, a bacterial tree (bac120, inferred from 120 marker genes) and an archaeal tree (ar53, 53 marker genes; ar122 before release 207), with one tip per GTDB species representative genome. These are the genomes in the sylph GTDB databases, so every genome sylph detects against a GTDB database is a tip of that release's trees.

Usage

gtdb_tree_url(
  release = 232,
  domain = c("bacteria", "archaea"),
  version = NULL,
  compressed = TRUE,
  base_url = "https://data.gtdb.ecogenomic.org/releases"
)

Arguments

release

GTDB release, as a number or string: 232, "r232" or "release232".

domain

"bacteria", "archaea", or both (the default).

version

Release subdirectory. Defaults to "<release>.0", e.g. "232.0".

compressed

If TRUE (the default), the gzip-compressed .tree.gz file; otherwise the plain .tree file.

base_url

Base URL of the GTDB releases.

Value

A named character vector of URLs, one per domain.

Details

The files are in https://data.gtdb.ecogenomic.org/releases/release<R>/<R>.0/, e.g. bac120_r232.tree.gz (2.3 MB) and ar53_r232.tree.gz (0.15 MB) for release 232. Use the release your sylph database was built from: the sylph database gtdb-r232-c200-dbv2.syl2db goes with release 232.

See also

gtdb_tree_download() to download them.

Examples

gtdb_tree_url(232)
#>                                                                         bacteria 
#> "https://data.gtdb.ecogenomic.org/releases/release232/232.0/bac120_r232.tree.gz" 
#>                                                                          archaea 
#>   "https://data.gtdb.ecogenomic.org/releases/release232/232.0/ar53_r232.tree.gz" 
gtdb_tree_url("r220", domain = "archaea")
#>                                                                        archaea 
#> "https://data.gtdb.ecogenomic.org/releases/release220/220.0/ar53_r220.tree.gz"