Class BioMaterialUtils
java.lang.Object
ubic.gemma.persistence.service.expression.biomaterial.BioMaterialUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Map
<Category, Map<BioMaterial, Collection<Characteristic>>> createCharacteristicMap
(Collection<BioMaterial> samples) Create a mapping of biomaterial to characteristics for each category.static void
visitBioMaterials
(BioMaterial bioMaterial, Consumer<BioMaterial> visitor) Visit all the biomaterials in the hierarchy.
-
Constructor Details
-
BioMaterialUtils
public BioMaterialUtils()
-
-
Method Details
-
visitBioMaterials
Visit all the biomaterials in the hierarchy.Circular biomaterial are not allowed, but if they happen we must detect them to prevent stack overflows.
- Throws:
IllegalStateException
- if a circular biomaterial is detected
-
createCharacteristicMap
public static Map<Category,Map<BioMaterial, createCharacteristicMapCollection<Characteristic>>> (Collection<BioMaterial> samples) Create a mapping of biomaterial to characteristics for each category.
-