Class AccessionID

java.lang.Object
org.biojava.nbio.core.sequence.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 Details

    • AccessionID

      public AccessionID()
    • AccessionID

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

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

      public AccessionID(String id, DataSource source, Integer version, String identifier)
  • Method Details

    • getID

      public String getID()
      Returns:
      the id
    • getDataSource

      public DataSource getDataSource()
      Returns:
      the source
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • 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)
    • toString

      public String toString()
      Overrides:
      toString in class Object