Package ubic.gemma.model.genome
Class Gene
- java.lang.Object
-
- ubic.gemma.model.common.AbstractDescribable
-
- ubic.gemma.model.genome.ChromosomeFeature
-
- ubic.gemma.model.genome.Gene
-
- All Implemented Interfaces:
Serializable,Describable,Identifiable
@Indexed public class Gene extends ChromosomeFeature
Represents a functionally transcribed unit in the genome, recognized by other databases (NCBI, Ensembl).- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGene.Factory
-
Constructor Summary
Constructors Constructor Description Gene()No-arg constructor added to satisfy javabean contract
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object object)Returnstrueif the argument is an Describable instance and all identifiers for this entity equal the identifiers of the argument entity.Set<DatabaseEntry>getAccessions()Set<GeneAlias>getAliases()StringgetEnsemblId()LonggetId()MultifunctionalitygetMultifunctionality()StringgetName()Obtain the name of an object is a possibly ambiguous human-readable identifier that need not be an external database reference.IntegergetNcbiGeneId()StringgetOfficialName()StringgetOfficialSymbol()Set<PhenotypeAssociation>getPhenotypeAssociations()Deprecated.Set<GeneProduct>getProducts()TaxongetTaxon()inthashCode()Returns a hash code based on this entity's identifiers.voidsetAccessions(Set<DatabaseEntry> accessions)voidsetAliases(Set<GeneAlias> aliases)voidsetEnsemblId(String ensemblId)voidsetMultifunctionality(Multifunctionality multifunctionality)voidsetNcbiGeneId(Integer ncbiGeneId)voidsetOfficialName(String officialName)voidsetOfficialSymbol(String officialSymbol)voidsetPhenotypeAssociations(Set<PhenotypeAssociation> phenotypeAssociations)Deprecated.voidsetProducts(Set<GeneProduct> products)voidsetTaxon(Taxon taxon)StringtoString()-
Methods inherited from class ubic.gemma.model.genome.ChromosomeFeature
getPhysicalLocation, getPreviousNcbiId, setPhysicalLocation, setPreviousNcbiId
-
Methods inherited from class ubic.gemma.model.common.AbstractDescribable
getDescription, setDescription, setId, setName
-
-
-
-
Method Detail
-
equals
public boolean equals(Object object)
Description copied from class:AbstractDescribableReturnstrueif the argument is an Describable instance and all identifiers for this entity equal the identifiers of the argument entity. Returnsfalseotherwise.- Overrides:
equalsin classAbstractDescribable
-
hashCode
public int hashCode()
Description copied from class:AbstractDescribableReturns a hash code based on this entity's identifiers.- Overrides:
hashCodein classAbstractDescribable
-
toString
public String toString()
- Overrides:
toStringin classAbstractDescribable- See Also:
AbstractDescribable.toString()
-
getId
@DocumentId public Long getId()
- Specified by:
getIdin interfaceIdentifiable- Overrides:
getIdin classAbstractDescribable
-
getName
@Field public String getName()
Description copied from interface:DescribableObtain the name of an object is a possibly ambiguous human-readable identifier that need not be an external database reference.- Specified by:
getNamein interfaceDescribable- Overrides:
getNamein classAbstractDescribable
-
getAccessions
@IndexedEmbedded public Set<DatabaseEntry> getAccessions()
-
setAccessions
public void setAccessions(Set<DatabaseEntry> accessions)
-
getEnsemblId
@Field(analyze=NO) public String getEnsemblId()
- Returns:
- An Ensembl ID for the gene.
-
setEnsemblId
public void setEnsemblId(String ensemblId)
-
getMultifunctionality
public Multifunctionality getMultifunctionality()
-
setMultifunctionality
public void setMultifunctionality(Multifunctionality multifunctionality)
-
getNcbiGeneId
@Field(analyze=NO) public Integer getNcbiGeneId()
-
setNcbiGeneId
public void setNcbiGeneId(Integer ncbiGeneId)
-
getOfficialName
@Field(analyze=NO) public String getOfficialName()
-
setOfficialName
public void setOfficialName(String officialName)
-
getOfficialSymbol
@Field(analyze=NO) public String getOfficialSymbol()
-
setOfficialSymbol
public void setOfficialSymbol(String officialSymbol)
-
getPhenotypeAssociations
@Deprecated public Set<PhenotypeAssociation> getPhenotypeAssociations()
Deprecated.
-
setPhenotypeAssociations
@Deprecated public void setPhenotypeAssociations(Set<PhenotypeAssociation> phenotypeAssociations)
Deprecated.
-
getProducts
@IndexedEmbedded public Set<GeneProduct> getProducts()
-
setProducts
public void setProducts(Set<GeneProduct> products)
-
getTaxon
@IndexedEmbedded public Taxon getTaxon()
- Returns:
- Note that a Gene also has a chromosome, so the organism can be inferred that way as well. This direct association is a denormalization for queries that don't care about location, just species-membership.
-
setTaxon
public void setTaxon(Taxon taxon)
-
-