Search in sources :

Example 1 with SampleStockRnaImpl

use of uk.ac.bbsrc.tgac.miso.core.data.impl.SampleStockRnaImpl in project miso-lims by miso-lims.

the class Dtos method toStockSample.

private static SampleStock toStockSample(@Nonnull SampleStockDto from) {
    SampleStock to = null;
    if (from instanceof SampleStockSingleCellRelative) {
        SampleStockSingleCellRelative scFrom = (SampleStockSingleCellRelative) from;
        SampleStockSingleCell sc = new SampleStockSingleCellImpl();
        setBigDecimal(sc::setTargetCellRecovery, scFrom.getTargetCellRecovery());
        setBigDecimal(sc::setCellViability, scFrom.getCellViability());
        setBigDecimal(sc::setLoadingCellConcentration, scFrom.getLoadingCellConcentration());
        to = sc;
    } else if (from instanceof SampleStockRnaRelative) {
        SampleStockRnaRelative rnaFrom = (SampleStockRnaRelative) from;
        SampleStockRna rna = new SampleStockRnaImpl();
        setBoolean(rna::setDnaseTreated, rnaFrom.getDnaseTreated(), true);
        to = rna;
    } else {
        to = new SampleStockImpl();
    }
    if (from.getStrStatus() != null) {
        to.setStrStatus(from.getStrStatus());
    }
    setInteger(to::setSlidesConsumed, from.getSlidesConsumed(), true);
    setObject(to::setReferenceSlide, SampleSlideImpl::new, from.getReferenceSlideId());
    return to;
}
Also used : SampleSlideImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.SampleSlideImpl) SampleStockRnaImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.SampleStockRnaImpl) SampleStockRna(uk.ac.bbsrc.tgac.miso.core.data.SampleStockRna) SampleStockImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.SampleStockImpl) SampleStockSingleCellImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.SampleStockSingleCellImpl) 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) SampleStock(uk.ac.bbsrc.tgac.miso.core.data.SampleStock) SampleStockSingleCell(uk.ac.bbsrc.tgac.miso.core.data.SampleStockSingleCell)

Aggregations

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 SampleStock (uk.ac.bbsrc.tgac.miso.core.data.SampleStock)1 SampleStockRna (uk.ac.bbsrc.tgac.miso.core.data.SampleStockRna)1 SampleStockSingleCell (uk.ac.bbsrc.tgac.miso.core.data.SampleStockSingleCell)1 SampleSlideImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.SampleSlideImpl)1 SampleStockImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.SampleStockImpl)1 SampleStockRnaImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.SampleStockRnaImpl)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 SolidRunDto (uk.ac.bbsrc.tgac.miso.dto.run.SolidRunDto)1