R/db-root.R
gdb.create_linked.RdCreates a new database directory structure with symbolic links to the parent database's seq/ directory and chrom_sizes.txt file.
gdb.create_linked(path, parent)Invisible TRUE on success
This is useful for creating a writable database that shares sequence
data with a read-only main database. The new database can be set as the
working database via gsetroot(), and then the parent database
can be loaded as a dataset via gdataset.load().
if (FALSE) { # \dontrun{
# Create linked database sharing sequence data with main database
gdb.create_linked("~/my_tracks", parent = "/shared/genomics/hg38")
# Set linked database as working database and load parent as dataset
gsetroot("~/my_tracks")
gdataset.load("/shared/genomics/hg38")
} # }