Downloads the bacterial and/or archaeal tree of a GTDB release (see
gtdb_tree_url()) into dest_dir. Files already there are not
downloaded again unless overwrite = TRUE. Download them once, next to
the GTDB taxonomy files, and share them between projects.
Usage
gtdb_tree_download(
release = 232,
domain = c("bacteria", "archaea"),
dest_dir = ".",
version = NULL,
compressed = TRUE,
overwrite = FALSE,
quiet = FALSE
)Arguments
- release
GTDB release, as a number or string:
232,"r232"or"release232".- domain
"bacteria","archaea", or both (the default).- dest_dir
Directory to save the trees in. Created if needed.
- version
Release subdirectory. Defaults to
"<release>.0", e.g."232.0".- compressed
If
TRUE(the default), the gzip-compressed.tree.gzfile; otherwise the plain.treefile.- overwrite
If
TRUE, download files that already exist again.- quiet
If
TRUE, no progress bar or messages.
Value
The paths of the tree files, named by domain, invisibly. Pass them
to gtdb_tree_read().
Examples
if (FALSE) { # \dontrun{
trees <- gtdb_tree_download(232, dest_dir = "~/projects/gtdb")
tree <- gtdb_tree_read(trees)
} # }