Package ubic.gemma.model.genome
Class Gene
-
- All Implemented Interfaces:
Describable
,Identifiable
@Indexed public class Gene extends ChromosomeFeature
Represents a functionally transcribed unit in the genome, recognized by other databases (NCBI, Ensembl).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Gene.Factory
-
Constructor Summary
Constructors Constructor Description Gene()
No-arg constructor added to satisfy javabean contract
-
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.Set<DatabaseEntry>
getAccessions()
Set<GeneAlias>
getAliases()
String
getEnsemblId()
Long
getId()
Multifunctionality
getMultifunctionality()
String
getName()
Obtain the name of an object is a possibly ambiguous human-readable identifier that need not be an external database reference.Integer
getNcbiGeneId()
String
getOfficialName()
String
getOfficialSymbol()
Set<GeneProduct>
getProducts()
Taxon
getTaxon()
void
setAccessions(Set<DatabaseEntry> accessions)
void
setAliases(Set<GeneAlias> aliases)
void
setEnsemblId(String ensemblId)
void
setMultifunctionality(Multifunctionality multifunctionality)
void
setNcbiGeneId(Integer ncbiGeneId)
void
setOfficialName(String officialName)
void
setOfficialSymbol(String officialSymbol)
void
setProducts(Set<GeneProduct> products)
void
setTaxon(Taxon taxon)
String
toString()
-
Methods inherited from class ubic.gemma.model.genome.ChromosomeFeature
getPhysicalLocation, getPreviousNcbiId, setPhysicalLocation, setPreviousNcbiId
-
Methods inherited from class ubic.gemma.model.common.AbstractDescribable
getDescription, hashCode, setDescription, setName
-
Methods inherited from class ubic.gemma.model.common.AbstractIdentifiable
setId
-
-
-
-
Method Detail
-
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 classAbstractDescribable
-
getId
@DocumentId public Long getId()
- Specified by:
getId
in interfaceIdentifiable
- Overrides:
getId
in classAbstractIdentifiable
-
getName
@Field public String getName()
Description copied from interface:Describable
Obtain the name of an object is a possibly ambiguous human-readable identifier that need not be an external database reference.- Specified by:
getName
in interfaceDescribable
- Overrides:
getName
in classAbstractDescribable
-
getAccessions
@IndexedEmbedded public Set<DatabaseEntry> getAccessions()
-
setAccessions
public void setAccessions(Set<DatabaseEntry> accessions)
-
getEnsemblId
@Nullable @Field(analyze=NO) public String getEnsemblId()
- Returns:
- An Ensembl ID for the gene.
-
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)
-
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)
-
-