Class BioMaterial
java.lang.Object
ubic.gemma.model.common.AbstractIdentifiable
ubic.gemma.model.common.AbstractDescribable
ubic.gemma.model.expression.biomaterial.BioMaterial
- All Implemented Interfaces:
gemma.gsec.model.Securable, gemma.gsec.model.SecuredChild, Securable, SecuredChild, Describable, Identifiable
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.
BioMaterial can be organized in a hierarchy via getSourceBioMaterial(). When that is the case,
sub-biomaterials inherit characteristics, factors and treatments from their source biomaterials.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanImportant note: Two objects with the same class and non-null ID must be considered equal.Obtain all the assays used in the hierarchy of biomaterials viagetSourceBioMaterial().Obtain all theCharacteristicassociated to this biomaterial, including those inherited from its ancestors viagetSourceBioMaterial().Obtain all theFactorValueassociated to this biomaterial, including those inherited from its ancestors viagetSourceBioMaterial().Obtain all treatments, including those inherited from its ancestors viagetSourceBioMaterial().Obtain the values that this BioAssay is associated with for the experiment.getId()getName()Obtain a short, human-readable name of the object.Parent biomaterial or null if this is a top-level biomaterial.voidsetBioAssaysUsedIn(Set<BioAssay> bioAssaysUsedIn) voidsetCharacteristics(Set<Characteristic> characteristics) voidsetExternalAccession(DatabaseEntry externalAccession) voidsetFactorValues(Set<FactorValue> factorValues) voidsetSourceBioMaterial(BioMaterial sourceBioMaterial) voidsetSourceTaxon(Taxon sourceTaxon) voidsetTreatments(Set<Treatment> treatments) Methods inherited from class AbstractDescribable
getDescription, hashCode, setDescription, setName, toStringMethods inherited from class AbstractIdentifiable
setId
-
Field Details
-
MAX_NAME_LENGTH
public static final int MAX_NAME_LENGTH- See Also:
-
COMPARATOR
-
-
Constructor Details
-
BioMaterial
public BioMaterial()
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceIdentifiable- Specified by:
getIdin interfacegemma.gsec.model.Securable- Overrides:
getIdin classAbstractIdentifiable
-
getName
Description copied from interface:DescribableObtain a short, human-readable name of the object.- Specified by:
getNamein interfaceDescribable- Overrides:
getNamein classAbstractDescribable
-
getSourceBioMaterial
Parent biomaterial or null if this is a top-level biomaterial.This is used to represent a sample derived from another sample. For example, you could have a bulk tissue sample that has been sorted per cell type. Each cell type would constitute a biomaterial with the bulk tissue as parent.
-
setSourceBioMaterial
-
getBioAssaysUsedIn
-
setBioAssaysUsedIn
-
getAllBioAssaysUsedIn
Obtain all the assays used in the hierarchy of biomaterials viagetSourceBioMaterial().- See Also:
-
getCharacteristics
-
setCharacteristics
-
getAllCharacteristics
Obtain all theCharacteristicassociated to this biomaterial, including those inherited from its ancestors viagetSourceBioMaterial().- See Also:
-
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
-
getFactorValues
Obtain the values that this BioAssay is associated with for the experiment. -
setFactorValues
-
getAllFactorValues
Obtain all theFactorValueassociated to this biomaterial, including those inherited from its ancestors viagetSourceBioMaterial(). -
getSecurityOwner
- Specified by:
getSecurityOwnerin interfacegemma.gsec.model.SecuredChild- Specified by:
getSecurityOwnerin interfaceSecuredChild
-
getSourceTaxon
-
setSourceTaxon
-
getTreatments
-
setTreatments
-
getAllTreatments
Obtain all treatments, including those inherited from its ancestors viagetSourceBioMaterial(). -
equals
Description copied from class:AbstractIdentifiableImportant 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:
equalsin classAbstractIdentifiable
-