*/
public static Hashtable<SequenceI, Integer> getConnectivity(AlignmentViewport av, float[][] scores, byte dim) throws RuntimeException
{
- SequenceI[] sequences = av.getAlignment().getSequencesArray();
+ boolean isSelection = av.getSelectionGroup() != null && av.getSelectionGroup().getSize() > 0;
+ SequenceI[] sequences;
+ if (isSelection)
+ {
+ sequences = (SequenceI[]) av.getAlignmentView(isSelection).getAlignmentAndHiddenColumns(av.getGapCharacter())[0];
+ } else {
+ sequences = av.getAlignment().getSequencesArray();
+ }
Hashtable<SequenceI, Integer> connectivity = new Hashtable<SequenceI, Integer>();
// for each unique connection