use of uk.ac.bbsrc.tgac.miso.core.data.SampleSingleCell in project miso-lims by miso-lims.
the class AbstractBulkSampleIT method assertAllForSingleCellAliquot.
protected void assertAllForSingleCellAliquot(Map<String, String> aliquot, Long sampleId, boolean newlyCreated) {
SampleAliquotSingleCell target = (SampleAliquotSingleCell) getSession().get(SampleAliquotSingleCellImpl.class, sampleId);
assertPlainSampleAttributes(aliquot, target, newlyCreated);
assertDetailedSampleAttributes(aliquot, target);
assertAnalyteAttributes(aliquot, target);
assertAliquotAttributes(aliquot, target);
assertSingleCellAliquotAttributes(aliquot, target);
if (newlyCreated) {
SampleStockSingleCell stockParent = LimsUtils.getParent(SampleStockSingleCell.class, target);
assertSingleCellStockAttributes(aliquot, stockParent);
SampleSingleCell singleCellParent = LimsUtils.getParent(SampleSingleCell.class, target);
assertSingleCellAttributes(aliquot, singleCellParent);
SampleTissue tissueParent = LimsUtils.getParent(SampleTissue.class, target);
assertTissueAttributes(aliquot, tissueParent);
}
}
use of uk.ac.bbsrc.tgac.miso.core.data.SampleSingleCell in project miso-lims by miso-lims.
the class AbstractBulkSampleIT method assertAllForSingleCell.
protected void assertAllForSingleCell(Map<String, String> singleCell, long sampleId, boolean newlyCreated) {
SampleSingleCell target = (SampleSingleCell) getSession().get(SampleSingleCellImpl.class, sampleId);
assertPlainSampleAttributes(singleCell, target, newlyCreated);
assertDetailedSampleAttributes(singleCell, target);
assertSingleCellAttributes(singleCell, target);
if (newlyCreated) {
SampleTissue tissueParent = LimsUtils.getParent(SampleTissue.class, target);
assertTissueAttributes(singleCell, tissueParent);
}
}
use of uk.ac.bbsrc.tgac.miso.core.data.SampleSingleCell in project miso-lims by miso-lims.
the class AbstractBulkSampleIT method assertAllForSingleCellStock.
protected void assertAllForSingleCellStock(Map<String, String> stock, Long sampleId, boolean newlyCreated) {
SampleStockSingleCell target = (SampleStockSingleCell) getSession().get(SampleStockSingleCellImpl.class, sampleId);
assertPlainSampleAttributes(stock, target, newlyCreated);
assertDetailedSampleAttributes(stock, target);
assertStockAttributes(stock, target);
assertAnalyteAttributes(stock, target);
assertSingleCellStockAttributes(stock, target);
if (newlyCreated) {
SampleTissue tissueParent = LimsUtils.getParent(SampleTissue.class, target);
assertTissueAttributes(stock, tissueParent);
SampleSingleCell singleCellParent = LimsUtils.getParent(SampleSingleCell.class, target);
assertSingleCellAttributes(stock, singleCellParent);
SampleIdentity identityAncestor = LimsUtils.getParent(SampleIdentity.class, target);
assertIdentityAttributes(stock, identityAncestor);
}
}
use of uk.ac.bbsrc.tgac.miso.core.data.SampleSingleCell in project miso-lims by miso-lims.
the class Dtos method toSingleCellSample.
private static SampleSingleCell toSingleCellSample(@Nonnull SampleSingleCellRelative from) {
SampleSingleCell to = new SampleSingleCellImpl();
setBigDecimal(to::setInitialCellConcentration, from.getInitialCellConcentration());
setString(to::setDigestion, from.getDigestion());
return to;
}
Aggregations