int end = Integer.parseInt(param3);
String desc = param4 != null ? param4 : "";
roi = new RegionOfInterest(param1, start, end, desc);
}
if (param1 != null) {
Locus locus = Locus.fromString(param1);
if (locus != null) {
int start = Math.max(0, locus.getStart() - 1);
String desc = param2 != null ? param2 : "";
roi = new RegionOfInterest(locus.getChr(), start, locus.getEnd(), desc);
}
}
if (roi != null) {
igv.addRegionOfInterest(roi);