Search in sources :

Example 1 with TargetedSequencing

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

the class DefaultKitDescriptorService method loadChildEntities.

private void loadChildEntities(KitDescriptor kitDescriptor) throws IOException {
    Set<TargetedSequencing> maybeManaged = Sets.newHashSet(kitDescriptor.getTargetedSequencing());
    kitDescriptor.clearTargetedSequencing();
    for (TargetedSequencing ts : maybeManaged) {
        if (ts != null && ts.isSaved()) {
            kitDescriptor.addTargetedSequencing(targetedSequencingService.get(ts.getId()));
        }
    }
}
Also used : TargetedSequencing(uk.ac.bbsrc.tgac.miso.core.data.impl.TargetedSequencing)

Example 2 with TargetedSequencing

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

the class DefaultLibraryAliquotServiceTest method testDistinctEmptyTargetedSequencingCompatibility.

@Test
public void testDistinctEmptyTargetedSequencingCompatibility() {
    TargetedSequencing ts1 = new TargetedSequencing();
    TargetedSequencing ts2 = new TargetedSequencing();
    addTargetedSequencing(ts2, aliquot);
    assertTrue(service.isTargetedSequencingCompatible(ts1, aliquot));
}
Also used : TargetedSequencing(uk.ac.bbsrc.tgac.miso.core.data.impl.TargetedSequencing) Test(org.junit.Test)

Example 3 with TargetedSequencing

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

the class DefaultLibraryAliquotServiceTest method defaultTargetedSequencing.

private TargetedSequencing defaultTargetedSequencing() {
    TargetedSequencing ts = new TargetedSequencing();
    ts.setId(id);
    ts.setAlias(alias);
    ts.setDescription(description);
    ts.setArchived(archived);
    return ts;
}
Also used : TargetedSequencing(uk.ac.bbsrc.tgac.miso.core.data.impl.TargetedSequencing)

Example 4 with TargetedSequencing

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

the class DefaultLibraryAliquotServiceTest method testEmptyTargetedSequencingCompatibility.

@Test
public void testEmptyTargetedSequencingCompatibility() {
    TargetedSequencing ts = new TargetedSequencing();
    addTargetedSequencing(ts, aliquot);
    assertTrue(service.isTargetedSequencingCompatible(ts, aliquot));
}
Also used : TargetedSequencing(uk.ac.bbsrc.tgac.miso.core.data.impl.TargetedSequencing) Test(org.junit.Test)

Example 5 with TargetedSequencing

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

the class DefaultLibraryAliquotServiceTest method testDistinctEqualTargetedSequencingCompatibility.

@Test
public void testDistinctEqualTargetedSequencingCompatibility() {
    TargetedSequencing ts1 = defaultTargetedSequencing();
    TargetedSequencing ts2 = defaultTargetedSequencing();
    addTargetedSequencing(ts2, aliquot);
    assertTrue(service.isTargetedSequencingCompatible(ts1, aliquot));
}
Also used : TargetedSequencing(uk.ac.bbsrc.tgac.miso.core.data.impl.TargetedSequencing) Test(org.junit.Test)

Aggregations

TargetedSequencing (uk.ac.bbsrc.tgac.miso.core.data.impl.TargetedSequencing)18 Test (org.junit.Test)10 AbstractDAOTest (uk.ac.bbsrc.tgac.miso.AbstractDAOTest)6 KitDescriptor (uk.ac.bbsrc.tgac.miso.core.data.impl.kit.KitDescriptor)5 IlluminaNotificationDto (ca.on.oicr.gsi.runscanner.dto.IlluminaNotificationDto)3 NotificationDto (ca.on.oicr.gsi.runscanner.dto.NotificationDto)3 OxfordNanoporeNotificationDto (ca.on.oicr.gsi.runscanner.dto.OxfordNanoporeNotificationDto)3 LibraryAliquot (uk.ac.bbsrc.tgac.miso.core.data.impl.LibraryAliquot)3 OrderAliquotDto (uk.ac.bbsrc.tgac.miso.dto.PoolOrderDto.OrderAliquotDto)3 QcHierarchyNodeDto (uk.ac.bbsrc.tgac.miso.dto.dashi.QcHierarchyNodeDto)3 IlluminaRunDto (uk.ac.bbsrc.tgac.miso.dto.run.IlluminaRunDto)3 IonTorrentRunDto (uk.ac.bbsrc.tgac.miso.dto.run.IonTorrentRunDto)3 Ls454RunDto (uk.ac.bbsrc.tgac.miso.dto.run.Ls454RunDto)3 OxfordNanoporeRunDto (uk.ac.bbsrc.tgac.miso.dto.run.OxfordNanoporeRunDto)3 PacBioRunDto (uk.ac.bbsrc.tgac.miso.dto.run.PacBioRunDto)3 RunDto (uk.ac.bbsrc.tgac.miso.dto.run.RunDto)3 RunPositionDto (uk.ac.bbsrc.tgac.miso.dto.run.RunPositionDto)3 SolidRunDto (uk.ac.bbsrc.tgac.miso.dto.run.SolidRunDto)3 User (com.eaglegenomics.simlims.core.User)1 ArrayList (java.util.ArrayList)1