import java.util.BitSet;
import java.util.Collections;
import java.util.Enumeration;
+import java.util.HashMap;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.Iterator;
}
}
+ /**
+ * Returns a map from sequence to position (0, 1,...) in the alignment
+ */
+ @Override
+ public Map<SequenceI, Integer> getSequencePositions()
+ {
+ Map<SequenceI, Integer> map = new HashMap<>();
+
+ synchronized (sequences)
+ {
+ int i = sequences.size();
+ for (int j = 0; j < i; j++)
+ {
+ map.put(sequences.get(j), Integer.valueOf(j));
+ }
+ }
+ return map;
+ }
+
}
public HiddenColumns propagateInsertions(SequenceI profileseq,
AlignmentView input);
+ /**
+ * Returns a map whose key is a sequence in the alignment, and value the
+ * position (0, 1, 2...) of the sequence
+ *
+ * @return
+ */
+ Map<SequenceI, Integer> getSequencePositions();
+
}