gdb.create_linked: Create a linked database with symlinks to a parent database

View source: R/db-root.R

gdb.create_linkedR Documentation

Create a linked database with symlinks to a parent database

Description

Creates a new database directory structure with symbolic links to the parent database's seq/ directory and chrom_sizes.txt file.

Usage

gdb.create_linked(path, parent)

Arguments

path

Path for the new linked database

parent

Path to the parent database (with seq and chrom_sizes.txt)

Details

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().

Value

Invisible TRUE on success

See Also

gsetroot, gdb.create, gdataset.load, gdataset.ls

Examples

## Not run: 
# 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")

## End(Not run)


misha documentation built on Jan. 28, 2026, 1:07 a.m.