Search in sources :

Example 1 with SampleSingleCell

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);
    }
}
Also used : SampleTissue(uk.ac.bbsrc.tgac.miso.core.data.SampleTissue) SampleAliquotSingleCell(uk.ac.bbsrc.tgac.miso.core.data.SampleAliquotSingleCell) SampleAliquotSingleCellImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.SampleAliquotSingleCellImpl) SampleStockSingleCell(uk.ac.bbsrc.tgac.miso.core.data.SampleStockSingleCell) SampleSingleCell(uk.ac.bbsrc.tgac.miso.core.data.SampleSingleCell)

Example 2 with SampleSingleCell

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);
    }
}
Also used : SampleTissue(uk.ac.bbsrc.tgac.miso.core.data.SampleTissue) SampleSingleCellImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.SampleSingleCellImpl) SampleSingleCell(uk.ac.bbsrc.tgac.miso.core.data.SampleSingleCell)

Example 3 with SampleSingleCell

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);
    }
}
Also used : SampleTissue(uk.ac.bbsrc.tgac.miso.core.data.SampleTissue) SampleIdentity(uk.ac.bbsrc.tgac.miso.core.data.SampleIdentity) SampleStockSingleCellImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.SampleStockSingleCellImpl) SampleStockSingleCell(uk.ac.bbsrc.tgac.miso.core.data.SampleStockSingleCell) SampleSingleCell(uk.ac.bbsrc.tgac.miso.core.data.SampleSingleCell)

Example 4 with SampleSingleCell

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;
}
Also used : SampleSingleCellImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.SampleSingleCellImpl) IonTorrentRunDto(uk.ac.bbsrc.tgac.miso.dto.run.IonTorrentRunDto) QcHierarchyNodeDto(uk.ac.bbsrc.tgac.miso.dto.dashi.QcHierarchyNodeDto) RunPositionDto(uk.ac.bbsrc.tgac.miso.dto.run.RunPositionDto) PacBioRunDto(uk.ac.bbsrc.tgac.miso.dto.run.PacBioRunDto) Ls454RunDto(uk.ac.bbsrc.tgac.miso.dto.run.Ls454RunDto) IlluminaNotificationDto(ca.on.oicr.gsi.runscanner.dto.IlluminaNotificationDto) OxfordNanoporeRunDto(uk.ac.bbsrc.tgac.miso.dto.run.OxfordNanoporeRunDto) IlluminaRunDto(uk.ac.bbsrc.tgac.miso.dto.run.IlluminaRunDto) NotificationDto(ca.on.oicr.gsi.runscanner.dto.NotificationDto) OxfordNanoporeNotificationDto(ca.on.oicr.gsi.runscanner.dto.OxfordNanoporeNotificationDto) RunDto(uk.ac.bbsrc.tgac.miso.dto.run.RunDto) SolidRunDto(uk.ac.bbsrc.tgac.miso.dto.run.SolidRunDto) OrderAliquotDto(uk.ac.bbsrc.tgac.miso.dto.PoolOrderDto.OrderAliquotDto) SampleSingleCell(uk.ac.bbsrc.tgac.miso.core.data.SampleSingleCell)

Aggregations

SampleSingleCell (uk.ac.bbsrc.tgac.miso.core.data.SampleSingleCell)4 SampleTissue (uk.ac.bbsrc.tgac.miso.core.data.SampleTissue)3 SampleStockSingleCell (uk.ac.bbsrc.tgac.miso.core.data.SampleStockSingleCell)2 SampleSingleCellImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.SampleSingleCellImpl)2 IlluminaNotificationDto (ca.on.oicr.gsi.runscanner.dto.IlluminaNotificationDto)1 NotificationDto (ca.on.oicr.gsi.runscanner.dto.NotificationDto)1 OxfordNanoporeNotificationDto (ca.on.oicr.gsi.runscanner.dto.OxfordNanoporeNotificationDto)1 SampleAliquotSingleCell (uk.ac.bbsrc.tgac.miso.core.data.SampleAliquotSingleCell)1 SampleIdentity (uk.ac.bbsrc.tgac.miso.core.data.SampleIdentity)1 SampleAliquotSingleCellImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.SampleAliquotSingleCellImpl)1 SampleStockSingleCellImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.SampleStockSingleCellImpl)1 OrderAliquotDto (uk.ac.bbsrc.tgac.miso.dto.PoolOrderDto.OrderAliquotDto)1 QcHierarchyNodeDto (uk.ac.bbsrc.tgac.miso.dto.dashi.QcHierarchyNodeDto)1 IlluminaRunDto (uk.ac.bbsrc.tgac.miso.dto.run.IlluminaRunDto)1 IonTorrentRunDto (uk.ac.bbsrc.tgac.miso.dto.run.IonTorrentRunDto)1 Ls454RunDto (uk.ac.bbsrc.tgac.miso.dto.run.Ls454RunDto)1 OxfordNanoporeRunDto (uk.ac.bbsrc.tgac.miso.dto.run.OxfordNanoporeRunDto)1 PacBioRunDto (uk.ac.bbsrc.tgac.miso.dto.run.PacBioRunDto)1 RunDto (uk.ac.bbsrc.tgac.miso.dto.run.RunDto)1 RunPositionDto (uk.ac.bbsrc.tgac.miso.dto.run.RunPositionDto)1