- int[] mappedPositions = toSeq.locateInFrom(_lcolumn, _rcolumn);
- // TODO - trim to localFrame ?
- // if (mappedPositions!=null) {
- // int s=-1,e=-1;
- // for (int p=0;p<mappedPositions.length;p++)
- // {
- // if (s==-1 && mappedPositions[p]>=localFrame.getStart())
- // {
- // s=p; // remember first position within local frame
- // }
- // if (e==-1 || mappedPositions[p]<=localFrame.getEnd())
- // {
- // // update end pointer
- // e=p;
- // // compute local map
- // mappedPositions[p] = localFrame.findIndex(mappedPositions[p]);
- // }
- // }
- // }
+ int[] mappedPositions = toSeq.locateInFrom(from, to);
+ if (mappedPositions==null)
+ {
+ return null;
+ }
+
+ // and now map to localFrame
+ // from-to columns on the associated sequence should be
+ // i. restricted to positions in localFrame
+ // ii.
+
+// int s = -1, e = -1;
+// for (int p = 0; p < mappedPositions.length; p++)
+// {
+// if (s == -1 && mappedPositions[p] >= localFrame.getStart())
+// {
+// s = p; // remember first position within local frame
+// }
+// if (e == -1 || mappedPositions[p] <= localFrame.getEnd())
+// {
+// // update end pointer
+// e = p;
+// // compute local map
+// mappedPositions[p] = localFrame.findIndex(mappedPositions[p]);
+// }
+// }
+// int[] _trimmed = new int[e - s + 1];
+// return _trimmed;