View source: R/track-management.R
| gtrack.copy | R Documentation |
Creates a copy of an existing track, optionally to a different database. Transparently handles format mismatches (per-chromosome vs indexed) and chromosome-order differences between source and destination databases.
gtrack.copy(src = NULL, dest = NULL, db = NULL, overwrite = FALSE)
src |
source track name(s). Either a single name or a character vector of names. |
dest |
destination name. If |
db |
destination database root. Must be the current |
overwrite |
if TRUE, replace an existing destination track. |
Chromosomes that exist in the source database but not in the destination are dropped with a warning.
For 2D tracks (rectangles, points), cross-database copy requires identical chromosome order in source and destination. Format conversion (per-chromosome to indexed) is supported only when the destination is the active database.
invisibly, the character vector of created track names.
gtrack.mv, gtrack.rm
gdb.init_examples()
gtrack.copy("dense_track", "dense_track_copy")
gtrack.exists("dense_track_copy")
gtrack.rm("dense_track_copy", force = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.