Class GeneReferenceValueObject
java.lang.Object
ubic.gemma.model.genome.gene.GeneReferenceValueObject
- All Implemented Interfaces:
Serializable
Compact gene identity — just enough to label a row and link to the gene page.
Used where a listing needs to say which gene a row maps to without paying for a full
GeneValueObject per row: GET /platforms/{platform}/elements?withGenes=true
attaches one of these per mapped gene on every element of the page. A platform page showing a
50-row element table needs the symbol to display and the id to link with; shipping the full
gene VO there would carry taxon, aliases, multifunctionality and GO counts that nothing on the
row renders.
- Author:
- paul
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGeneReferenceValueObject(Long id, String officialSymbol, Integer ncbiId) Creates a newGeneReferenceValueObjectinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetId()Gemma-internal gene id, suitable forGET /genes/{id}.NCBI gene id.Official gene symbol, e.g.inthashCode()voidGemma-internal gene id, suitable forGET /genes/{id}.voidNCBI gene id.voidsetOfficialSymbol(String officialSymbol) Official gene symbol, e.g.toString()
-
Constructor Details
-
GeneReferenceValueObject
public GeneReferenceValueObject() -
GeneReferenceValueObject
Creates a newGeneReferenceValueObjectinstance.- Parameters:
id- Gemma-internal gene id, suitable forGET /genes/{id}.officialSymbol- Official gene symbol, e.g.BRCA1. Null for the (rare) gene rows that carry none.ncbiId- NCBI gene id. Null for genes Gemma tracks without one.
-
-
Method Details
-
toString
-
getId
Gemma-internal gene id, suitable forGET /genes/{id}. -
getOfficialSymbol
Official gene symbol, e.g.BRCA1. Null for the (rare) gene rows that carry none. -
getNcbiId
NCBI gene id. Null for genes Gemma tracks without one. -
setId
Gemma-internal gene id, suitable forGET /genes/{id}. -
setOfficialSymbol
Official gene symbol, e.g.BRCA1. Null for the (rare) gene rows that carry none. -
setNcbiId
NCBI gene id. Null for genes Gemma tracks without one. -
equals
-
canEqual
-
hashCode
-