Search in sources :

Example 1 with AssayTest

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

the class AssayTestDto method to.

public AssayTest to() {
    AssayTest to = new AssayTest();
    setLong(to::setId, getId(), false);
    setString(to::setAlias, getAlias());
    setObject(to::setTissueType, TissueTypeImpl::new, getTissueTypeId());
    setObject(to::setExtractionClass, SampleClassImpl::new, getExtractionClassId());
    setBoolean(to::setNegateTissueType, isNegateTissueType(), false);
    setObject(to::setLibraryDesignCode, LibraryDesignCode::new, getLibraryDesignCodeId());
    setObject(to::setLibraryQualificationMethod, getLibraryQualificationMethod(), LibraryQualificationMethod::valueOf);
    setObject(to::setLibraryQualificationDesignCode, LibraryDesignCode::new, getLibraryQualificationDesignCodeId());
    setBoolean(to::setRepeatPerTimepoint, isRepeatPerTimepoint(), false);
    return to;
}
Also used : LibraryDesignCode(uk.ac.bbsrc.tgac.miso.core.data.LibraryDesignCode) AssayTest(uk.ac.bbsrc.tgac.miso.core.data.impl.AssayTest) SampleClassImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.SampleClassImpl) LibraryQualificationMethod(uk.ac.bbsrc.tgac.miso.core.data.impl.AssayTest.LibraryQualificationMethod) TissueTypeImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.TissueTypeImpl)

Example 2 with AssayTest

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

the class HibernateAssayTestDaoIT method getCreateItem.

@Override
public AssayTest getCreateItem() {
    AssayTest test = new AssayTest();
    test.setAlias("Test test");
    TissueType tissueType = (TissueType) currentSession().get(TissueTypeImpl.class, 1L);
    test.setTissueType(tissueType);
    SampleClass extractionClass = (SampleClass) currentSession().get(SampleClassImpl.class, 3L);
    test.setExtractionClass(extractionClass);
    LibraryDesignCode code = (LibraryDesignCode) currentSession().get(LibraryDesignCode.class, 2L);
    test.setLibraryDesignCode(code);
    test.setLibraryQualificationMethod(AssayTest.LibraryQualificationMethod.LOW_DEPTH_SEQUENCING);
    return test;
}
Also used : LibraryDesignCode(uk.ac.bbsrc.tgac.miso.core.data.LibraryDesignCode) AssayTest(uk.ac.bbsrc.tgac.miso.core.data.impl.AssayTest) TissueType(uk.ac.bbsrc.tgac.miso.core.data.TissueType) SampleClass(uk.ac.bbsrc.tgac.miso.core.data.SampleClass) SampleClassImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.SampleClassImpl) TissueTypeImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.TissueTypeImpl)

Aggregations

LibraryDesignCode (uk.ac.bbsrc.tgac.miso.core.data.LibraryDesignCode)2 AssayTest (uk.ac.bbsrc.tgac.miso.core.data.impl.AssayTest)2 SampleClassImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.SampleClassImpl)2 TissueTypeImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.TissueTypeImpl)2 SampleClass (uk.ac.bbsrc.tgac.miso.core.data.SampleClass)1 TissueType (uk.ac.bbsrc.tgac.miso.core.data.TissueType)1 LibraryQualificationMethod (uk.ac.bbsrc.tgac.miso.core.data.impl.AssayTest.LibraryQualificationMethod)1