| gtrack.convert_to_indexed | R Documentation |
Converts a per-chromosome track to indexed format (track.dat + track.idx).
gtrack.convert_to_indexed(track = NULL)
track |
track name to convert |
This function converts a track from the per-chromosome file format to single-file indexed format. The indexed format dramatically reduces file descriptor usage for genomes with many contigs and provides better performance for parallel access.
The function performs the following steps:
Validates that all per-chromosome files have consistent metadata
Creates track.dat by concatenating all per-chromosome files
Creates track.idx with offset/length information for each chromosome
Uses atomic operations (fsync + rename) to ensure data integrity
Removes the old per-chromosome files after successful conversion
None
gtrack.create, gtrack.create_sparse, gtrack.create_dense
## Not run:
# Convert a track to indexed format
gtrack.convert_to_indexed("my_track")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.