GenomicRanges icon indicating copy to clipboard operation
GenomicRanges copied to clipboard

Making it easier to convert from IGV coordinates

Open Roleren opened this issue 6 years ago • 0 comments

IGV gives coordiantes as this:

"chr5:37614,351-37614537:+"

Would be nice if the GRanges string constructor would accept "," in the string.

Now this fails:

GRanges("chr5:37,614,351-37,614,537:+") #  <- There are commas in here 

#This works: 
GRanges(sub(pattern = "," , x = "chr5:37,614,351-37,614,537:+", replacement = ""))

Could this be implemented in bioc 3.9 or 3.10 ? So that copy from IGV coordinates is a 1-liner, instead of having to manually remove commas. Or is there a way this could harm the function ?

Roleren avatar Apr 04 '19 14:04 Roleren