X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FAlignmentI.java;h=e14c1e96db8aa9edcb1dff11d617de9967b5ca88;hb=daa33859b015a7e4b1295addfff2582bf348b8bc;hp=416be69750e1e2b52652b27b4b9ff198cdb87dec;hpb=efc31b4a8d5cee63555586804a2b79c06bdb5a14;p=jalview.git diff --git a/src/jalview/datamodel/AlignmentI.java b/src/jalview/datamodel/AlignmentI.java index 416be69..e14c1e9 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. @@ -125,14 +132,6 @@ public interface AlignmentI */ public SequenceI findName(String name); - /** - * Finds sequence in alignment using full displayId as query. - * - * @param name displayId, ie NAME/25-100 - * - * @return Sequence matching query, if found. If not found returns null. - */ - public SequenceI findbyDisplayId(String name); /** * Finds index of a given sequence in the alignment. @@ -227,34 +226,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. * @@ -289,4 +269,33 @@ public interface AlignmentI * @return DOCUMENT ME! */ public Vector getAAFrequency(); + + /** + * Returns true if alignment is nucleotide sequence + * + * @return DOCUMENT ME! + */ + public boolean isNucleotide(); + + /** + * Set true if the alignment is a nucleotide sequence + * + * @return + */ + public void setNucleotide(boolean b); + + + 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(); + }