Class BioMaterial
- All Implemented Interfaces:
gemma.gsec.model.Securable,gemma.gsec.model.SecuredChild,Securable,SecuredChild<ExpressionExperiment>,Describable,Identifiable
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: The name should be compared in a case-insensitive manner.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()Obtain the identifier of the object.getName()Obtain the name of the object.Obtain the security owner of this secured child.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) voidsetSecurityOwner(ExpressionExperiment securityOwner) voidsetSourceBioMaterial(BioMaterial sourceBioMaterial) voidsetSourceTaxon(Taxon sourceTaxon) voidsetTreatments(Set<Treatment> treatments) Methods inherited from class ubic.gemma.model.common.AbstractDescribable
getDescription, hashCode, setDescription, setName, toStringMethods inherited from class ubic.gemma.model.common.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
Description copied from interface:IdentifiableObtain the identifier of the object.- Specified by:
getIdin interfaceIdentifiable- Specified by:
getIdin interfacegemma.gsec.model.Securable- Overrides:
getIdin classAbstractIdentifiable
-
getName
Description copied from interface:DescribableObtain the name of the object.It may be human-readable.
It is case-insensitive and usually unique within a certain context (e.g. in a collection).
It is non-null by default, but implementation may override this with a
Nullableannotation. If null, it should not be treated as equal to otherDescribableobjects (i.e. there can be multiple null-named describable within a given set).- 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
Description copied from interface:SecuredChildObtain the security owner of this secured child.Secured children should always have an owner in the ACL table, but that relation is not always direct or mapped. A more robust way of checking is to look up the parent via
AclObjectIdentity.getParentObject(). If the security owner cannot be determined, the implementation should define a setter so it can be temporarily assigned for creating the ACL identity.- Specified by:
getSecurityOwnerin interfacegemma.gsec.model.SecuredChild- Specified by:
getSecurityOwnerin interfaceSecuredChild<ExpressionExperiment>- Returns:
- the security owner, or null if not known.
-
setSecurityOwner
-
getSourceTaxon
-
setSourceTaxon
-
getTreatments
-
setTreatments
-
getAllTreatments
Obtain all treatments, including those inherited from its ancestors viagetSourceBioMaterial(). -
equals
Description copied from class:AbstractDescribableImportant note: The name should be compared in a case-insensitive manner. You can useDescribableUtils.equalsByName(Describable, Describable)to get the correct behavior.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:
equalsin classAbstractDescribable
-