Class RsId
java.lang.Object
org.monarchinitiative.lirical.exomiser_db_adapter.model.frequency.RsId
Immutable value Class representing an NCBI dbSNP reference SNP rsID.
- Author:
- Jules Jacobsen
-
Method Summary
Modifier and TypeMethodDescriptionstatic RsId
empty()
Returns an instance of an empty value.boolean
int
getId()
int
hashCode()
boolean
isEmpty()
static RsId
of
(int id) Returns new RsId from the integer provided.static RsId
Parses rs ids from their VCF representation - can be in the form "rs123456", "123456" or "." for an empty value.toString()
Returns an rsID formatted string - 'rs123456' or '.' for an empty value.
-
Method Details
-
of
Returns new RsId from the integer provided. Integers less than or equal to zero will return an instance representing an empty value.- Parameters:
id
-- Returns:
- the rsId value represented by the argument provided.
-
of
Parses rs ids from their VCF representation - can be in the form "rs123456", "123456" or "." for an empty value. Will accept a null as representing an empty value.- Parameters:
id
- aString
containing theint
representation to be parsed- Returns:
- the rsId value represented by the argument provided.
-
empty
Returns an instance of an empty value. This is represented as '.' in VCF notation.- Returns:
- an empty rsId value.
-
getId
public int getId() -
isEmpty
public boolean isEmpty() -
hashCode
public int hashCode() -
equals
-
toString
Returns an rsID formatted string - 'rs123456' or '.' for an empty value.
-