use of uk.ac.bbsrc.tgac.miso.core.data.impl.SampleTissuePieceImpl in project miso-lims by miso-lims.
the class Dtos method toTissuePieceSample.
private static SampleTissuePiece toTissuePieceSample(@Nonnull SampleTissuePieceDto from) {
SampleTissuePiece to = new SampleTissuePieceImpl();
TissuePieceType tissuePieceType = new TissuePieceType();
tissuePieceType.setId(from.getTissuePieceTypeId());
to.setTissuePieceType(tissuePieceType);
to.setSlidesConsumed(from.getSlidesConsumed());
setObject(to::setReferenceSlide, SampleSlideImpl::new, from.getReferenceSlideId());
return to;
}
use of uk.ac.bbsrc.tgac.miso.core.data.impl.SampleTissuePieceImpl in project miso-lims by miso-lims.
the class OicrSampleAliasGeneratorTest method makeLcmTube.
private SampleTissuePiece makeLcmTube() {
SampleTissuePiece lcmTube = new SampleTissuePieceImpl();
SampleTissue tissue = makeMinimalTissue();
tissue.setAlias("PROJ_0001_nn_n_nn_1-1");
lcmTube.setParent(tissue);
lcmTube.setSiblingNumber(2);
SampleClass sc = new SampleClassImpl();
sc.setSampleCategory(SampleTissueProcessing.CATEGORY_NAME);
sc.setSuffix("LCM");
lcmTube.setSampleClass(sc);
return lcmTube;
}
use of uk.ac.bbsrc.tgac.miso.core.data.impl.SampleTissuePieceImpl in project miso-lims by miso-lims.
the class V2SampleAliasGeneratorTest method makeLcmTube.
private SampleTissuePiece makeLcmTube() {
SampleTissuePiece lcmTube = new SampleTissuePieceImpl();
SampleTissue tissue = makeTissue();
tissue.setAlias("PROJ_0001_01");
lcmTube.setParent(tissue);
lcmTube.setSiblingNumber(2);
SampleClass sc = new SampleClassImpl();
sc.setSampleCategory(SampleTissueProcessing.CATEGORY_NAME);
lcmTube.setSampleClass(sc);
TissuePieceType pieceType = new TissuePieceType();
pieceType.setV2NamingCode("TL");
lcmTube.setTissuePieceType(pieceType);
return lcmTube;
}
Aggregations