Learn R Programming

compEpiTools (version 1.6.3)

GRanges2ucsc-methods: A GRanges method to convert ranges information into UCSC format

Description

Chr assignments, start and end positions are converted into UCSC format, in the form chr1:100-500

Arguments

Methods

To be used in this form: GRanges2ucsc(Object) where Object is a GRanges

Examples

Run this code
gr <- GRanges(Rle(c('chr1','chr2')), 
	ranges=IRanges(start=c(1e7, 2e7), end=c(1e7+19, 2e7+19)))
GRanges2ucsc(gr)

Run the code above in your browser using DataLab