Class BioMaterial
- java.lang.Object
-
- ubic.gemma.model.common.AbstractDescribable
-
- ubic.gemma.model.expression.biomaterial.BioMaterial
-
- All Implemented Interfaces:
gemma.gsec.model.Securable
,gemma.gsec.model.SecuredChild
,Serializable
,Describable
,Identifiable
@Indexed public class BioMaterial extends AbstractDescribable implements gemma.gsec.model.SecuredChild, Serializable
In MAGE, BioMaterial is an abstract class that represents the important substances such as cells, tissues, DNA, proteins, etc... In MAGE, Biomaterial subclasses such as BioSample and BioSource can be related to other biomaterial through a directed acyclic graph (represented by treatment(s)). In our implementation, we don't care so much about the experimental procedures and we just lump all of the BioMaterial into one class.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BioMaterial.Factory
-
Constructor Summary
Constructors Constructor Description BioMaterial()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<BioAssay>
getBioAssaysUsedIn()
Set<Characteristic>
getCharacteristics()
DatabaseEntry
getExternalAccession()
Set<FactorValue>
getFactorValues()
Long
getId()
String
getName()
Obtain the name of an object is a possibly ambiguous human-readable identifier that need not be an external database reference.gemma.gsec.model.Securable
getSecurityOwner()
Taxon
getSourceTaxon()
Set<Treatment>
getTreatments()
void
setBioAssaysUsedIn(Set<BioAssay> bioAssaysUsedIn)
void
setCharacteristics(Set<Characteristic> characteristics)
void
setExternalAccession(DatabaseEntry externalAccession)
void
setFactorValues(Set<FactorValue> factorValues)
void
setSourceTaxon(Taxon sourceTaxon)
void
setTreatments(Set<Treatment> treatments)
-
Methods inherited from class ubic.gemma.model.common.AbstractDescribable
equals, getDescription, hashCode, setDescription, setId, setName, toString
-
-
-
-
Method Detail
-
getId
@DocumentId public Long getId()
- Specified by:
getId
in interfaceIdentifiable
- Specified by:
getId
in interfacegemma.gsec.model.Securable
- Overrides:
getId
in classAbstractDescribable
-
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
-
getCharacteristics
@IndexedEmbedded public Set<Characteristic> getCharacteristics()
-
setCharacteristics
public void setCharacteristics(Set<Characteristic> characteristics)
-
getExternalAccession
@IndexedEmbedded public DatabaseEntry getExternalAccession()
- Returns:
- An optional external reference for this BioMaterial. In many cases this is the same as the accession for the related BioAssay. We store the information here to help make the data easier to trace. Note that more than one BioMaterial may reference a given external accession.
-
setExternalAccession
public void setExternalAccession(DatabaseEntry externalAccession)
-
getFactorValues
@IndexedEmbedded public Set<FactorValue> getFactorValues()
- Returns:
- The values that this BioAssay is associated with for the experiment.
-
setFactorValues
public void setFactorValues(Set<FactorValue> factorValues)
-
getSecurityOwner
public gemma.gsec.model.Securable getSecurityOwner()
- Specified by:
getSecurityOwner
in interfacegemma.gsec.model.SecuredChild
-
getSourceTaxon
public Taxon getSourceTaxon()
-
setSourceTaxon
public void setSourceTaxon(Taxon sourceTaxon)
-
-