powered by
df.to.gr(x, which.chr = "chr", which.start = "start", which.end = "end", which.width = "width", which.name = "name", chrlength = NULL, start0 = TRUE)
## Not run: # x <- data.frame( # chr=c('chr1','chr2'),start=0,end=100, # name=paste0('ID',1:2),score=1:2 # ) # df.to.gr(x) # df.to.gr(x,chrlength=c(chr1=1000,chr2=1200)) # ## End(Not run)
Run the code above in your browser using DataLab