This function takes a GRanges objects and returns a string of UCSC genome browser coordinates.
granges_to_ucsc(gr)
A GRanges object.
A character vector of UCSC genome browser coordinates.
ucsc_coords <- c("chr1:1000-2000")
granges_to_ucsc(ucsc_to_granges(ucsc_coords))
#> [1] "chr1:1000-2000"