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 classBioMaterial.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()DatabaseEntrygetExternalAccession()Set<FactorValue>getFactorValues()LonggetId()StringgetName()Obtain the name of an object is a possibly ambiguous human-readable identifier that need not be an external database reference.gemma.gsec.model.SecurablegetSecurityOwner()TaxongetSourceTaxon()Set<Treatment>getTreatments()voidsetBioAssaysUsedIn(Set<BioAssay> bioAssaysUsedIn)voidsetCharacteristics(Set<Characteristic> characteristics)voidsetExternalAccession(DatabaseEntry externalAccession)voidsetFactorValues(Set<FactorValue> factorValues)voidsetSourceTaxon(Taxon sourceTaxon)voidsetTreatments(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:
getIdin interfaceIdentifiable- Specified by:
getIdin interfacegemma.gsec.model.Securable- 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
-
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:
getSecurityOwnerin interfacegemma.gsec.model.SecuredChild
-
getSourceTaxon
public Taxon getSourceTaxon()
-
setSourceTaxon
public void setSourceTaxon(Taxon sourceTaxon)
-
-