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
public class Multifunctionality extends AbstractIdentifiable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Multifunctionality.Factory
-
Constructor Summary
Constructors Constructor Description Multifunctionality()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Important note: Two objects with the same class and non-null ID must be considered equal.Integer
getNumGoTerms()
Double
getRank()
Double
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
setRank(Double rank)
void
setScore(Double score)
String
toString()
-
Methods inherited from class ubic.gemma.model.common.AbstractIdentifiable
getId, setId
-
-
-
-
Method Detail
-
getNumGoTerms
public Integer getNumGoTerms()
- Returns:
- The number of GO terms the gene has, after propagation, but excluding the roots
-
setNumGoTerms
public void setNumGoTerms(Integer numGoTerms)
-
getRank
public Double 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
public void setRank(Double rank)
-
getScore
public Double 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
public void setScore(Double score)
-
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
public boolean equals(Object object)
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
public String toString()
- Overrides:
toString
in classAbstractIdentifiable
-
-