X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FAlignmentI.java;h=06e93d7a4322aea1f8b8feb2267d0a071e4f2c22;hb=d187567c926fed31f9cd9bda0dc112bc4d1b1261;hp=2a398472fa37aa4ef647c1d04e47ba395ece1acb;hpb=55e2e9b22b133db8b9ff0979b0338a33081fc8fd;p=jalview.git diff --git a/src/jalview/datamodel/AlignmentI.java b/src/jalview/datamodel/AlignmentI.java index 2a39847..06e93d7 100755 --- a/src/jalview/datamodel/AlignmentI.java +++ b/src/jalview/datamodel/AlignmentI.java @@ -61,6 +61,13 @@ public interface AlignmentI public Vector getSequences(); /** + * Gets sequences as a SequenceI[] + * + * @return All sequences in alignment. + */ + public SequenceI [] getSequencesArray(); + + /** * Find a specific sequence in this alignment. * * @param i Index of required sequence. @@ -104,17 +111,8 @@ public interface AlignmentI * @param start Start index of columns to delete. * @param end End index to columns to delete. */ - public void deleteColumns(int start, int end); + public void deleteColumns(SequenceI seqs [], int start, int end); - /** - * Deletes all residues in every sequence of alignment within given columns. - * - * @param seq1 Index of first sequence to delete columns from. - * @param seq2 Index of last sequence to delete columns from. - * @param start Start index of columns to delete. - * @param end End index of columns to delete. - */ - public void deleteColumns(int seq1, int seq2, int start, int end); /** * Finds sequence in alignment using sequence name as query. @@ -154,25 +152,7 @@ public interface AlignmentI */ public void removeGaps(); - /** - * Removes redundant sequences from alignment. - * - * @param threshold Remove all sequences above the given threshold. - * @param sel Set of sequences which will have redundant sequences removed from. - * - * @return All sequences below redundancy threshold. - */ - public Vector removeRedundancy(float threshold, Vector sel); - /** - * Finds group that sequence at index i in alignment is part of. - * - * @param i Index in alignment. - * - * @return First group found for sequence at position i. WARNING : - * Sequences may be members of several groups. This method is incomplete. - */ - public SequenceGroup findGroup(int i); /** * Finds group that given sequence is part of. @@ -219,34 +199,15 @@ public interface AlignmentI */ public void deleteAllGroups(); - /** - * Adds a super group. A SuperGroup is a group of groups. - * - * @param sg Adds a new SuperGroup to alignment - */ - public void addSuperGroup(SuperGroup sg); - - /** - * Removes SuperGroup from alignment. - * - * @param sg This SuperGroup will be deleted from alignment. - */ - public void removeSuperGroup(SuperGroup sg); - - /** - * Finds any SuperGroup that a given SequenceGroup may be part of. - * - * @param sg SequenceGroup to search for. - * - * @return SuperGroup that contains the given SequenceGroup. - */ - public SuperGroup getSuperGroup(SequenceGroup sg); /** * Adds a new AlignmentAnnotation to this alignment */ public void addAnnotation(AlignmentAnnotation aa); + + public void setAnnotationIndex(AlignmentAnnotation aa, int index); + /** * Deletes a specific AlignmentAnnotation from the alignment. * @@ -300,6 +261,18 @@ public interface AlignmentI public Alignment getDataset(); public void setDataset(Alignment dataset); + /** + * pads sequences with gaps (to ensure the set looks like an alignment) + * @return boolean true if alignment was modified + */ + public boolean padGaps(); + public void adjustSequenceAnnotations(); + public HiddenSequences getHiddenSequences(); + /** + * Compact representation of alignment + * @return CigarArray + */ + public CigarArray getCompactAlignment(); }