Package ubic.gemma.model.genome.gene
Class Multifunctionality
java.lang.Object
ubic.gemma.model.common.AbstractIdentifiable
ubic.gemma.model.genome.gene.Multifunctionality
- All Implemented Interfaces:
Identifiable
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Important note: Two objects with the same class and non-null ID must be considered equal.getRank()
getScore()
int
hashCode()
Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.void
setNumGoTerms
(Integer numGoTerms) void
void
toString()
Methods inherited from class ubic.gemma.model.common.AbstractIdentifiable
getId, setId
-
Constructor Details
-
Multifunctionality
public Multifunctionality()
-
-
Method Details
-
getNumGoTerms
- Returns:
- The number of GO terms the gene has, after propagation, but excluding the roots
-
setNumGoTerms
-
getRank
- Returns:
- The relative rank of the gene among other genes in the taxon, based on the multifunctionality score (not the number of GO terms, though that would generally give a similar result). A rank of 1 means the "most multifunctional", while 0 is assigned to the least multifunctional gene.
-
setRank
-
getScore
- Returns:
- The multifunctionality of the gene, as scored using the "optimal ranking" method of Gillis and Pavlidis (2011). It is a value from 0 to 1, where 1 is the highest multifunctionality. Note that this score is not very useful by itself as it really only makes sense as a relative measure among genes. Thus the rank should be used for display.
-
setScore
-
hashCode
public int hashCode()Description copied from class:AbstractIdentifiable
Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.- Specified by:
hashCode
in classAbstractIdentifiable
-
equals
Description copied from class:AbstractIdentifiable
Important note: Two objects with the same class and non-null ID must be considered equal. If one or both IDs are nulls, the rest of the state can be used to determine equality.- Specified by:
equals
in classAbstractIdentifiable
-
toString
- Overrides:
toString
in classAbstractIdentifiable
-