* ShiftList\r
* Simple way of mapping a linear series to a new linear range with new points introduced.\r
* Use at your own risk!\r
- * <p>Title: ShiftList</p>\r
- *\r
- * <p>Description: </p>\r
- *\r
- * <p>Copyright: Copyright (c) 2004</p>\r
- *\r
- * <p>Company: Dundee University</p>\r
- *\r
- * @author not attributable\r
- * @version 1.0\r
+ * Now growing to be used for interval ranges (position, offset) storing deletions/insertions\r
*/\r
public class ShiftList\r
{\r
* parse a 1d map of position 1<i<n to L<pos[i]<N\r
* such as that returned from SequenceI.gapMap()\r
* @param gapMap\r
- * @return\r
+ * @return shifts from map index to mapped position\r
*/\r
public static ShiftList parseMap(int[] gapMap) {\r
ShiftList shiftList = null;\r
if (gapMap!=null && gapMap.length>0) {\r
shiftList=new ShiftList();\r
-\r
for (int i=0,p=0; i<gapMap.length; p++,i++) {\r
if (p!=gapMap[i]) {\r
shiftList.addShift(p, gapMap[i]-p);\r