When creating a GenomicRegion from strings contig/start/end, see if the primary contig names can can be easily mapped from b37 style -> hgXX style, i.e. [0-9XY]+ -> chr[0-9XY]+
Note that this will only work if using ≥C++11, since it depends on STL regex functionality introduced in C++11. I've thus added the appropriate language scope guards.
Oops, this was way too slow to process any headers of substantial length, since regex would get recompiled every time a GenomicRegion was instantiated.
When creating a GenomicRegion from strings contig/start/end, see if the primary contig names can can be easily mapped from b37 style -> hgXX style, i.e. [0-9XY]+ -> chr[0-9XY]+
Note that this will only work if using ≥C++11, since it depends on STL regex functionality introduced in C++11. I've thus added the appropriate language scope guards.