Learn R Programming

misha (version 5.4.0)

gdataset.save: Save a dataset

Description

Creates a new dataset directory containing selected tracks and/or intervals from the working database.

Usage

gdataset.save(
  path,
  description,
  tracks = NULL,
  intervals = NULL,
  symlinks = FALSE,
  copy_seq = FALSE
)

Value

Invisible path

Arguments

path

Destination directory (must not exist)

description

Required description for metadata

tracks

Character vector of track names to include

intervals

Character vector of interval set names to include

symlinks

If TRUE, create symlinks to tracks/intervals instead of copying

copy_seq

If TRUE, copy seq/ directory instead of symlinking

See Also

gdataset.load, gdataset.info

Examples

Run this code
# \dontshow{
options(gmax.processes = 2)
# }

gdb.init_examples()
example_intervs <- gintervals(1, 0, 10000)
gintervals.save("example_dataset_intervals", example_intervs)
gtrack.create(
    "example_dataset_track",
    "Example dataset track",
    "dense_track",
    iterator = "example_dataset_intervals"
)
dataset_path <- tempfile("misha_dataset_")
gdataset.save(
    path = dataset_path,
    description = "Example dataset",
    tracks = "example_dataset_track",
    intervals = "example_dataset_intervals"
)
gtrack.rm("example_dataset_track", force = TRUE)
gintervals.rm("example_dataset_intervals", force = TRUE)

Run the code above in your browser using DataLab