X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FSequenceI.java;h=60040d83117783a28d23a1889c4e28260aa913d6;hb=2d3d981f9d654c6804612c9058dc607a7b7fb0bc;hp=04f358881d22891c2d7e30b2499096e632144e99;hpb=3ef44bef1f825d26977dedd1608469712a87fe15;p=jalview.git diff --git a/src/jalview/datamodel/SequenceI.java b/src/jalview/datamodel/SequenceI.java index 04f3588..60040d8 100755 --- a/src/jalview/datamodel/SequenceI.java +++ b/src/jalview/datamodel/SequenceI.java @@ -20,18 +20,21 @@ */ package jalview.datamodel; +import jalview.api.DBRefEntryI; + import java.util.List; import java.util.Vector; import fr.orsay.lri.varna.models.rna.RNA; /** - * DOCUMENT ME! + * Methods for manipulating a sequence, its metadata and related annotation in + * an alignment or dataset. * * @author $author$ * @version $Revision$ */ -public interface SequenceI +public interface SequenceI extends ASequenceI { /** * Set the display name for the sequence @@ -134,12 +137,13 @@ public interface SequenceI public char[] getSequence(int start, int end); /** - * create a new sequence object from start to end of this sequence + * create a new sequence object with a subsequence of this one but sharing the + * same dataset sequence * * @param start - * int index for start position + * int index for start position (base 0, inclusive) * @param end - * int index for end position + * int index for end position (base 0, exclusive) * * @return SequenceI * @note implementations may use getSequence to get the sequence data @@ -237,6 +241,7 @@ public interface SequenceI /** * DOCUMENT ME! + * * @param position * DOCUMENT ME! * @param ch @@ -245,17 +250,20 @@ public interface SequenceI public void insertCharAt(int position, int count, char ch); /** - * DOCUMENT ME! + * Gets array holding sequence features associated with this sequence. The + * array may be held by the sequence's dataset sequence if that is defined. * - * @return DOCUMENT ME! + * @return hard reference to array */ public SequenceFeature[] getSequenceFeatures(); /** - * DOCUMENT ME! + * Replaces the array of sequence features associated with this sequence with + * a new array reference. If this sequence has a dataset sequence, then this + * method will update the dataset sequence's feature array * - * @param v - * DOCUMENT ME! + * @param features + * New array of sequence features */ public void setSequenceFeatures(SequenceFeature[] features); @@ -272,7 +280,7 @@ public interface SequenceI * * @return DOCUMENT ME! */ - public Vector getPDBId(); + public Vector getAllPDBEntries(); /** * add entry to the vector of PDBIds, if it isn't in the list already @@ -293,9 +301,9 @@ public interface SequenceI public void setVamsasId(String id); - public void setDBRef(DBRefEntry[] dbs); + public void setDBRefs(DBRefEntry[] dbs); - public DBRefEntry[] getDBRef(); + public DBRefEntry[] getDBRefs(); /** * add the given entry to the list of DBRefs for this sequence, or replace a @@ -380,8 +388,8 @@ public interface SequenceI /** * Transfer any database references or annotation from entry under a sequence * mapping.
- * Note: DOES NOT transfer sequence associated alignment - * annotation
+ * Note: DOES NOT transfer sequence associated alignment annotation + *
* * @param entry * @param mp @@ -418,4 +426,16 @@ public interface SequenceI */ public List getInsertions(); + /** + * Given a pdbId String, return the equivalent PDBEntry if available in the + * given sequence + * + * @param pdbId + * @return + */ + public PDBEntry getPDBEntry(String pdbId); + + public void setSourceDBRef(DBRefEntryI dbRef); + + public DBRefEntryI getSourceDBRef(); }