return map;
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see jalview.datamodel.SequenceI#findPositionMap()
+ */
+ public int[] findPositionMap()
+ {
+ int map[] = new int[sequence.length];
+ int j = 0;
+ int pos = start;
+ int seqlen = sequence.length;
+ while ((j < seqlen))
+ {
+ map[j] = pos;
+ if (!jalview.util.Comparison.isGap(sequence[j]))
+ {
+ pos++;
+ }
+ j++;
+ }
+ return map;
+ }
/*
* (non-Javadoc)
*