| gintervals.convert_to_indexed | R Documentation |
Converts a per-chromosome interval set to indexed format (intervals.dat + intervals.idx) which reduces file descriptor usage.
gintervals.convert_to_indexed(
set.name = NULL,
remove.old = FALSE,
force = FALSE
)
set.name |
name of interval set to convert |
remove.old |
if TRUE, removes old per-chromosome files after successful conversion |
force |
if TRUE, re-converts even if already in indexed format |
The indexed format stores all chromosomes in a single intervals.dat file with an intervals.idx index file. This reduces file descriptor usage from N files (one per chromosome) to just 2 files.
The conversion process:
Creates temporary intervals.dat.tmp and intervals.idx.tmp files
Concatenates all per-chromosome files into intervals.dat.tmp
Builds index with offsets and checksums
Atomically renames temporary files to final names
Optionally removes old per-chromosome files
The indexed format is 100
invisible NULL
gintervals.save, gintervals.load
## Not run:
# Convert an interval set
gintervals.convert_to_indexed("my_intervals")
# Convert and remove old files
gintervals.convert_to_indexed("my_intervals", remove.old = TRUE)
# Force re-conversion
gintervals.convert_to_indexed("my_intervals", force = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.