Package ubic.gemma.model.genome.gene
Class GeneValueObject
- All Implemented Interfaces:
Serializable,Identifiable
- Author:
- kelsey
- See Also:
-
Field Summary
Fields inherited from class ubic.gemma.model.common.IdentifiableValueObject
id -
Constructor Summary
ConstructorsConstructorDescriptionRequired when using the class as a spring bean.GeneValueObject(Long id) GeneValueObject(Long geneId, String geneSymbol, String geneOfficialName, Taxon taxon) GeneValueObject(Gene gene) GeneValueObject(GeneValueObject otherBean) Copies constructor from other GeneValueObjectGeneValueObject(Gene gene, boolean includeTaxon) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic GeneValueObjectconvert2ValueObject(Gene gene) Converts a Gene to a GeneValueObjectstatic Collection<GeneValueObject> convertMembers2GeneValueObjects(Collection<GeneSetMember> setMembers) A static method for easily converting GeneSetMembers into GeneValueObjectsbooleanGene aliases, sorted alphabetically.How many experiments "involve" (manipulate, etc.) this geneWas this gene directly used in a query? Or is it inferred somehow.getName()double[]double[]int[]Array containing number of links supported by 0,1,2, ....int[]Array containing number of links supported by 0,1,2, ....getScore()getTaxon()inthashCode()booleanvoidsetAccessions(Set<DatabaseEntryValueObject> accessions) voidsetAliases(SortedSet<String> aliases) Gene aliases, sorted alphabetically.voidsetAssociatedExperimentCount(Integer associatedExperimentCount) How many experiments "involve" (manipulate, etc.) this genevoidsetCompositeSequenceCount(Integer compositeSequenceCount) voidsetDescription(String description) voidsetEnsemblId(String ensemblId) voidsetGeneSets(Collection<GeneSetValueObject> geneSets) voidsetHomologues(Collection<GeneValueObject> homologues) voidsetIncludeTaxon(boolean includeTaxon) voidsetIsQuery(Boolean isQuery) Was this gene directly used in a query? Or is it inferred somehow.voidsetMultifunctionalityRank(Double multifunctionalityRank) voidvoidvoidsetNodeDegreeNegRanks(double[] nodeDegreeNegRanks) voidsetNodeDegreePosRanks(double[] nodeDegreePosRanks) voidsetNodeDegreesNeg(int[] nodeDegreesNeg) Array containing number of links supported by 0,1,2, ....voidsetNodeDegreesPos(int[] nodeDegreesPos) Array containing number of links supported by 0,1,2, ....voidsetNumGoTerms(Integer numGoTerms) voidsetOfficialName(String officialName) voidsetOfficialSymbol(String officialSymbol) voidsetPlatformCount(Integer platformCount) voidvoidsetTaxon(TaxonValueObject taxon) toString()Methods inherited from class ubic.gemma.model.common.IdentifiableValueObject
getId, setId
-
Constructor Details
-
GeneValueObject
public GeneValueObject()Required when using the class as a spring bean. -
GeneValueObject
-
GeneValueObject
- Parameters:
gene- gene
-
GeneValueObject
- Parameters:
includeTaxon- include full taxon details ingetTaxonForGemmaRest(), otherwise onlygetTaxonIdForGemmaRest()is filled
-
GeneValueObject
Copies constructor from other GeneValueObject- Parameters:
otherBean- , cannot benull- Throws:
NullPointerException- if the argument isnull
-
GeneValueObject
-
-
Method Details
-
convert2ValueObject
Converts a Gene to a GeneValueObject- Parameters:
gene- a gene to be converted to a value object- Returns:
- value object with the same basic characteristics as the given gene, including aliases.
-
convertMembers2GeneValueObjects
public static Collection<GeneValueObject> convertMembers2GeneValueObjects(Collection<GeneSetMember> setMembers) A static method for easily converting GeneSetMembers into GeneValueObjects- Parameters:
setMembers- gene set members- Returns:
- gene VOs
-
getTaxonId
-
getTaxonForGemmaRest
-
getTaxonIdForGemmaRest
-
getTaxonCommonName
-
getTaxonScientificName
-
toString
- Overrides:
toStringin classIdentifiableValueObject<Gene>
-
getAliases
Gene aliases, sorted alphabetically. -
getAssociatedExperimentCount
How many experiments "involve" (manipulate, etc.) this gene -
getCompositeSequenceCount
-
getDescription
-
getGeneSets
-
getHomologues
-
getIsQuery
Was this gene directly used in a query? Or is it inferred somehow. The default is true, use this when you need to differentiate -
getMultifunctionalityRank
-
getName
-
getNcbiId
-
getEnsemblId
-
getAccessions
-
getNodeDegreeNegRanks
public double[] getNodeDegreeNegRanks() -
getNodeDegreePosRanks
public double[] getNodeDegreePosRanks() -
getNodeDegreesNeg
public int[] getNodeDegreesNeg()Array containing number of links supported by 0,1,2, .... data sets (value in first index is always 0) for negative correlation coexpression -
getNodeDegreesPos
public int[] getNodeDegreesPos()Array containing number of links supported by 0,1,2, .... data sets (value in first index is always 0) for positive coexpression -
getNumGoTerms
-
getOfficialName
-
getOfficialSymbol
-
getPlatformCount
-
getScore
-
getTaxon
-
isIncludeTaxon
public boolean isIncludeTaxon() -
setAliases
Gene aliases, sorted alphabetically. -
setAssociatedExperimentCount
How many experiments "involve" (manipulate, etc.) this gene -
setCompositeSequenceCount
-
setDescription
-
setGeneSets
-
setHomologues
-
setIsQuery
Was this gene directly used in a query? Or is it inferred somehow. The default is true, use this when you need to differentiate -
setMultifunctionalityRank
-
setName
-
setNcbiId
-
setEnsemblId
-
setAccessions
-
setNodeDegreeNegRanks
public void setNodeDegreeNegRanks(double[] nodeDegreeNegRanks) -
setNodeDegreePosRanks
public void setNodeDegreePosRanks(double[] nodeDegreePosRanks) -
setNodeDegreesNeg
public void setNodeDegreesNeg(int[] nodeDegreesNeg) Array containing number of links supported by 0,1,2, .... data sets (value in first index is always 0) for negative correlation coexpression -
setNodeDegreesPos
public void setNodeDegreesPos(int[] nodeDegreesPos) Array containing number of links supported by 0,1,2, .... data sets (value in first index is always 0) for positive coexpression -
setNumGoTerms
-
setOfficialName
-
setOfficialSymbol
-
setPlatformCount
-
setScore
-
setTaxon
-
setIncludeTaxon
public void setIncludeTaxon(boolean includeTaxon) -
equals
- Overrides:
equalsin classIdentifiableValueObject<Gene>
-
canEqual
- Overrides:
canEqualin classIdentifiableValueObject<Gene>
-
hashCode
public int hashCode()- Overrides:
hashCodein classIdentifiableValueObject<Gene>
-