Package com.infoclinika.mssharing.model.read.DetailsReader.ExperimentSearchItem

Examples of com.infoclinika.mssharing.model.read.DetailsReader.ExperimentSearchItem.ExperimentSearchParamsItem


    public ExperimentSearchItem readExperimentSearch(long actor, long experimentSearchId) {
        final ExperimentSearch search = experimentSearchRepository.findOne(experimentSearchId);
        if(search == null) throw new ObjectNotFoundException("Experiment search is not found");

        if(!ruleValidator.isUserCanReadExperimentSearch(actor, experimentSearchId)) throw new AccessDenied("Can't read experiment search");
        final ExperimentSearchParamsItem params = getExperimentSearchItemsParams(search);
        final List<RawFile> rawFiles = experimentSearchRepository.findRawFilesByExperimentSearch(experimentSearchId);
        final List<Long> filesId = transform(rawFiles, new Function<RawFile, Long>() {
            @Override
            public Long apply(RawFile rawFile) {
                return rawFile.fileMetaData.getId();
View Full Code Here


    private ExperimentSearchParamsItem getExperimentSearchItemsParams(ExperimentSearch run) {
        final ExperimentSearchParamsData p = run.getData().getParams();
        final ExperimentSearchParamsData.CometParamsData cP = p.getCometParams();
        final ExperimentSearchParamsData.Ms2ProcessorParamsData mP = p.getMs2ProcessorParams();
        return new ExperimentSearchParamsItem(new RunItemMs2Params(mP.getMaxCharge(), mP.getIsolationWidth()),
                new RunItemCometParams(cP.getSequestSearchDB().getId(), cP.getMaxPrecursorCharge(), cP.getPeptideMassTolerance(), cP.getPeptideMassUnits(), cP.getMassTypeParent(),
                        cP.getMassTypeFragment(), cP.getPrecursorToleranceType(), cP.getSearchEnzymeNumber(), cP.getNumEnzymeTermini(), newLinkedList(cP.getModificationParams())));
    }
View Full Code Here

TOP

Related Classes of com.infoclinika.mssharing.model.read.DetailsReader.ExperimentSearchItem.ExperimentSearchParamsItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.