Package com.infoclinika.mssharing.model.internal.entity

Examples of com.infoclinika.mssharing.model.internal.entity.FileReference


        return searchResults;
    }

    private SearchRunResult createSearchRunResult(SequestSearchPerFileResultResponse sResult, SearchRun searchRun) {
        return (sResult.errorMessage != null) ? new SearchRunResult(sResult.errorMessage)
                        : new SearchRunResult(searchRun, new FileReference(sResult.sqtFileRef), new FileReference(sResult.sqtDecoyFileRef),
                        new FileReference(sResult.resultsFileRef), new FileReference(sResult.isotopeGroupListFileRef),
                new FileReference(sResult.ms2FileRef), new FileReference(sResult.mzmlFileRef));
    }
View Full Code Here


    public MsDaplChartItem readChartInfoBySearchResult(long searchResultId) {
        final SearchResult searchResult = searchResultRepository.findOne(searchResultId);
        final MS2Scan scan = searchResult.getScan();
        final SearchRun searchRun = searchResult.getSearchRun();
        final String fileName = searchRun.getFile().getFileMetaData().getName();
        final FileReference chartDataRef = scan.getChartDataRef();
        final String key = chartDataRef.getKey();
        File file = new File(key);
        if (!(file.exists() && file.isFile())) {
            file = downloadMsDaplChartRef(chartDataRef, file);
        }
        final Gson gson = new GsonBuilder().serializeSpecialFloatingPointValues().create();
View Full Code Here

        final MS2Scan scan = scanRepository.findOne(scanId);

        final IsotopeGroupPerFile isotopeGroupPerFile = scan.getIsotopeGroupPerFile();
        final SearchRun searchRun = isotopeGroupPerFile.getSearchRun();
        final String fileName = searchRun.getFile().getFileMetaData().getName();
        final FileReference chartDataRef = scan.getChartDataRef();
        final String key = chartDataRef.getKey();
        File file = new File(key);
        if (!(file.exists() && file.isFile())) {
            file = downloadMsDaplChartRef(chartDataRef, file);
        }
        final Gson gson = new GsonBuilder().serializeSpecialFloatingPointValues().create();
View Full Code Here

        FileOperations.cleanupFile(file);
        for (IsotopeGroupPerFileDTO ig : isotopeGroups) {
            final IsotopeGroupPerFile isotopeGroupPerFile = isotopeGroupPerFileRepository.save(
                    new IsotopeGroupPerFile(searchRun, ig.getMonoMz(), ig.getRt(), ig.getCharge(), ig.getIntensity()));//todo performance!
            for (MS2ScanDTO scan : ig.getScans()) {
                final MS2Scan ms2Scan = new MS2Scan(scan.getScanNumber(), scan.getPrecursorIntensity(), isotopeGroupPerFile, new FileReference(scan.getChartInfoRef()));
                ms2ScanRepository.save(ms2Scan);       //todo performance!
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.infoclinika.mssharing.model.internal.entity.FileReference

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.