Class AccessionID


  • public class AccessionID
    extends Object
    Used in Sequences as the unique indentifier. If possible, set the DataSource to know the source of the id. This allows a SequenceProxy to gather features or related sequences Protein->Gene as an example. When parsing a Blast file it is also possible to identify the type of ID
    Author:
    Scooter Willis, Jacek Grzebyta
    • Constructor Detail

      • AccessionID

        public AccessionID()
      • AccessionID

        public AccessionID​(String id)
        Parameters:
        id -
      • AccessionID

        public AccessionID​(String id,
                           DataSource source)
        Parameters:
        id -
        source -
    • Method Detail

      • getID

        public String getID()
        Returns:
        the id
      • getDataSource

        public DataSource getDataSource()
        Returns:
        the source
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getVersion

        public Integer getVersion()
        In case if the getID() is not unique keeps the id version.
        Returns:
        the version
      • setVersion

        public void setVersion​(Integer version)
      • getIdentifier

        public String getIdentifier()
        In case if getID() in not unique keeps the alternative id, eg. NCBI GI number. This may null.
        Returns:
      • setIdentifier

        public void setIdentifier​(String identifier)