Search in sources :

Example 1 with InstrumentDataManglingPolicy

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

the class Dtos method to.

public static Run to(@Nonnull RunDto dto) {
    Run to = getPlatformRun(dto);
    setLong(to::setId, dto.getId(), false);
    setString(to::setName, dto.getName());
    setString(to::setAlias, dto.getAlias());
    setString(to::setDescription, dto.getDescription());
    setObject(to::setHealth, dto.getStatus(), status -> HealthType.get(status));
    setString(to::setAccession, dto.getAccession());
    setObject(to::setSequencer, InstrumentImpl::new, dto.getInstrumentId());
    setDate(to::setStartDate, dto.getStartDate());
    setDate(to::setCompletionDate, dto.getEndDate());
    setObject(to::setSequencingParameters, SequencingParameters::new, dto.getSequencingParametersId());
    setObject(to::setSequencingKit, KitDescriptor::new, dto.getSequencingKitId());
    setString(to::setSequencingKitLot, dto.getSequencingKitLot());
    setString(to::setFilePath, dto.getRunPath());
    setBoolean(to::setQcPassed, dto.getQcPassed(), true);
    setBoolean(to::setDataReview, dto.getDataReview(), true);
    setObject(to::setSop, Sop::new, dto.getSopId());
    setObject(to::setDataManglingPolicy, dto.getDataManglingPolicy(), InstrumentDataManglingPolicy::valueOf);
    return to;
}
Also used : InstrumentDataManglingPolicy(uk.ac.bbsrc.tgac.miso.core.data.InstrumentDataManglingPolicy) KitDescriptor(uk.ac.bbsrc.tgac.miso.core.data.impl.kit.KitDescriptor) InstrumentImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.InstrumentImpl) Sop(uk.ac.bbsrc.tgac.miso.core.data.impl.Sop) SequencingParameters(uk.ac.bbsrc.tgac.miso.core.data.SequencingParameters) OxfordNanoporeRun(uk.ac.bbsrc.tgac.miso.core.data.OxfordNanoporeRun) SolidRun(uk.ac.bbsrc.tgac.miso.core.data.SolidRun) QcControlRun(uk.ac.bbsrc.tgac.miso.core.data.qc.QcControlRun) LibraryQcControlRun(uk.ac.bbsrc.tgac.miso.core.data.qc.LibraryQcControlRun) SampleQcControlRun(uk.ac.bbsrc.tgac.miso.core.data.qc.SampleQcControlRun) IlluminaRun(uk.ac.bbsrc.tgac.miso.core.data.IlluminaRun) ArrayRun(uk.ac.bbsrc.tgac.miso.core.data.ArrayRun) Run(uk.ac.bbsrc.tgac.miso.core.data.Run) LS454Run(uk.ac.bbsrc.tgac.miso.core.data.LS454Run) IonTorrentRun(uk.ac.bbsrc.tgac.miso.core.data.IonTorrentRun) InstrumentStatusPositionRun(uk.ac.bbsrc.tgac.miso.core.data.impl.view.instrumentstatus.InstrumentStatusPositionRun) PoolQcControlRun(uk.ac.bbsrc.tgac.miso.core.data.qc.PoolQcControlRun) PacBioRun(uk.ac.bbsrc.tgac.miso.core.data.PacBioRun) ContainerQcControlRun(uk.ac.bbsrc.tgac.miso.core.data.qc.ContainerQcControlRun) 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)

Example 2 with InstrumentDataManglingPolicy

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

the class ConstantsController method addDataManglingPolicies.

private static void addDataManglingPolicies(ObjectNode node) {
    ArrayNode dataManglingPolicies = node.putArray("dataManglingPolicies");
    for (InstrumentDataManglingPolicy policy : InstrumentDataManglingPolicy.values()) {
        ObjectNode dto = dataManglingPolicies.addObject();
        dto.put("label", policy.getLabel());
        dto.put("value", policy.name());
    }
}
Also used : InstrumentDataManglingPolicy(uk.ac.bbsrc.tgac.miso.core.data.InstrumentDataManglingPolicy) ObjectNode(com.fasterxml.jackson.databind.node.ObjectNode) ArrayNode(com.fasterxml.jackson.databind.node.ArrayNode)

Aggregations

InstrumentDataManglingPolicy (uk.ac.bbsrc.tgac.miso.core.data.InstrumentDataManglingPolicy)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 ArrayNode (com.fasterxml.jackson.databind.node.ArrayNode)1 ObjectNode (com.fasterxml.jackson.databind.node.ObjectNode)1 ArrayRun (uk.ac.bbsrc.tgac.miso.core.data.ArrayRun)1 IlluminaRun (uk.ac.bbsrc.tgac.miso.core.data.IlluminaRun)1 IonTorrentRun (uk.ac.bbsrc.tgac.miso.core.data.IonTorrentRun)1 LS454Run (uk.ac.bbsrc.tgac.miso.core.data.LS454Run)1 OxfordNanoporeRun (uk.ac.bbsrc.tgac.miso.core.data.OxfordNanoporeRun)1 PacBioRun (uk.ac.bbsrc.tgac.miso.core.data.PacBioRun)1 Run (uk.ac.bbsrc.tgac.miso.core.data.Run)1 SequencingParameters (uk.ac.bbsrc.tgac.miso.core.data.SequencingParameters)1 SolidRun (uk.ac.bbsrc.tgac.miso.core.data.SolidRun)1 InstrumentImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.InstrumentImpl)1 Sop (uk.ac.bbsrc.tgac.miso.core.data.impl.Sop)1 KitDescriptor (uk.ac.bbsrc.tgac.miso.core.data.impl.kit.KitDescriptor)1 InstrumentStatusPositionRun (uk.ac.bbsrc.tgac.miso.core.data.impl.view.instrumentstatus.InstrumentStatusPositionRun)1 ContainerQcControlRun (uk.ac.bbsrc.tgac.miso.core.data.qc.ContainerQcControlRun)1