This function takes a GRanges objects and returns a string of UCSC genome browser coordinates.

granges_to_ucsc(gr)

Arguments

gr

A GRanges object.

Value

A character vector of UCSC genome browser coordinates.

See also

Author

Leonardo Collado-Torres

Examples

ucsc_coords <- c("chr1:1000-2000")
granges_to_ucsc(ucsc_to_granges(ucsc_coords))
#> [1] "chr1:1000-2000"