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 <j.jacobsen@qmul.ac.uk>
-
Method Summary
Modifier and TypeMethodDescriptionstatic RsIdempty()Returns an instance of an empty value.booleanintgetId()inthashCode()booleanisEmpty()static RsIdof(int id) Returns new RsId from the integer provided.static RsIdParses 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- aStringcontaining theintrepresentation 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.
-