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:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description CoexpressionValueObject()protectedCoexpressionValueObject(Long queryGeneId, Long coexGeneId, Boolean positiveCorrelation, Integer support, Long supportDetailsId, Set<Long> supportingDatasets)protectedCoexpressionValueObject(Long coexGeneId, String coexGeneSymbol, boolean positiveCorrelation, Long queryGeneId, String queryGeneSymbol, Integer support, Long supportDetailsId, Collection<Long> supportingDatasets, Collection<Long> testedInDatasets)protectedCoexpressionValueObject(Long coexGeneId, String coexGeneSymbol, boolean positiveCorrelation, Long queryGeneId, String queryGeneSymbol, Integer support, Long supportDetailsId, Set<Long> supportingDatasets, Set<Long> testedInDatasets)CoexpressionValueObject(Gene2GeneCoexpression g2g)Construct a value object.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(CoexpressionValueObject o)booleanequals(Object obj)LonggetCoexGeneId()StringgetCoexGeneSymbol()intgetMaxResults()IntegergetNumDatasetsSupporting()IntegergetNumDatasetsTestedIn()LonggetQueryGeneId()StringgetQueryGeneSymbol()intgetQueryStringency()LonggetSupportDetailsId()Set<Long>getSupportingDatasets()Set<Long>getTestedInDatasets()inthashCode()booleanisEeConstraint()booleanisFromCache()booleanisInterQueryLink()booleanisPositiveCorrelation()voidsetCoexGeneSymbol(String coexGeneSymbol)voidsetFromCache(boolean fromCache)voidsetInterQueryLink(boolean interQueryLink)voidsetQueryGeneSymbol(String queryGeneSymbol)StringtoString()
 
- 
- 
- 
Constructor Detail- 
CoexpressionValueObjectpublic CoexpressionValueObject() 
 - 
CoexpressionValueObjectpublic CoexpressionValueObject(Gene2GeneCoexpression g2g) Construct a value object. The "tested-in" component is not filled in, it must be done later.- Parameters:
- g2g- g2g
 
 - 
CoexpressionValueObjectprotected CoexpressionValueObject(Long queryGeneId, Long coexGeneId, Boolean positiveCorrelation, Integer support, Long supportDetailsId, Set<Long> supportingDatasets) 
 - 
CoexpressionValueObjectprotected CoexpressionValueObject(Long coexGeneId, String coexGeneSymbol, boolean positiveCorrelation, Long queryGeneId, String queryGeneSymbol, Integer support, Long supportDetailsId, Collection<Long> supportingDatasets, Collection<Long> testedInDatasets) 
 
- 
 - 
Method Detail- 
compareTopublic int compareTo(CoexpressionValueObject o) - Specified by:
- compareToin interface- Comparable<CoexpressionValueObject>
 
 - 
getCoexGeneIdpublic Long getCoexGeneId() 
 - 
getCoexGeneSymbolpublic String getCoexGeneSymbol() 
 - 
setCoexGeneSymbolpublic void setCoexGeneSymbol(String coexGeneSymbol) 
 - 
getMaxResultspublic int getMaxResults() 
 - 
getNumDatasetsSupportingpublic Integer getNumDatasetsSupporting() - Returns:
- number of data sets this link was found in
 
 - 
getNumDatasetsTestedInpublic Integer 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).
 
 - 
getQueryGeneIdpublic Long getQueryGeneId() 
 - 
getQueryGeneSymbolpublic String getQueryGeneSymbol() 
 - 
setQueryGeneSymbolpublic void setQueryGeneSymbol(String queryGeneSymbol) 
 - 
getQueryStringencypublic int getQueryStringency() 
 - 
getSupportDetailsIdpublic Long getSupportDetailsId() 
 - 
getSupportingDatasetspublic Set<Long> getSupportingDatasets() - Returns:
- the IDs of the supporting data sets; or an empty collection if the information was not retrieved
 
 - 
isEeConstraintpublic boolean isEeConstraint() 
 - 
isFromCachepublic boolean isFromCache() 
 - 
setFromCachepublic void setFromCache(boolean fromCache) 
 - 
isInterQueryLinkpublic boolean isInterQueryLink() 
 - 
setInterQueryLinkpublic void setInterQueryLink(boolean interQueryLink) 
 - 
isPositiveCorrelationpublic boolean isPositiveCorrelation() 
 
- 
 
-