Class CoexpressionValueObject
java.lang.Object
ubic.gemma.persistence.service.association.coexpression.CoexpressionValueObject
- All Implemented Interfaces:
Serializable
,Comparable<CoexpressionValueObject>
public class CoexpressionValueObject
extends Object
implements Comparable<CoexpressionValueObject>, Serializable
Lightweight/convenient object for manipulating coexpression for a pair of genes. Importantly, this does not
necessarily reflect the coexpression data in the database: it may have been filtered in accordance to the query
settings in terms of the data sets searched and the maximum number of results.
Note that hashCode and equals do not use the ID of the coexpression; they only use the genes (ignoring which is query
vs. found) and the sign, since those are in effect unique in the system.
- Author:
- Paul
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CoexpressionValueObject
(Long queryGeneId, Long coexGeneId, Boolean positiveCorrelation, Integer support, Long supportDetailsId, Set<Long> supportingDatasets) protected
CoexpressionValueObject
(Long coexGeneId, String coexGeneSymbol, boolean positiveCorrelation, Long queryGeneId, String queryGeneSymbol, Integer support, Long supportDetailsId, Collection<Long> supportingDatasets, Collection<Long> testedInDatasets) protected
CoexpressionValueObject
(Long coexGeneId, String coexGeneSymbol, boolean positiveCorrelation, Long queryGeneId, String queryGeneSymbol, Integer support, Long supportDetailsId, Set<Long> supportingDatasets, Set<Long> testedInDatasets) Construct a value object. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
int
int
hashCode()
boolean
boolean
boolean
boolean
void
setCoexGeneSymbol
(String coexGeneSymbol) void
setFromCache
(boolean fromCache) void
setInterQueryLink
(boolean interQueryLink) void
setQueryGeneSymbol
(String queryGeneSymbol) toString()
-
Constructor Details
-
CoexpressionValueObject
public CoexpressionValueObject() -
CoexpressionValueObject
Construct a value object. The "tested-in" component is not filled in, it must be done later.- Parameters:
g2g
- g2g
-
CoexpressionValueObject
-
CoexpressionValueObject
protected CoexpressionValueObject(Long coexGeneId, String coexGeneSymbol, boolean positiveCorrelation, Long queryGeneId, String queryGeneSymbol, Integer support, Long supportDetailsId, Collection<Long> supportingDatasets, Collection<Long> testedInDatasets) -
CoexpressionValueObject
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<CoexpressionValueObject>
-
getCoexGeneId
-
getCoexGeneSymbol
-
setCoexGeneSymbol
-
getMaxResults
public int getMaxResults() -
getNumDatasetsSupporting
- Returns:
- number of data sets this link was found in
-
getNumDatasetsTestedIn
- Returns:
- number of data sets this link was tested in, of -1 if the information was not retrieved or if the value is zero (which is basically an error).
-
getQueryGeneId
-
getQueryGeneSymbol
-
setQueryGeneSymbol
-
getQueryStringency
public int getQueryStringency() -
getSupportDetailsId
-
getSupportingDatasets
- Returns:
- the IDs of the supporting data sets; or an empty collection if the information was not retrieved
-
getTestedInDatasets
-
hashCode
public int hashCode() -
equals
-
toString
-
isEeConstraint
public boolean isEeConstraint() -
isFromCache
public boolean isFromCache() -
setFromCache
public void setFromCache(boolean fromCache) -
isInterQueryLink
public boolean isInterQueryLink() -
setInterQueryLink
public void setInterQueryLink(boolean interQueryLink) -
isPositiveCorrelation
public boolean isPositiveCorrelation()
-