Package org.biojava.nbio.core.sequence
Class AccessionID
java.lang.Object
org.biojava.nbio.core.sequence.AccessionID
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 Summary
ConstructorDescriptionAccessionID
(String id) AccessionID
(String id, DataSource source) AccessionID
(String id, DataSource source, Integer version, String identifier) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getID()
In case ifgetID()
in not unique keeps the alternative id, eg.In case if thegetID()
is not unique keeps the id version.int
hashCode()
void
setIdentifier
(String identifier) void
setVersion
(Integer version) toString()
-
Constructor Details
-
AccessionID
public AccessionID() -
AccessionID
- Parameters:
id
-
-
AccessionID
- Parameters:
id
-source
-
-
AccessionID
-
-
Method Details
-
getID
- Returns:
- the id
-
getDataSource
- Returns:
- the source
-
equals
-
hashCode
public int hashCode() -
getVersion
In case if thegetID()
is not unique keeps the id version.- Returns:
- the version
-
setVersion
-
getIdentifier
In case ifgetID()
in not unique keeps the alternative id, eg. NCBI GI number. This may null.- Returns:
-
setIdentifier
-
toString
-