Class AccessionID

java.lang.Object
org.biojava3.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
  • Constructor Details

    • AccessionID

      public AccessionID()
    • AccessionID

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

      public AccessionID(String id, DataSource source)
      Parameters:
      id -
      source -
  • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object