Package ubic.gemma.model.genome.gene
Class GeneProduct
- java.lang.Object
-
- ubic.gemma.model.common.Describable
-
- ubic.gemma.model.genome.ChromosomeFeature
-
- ubic.gemma.model.genome.gene.GeneProduct
-
- All Implemented Interfaces:
Serializable
,Identifiable
public class GeneProduct extends ChromosomeFeature
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GeneProduct.Factory
-
Constructor Summary
Constructors Constructor Description GeneProduct()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Returnstrue
if the argument is an Describable instance and all identifiers for this entity equal the identifiers of the argument entity.Set<DatabaseEntry>
getAccessions()
Set<PhysicalLocation>
getExons()
Only used for transient instances in sequence analysis, we do not store exon locations in the database.Gene
getGene()
String
getNcbiGi()
int
hashCode()
Returns a hash code based on this entity's identifiers.void
setAccessions(Set<DatabaseEntry> accessions)
void
setExons(Set<PhysicalLocation> exons)
Only used for transient instances, we do not store exon locations in the database.void
setGene(Gene gene)
void
setNcbiGi(String ncbiGi)
String
toString()
-
Methods inherited from class ubic.gemma.model.genome.ChromosomeFeature
getPhysicalLocation, getPreviousNcbiId, setPhysicalLocation, setPreviousNcbiId
-
Methods inherited from class ubic.gemma.model.common.Describable
getDescription, getId, getName, setDescription, setId, setName
-
-
-
-
Method Detail
-
hashCode
public int hashCode()
Description copied from class:Describable
Returns a hash code based on this entity's identifiers.- Overrides:
hashCode
in classDescribable
-
equals
public boolean equals(Object object)
Description copied from class:Describable
Returnstrue
if the argument is an Describable instance and all identifiers for this entity equal the identifiers of the argument entity. Returnsfalse
otherwise.- Overrides:
equals
in classDescribable
-
toString
public String toString()
- Overrides:
toString
in classDescribable
- See Also:
Describable.toString()
-
getAccessions
public Set<DatabaseEntry> getAccessions()
-
setAccessions
public void setAccessions(Set<DatabaseEntry> accessions)
-
getExons
public Set<PhysicalLocation> getExons()
Only used for transient instances in sequence analysis, we do not store exon locations in the database.- Returns:
- physical locations of exons
-
setExons
public void setExons(Set<PhysicalLocation> exons)
Only used for transient instances, we do not store exon locations in the database.- Parameters:
exons
- new physical locations of exons
-
getGene
public Gene getGene()
-
setGene
public void setGene(Gene gene)
-
getNcbiGi
public String getNcbiGi()
- Returns:
- GI for the gene product (if available)
-
setNcbiGi
public void setNcbiGi(String ncbiGi)
-
-