Search in sources :

Example 1 with ScientificName

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

the class DefaultSampleServiceTest method mockScientificName.

private ScientificName mockScientificName(long id, String alias) throws IOException {
    ScientificName sn = new ScientificName();
    sn.setId(id);
    sn.setAlias(alias);
    Mockito.when(scientificNameService.get(id)).thenReturn(sn);
    return sn;
}
Also used : ScientificName(uk.ac.bbsrc.tgac.miso.core.data.ScientificName)

Example 2 with ScientificName

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

the class DefaultSampleServiceTest method makeUnsavedChildTissue.

private SampleTissue makeUnsavedChildTissue() throws IOException {
    SampleTissue sample = makeUnsavedParentTissue();
    sample.setSampleType("type");
    ScientificName sn = mockScientificName(1L, "scientific");
    sample.setScientificName(sn);
    mockShellProjectWithRealLookup(sample);
    return sample;
}
Also used : SampleTissue(uk.ac.bbsrc.tgac.miso.core.data.SampleTissue) ScientificName(uk.ac.bbsrc.tgac.miso.core.data.ScientificName)

Example 3 with ScientificName

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

the class Dtos method to.

public static ReferenceGenome to(@Nonnull ReferenceGenomeDto from) {
    ReferenceGenome to = new ReferenceGenomeImpl();
    setLong(to::setId, from.getId(), false);
    setString(to::setAlias, from.getAlias());
    setObject(to::setDefaultScientificName, ScientificName::new, from.getDefaultScientificNameId());
    return to;
}
Also used : ReferenceGenomeImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.ReferenceGenomeImpl) ReferenceGenome(uk.ac.bbsrc.tgac.miso.core.data.ReferenceGenome) 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) ScientificName(uk.ac.bbsrc.tgac.miso.core.data.ScientificName)

Example 4 with ScientificName

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

the class Dtos method to.

public static ScientificName to(@Nonnull ScientificNameDto from) {
    ScientificName to = new ScientificName();
    setLong(to::setId, from.getId(), false);
    setString(to::setAlias, from.getAlias());
    return to;
}
Also used : 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) ScientificName(uk.ac.bbsrc.tgac.miso.core.data.ScientificName)

Example 5 with ScientificName

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

the class HibernateScientificNameDaoIT method getCreateItem.

@Override
public ScientificName getCreateItem() {
    ScientificName item = new ScientificName();
    item.setAlias("New Sci Name");
    return item;
}
Also used : ScientificName(uk.ac.bbsrc.tgac.miso.core.data.ScientificName)

Aggregations

ScientificName (uk.ac.bbsrc.tgac.miso.core.data.ScientificName)7 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 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 DetailedSample (uk.ac.bbsrc.tgac.miso.core.data.DetailedSample)2 Sample (uk.ac.bbsrc.tgac.miso.core.data.Sample)2 SampleImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.SampleImpl)2 User (com.eaglegenomics.simlims.core.User)1 Test (org.junit.Test)1 AbstractDAOTest (uk.ac.bbsrc.tgac.miso.AbstractDAOTest)1