Package org.bioinfo.ngs.qc.qualimap.beans

Examples of org.bioinfo.ngs.qc.qualimap.beans.StatsReporter


        if (res != 0) {
            throw new RuntimeException("The RScript process finished with error.\n" +
                    " Check log for details.");
        }

        StatsReporter statsReporter = new StatsReporter();
        statsReporter.setName("Global");
        statsReporter.setFileName( "GlobalReport" );

        if (!loadBufferedImages(statsReporter, workDir) ) {
            throw new RuntimeException("No plots for global analysis generated.");
        }

        prepareInputDescription(statsReporter);
        tabProperties.addReporter(statsReporter);


        if (compareConditions) {
            String compareDirPath = workDir + File.separator + COMPARISON_ANALYSIS;
            StatsReporter reporter = new StatsReporter();
            reporter.setName(COMPARISON_ANALYSIS);
            reporter.setFileName( COMPARISON_ANALYSIS + "Report");
            if (!loadBufferedImages(reporter, compareDirPath) ) {
                 throw new RuntimeException("No images generated for comparison of conditions!");
            }
            tabProperties.addReporter(reporter);
        }


        for (CountsSampleInfo sampleInfo : samples) {

            String sampleDirPath = workDir + File.separator + sampleInfo.name;
            StatsReporter reporter = new StatsReporter();
            reporter.setName(sampleInfo.name);
            reporter.setFileName( sampleInfo.name.replaceAll("\\s+","") + "Report");
            if (!loadBufferedImages(reporter, sampleDirPath) ) {
                throw new RuntimeException("No images generated for sample " + sampleInfo.name);
            }
            tabProperties.addReporter(reporter);
View Full Code Here


            throw new RuntimeException("The RScript process finished with error.\n" +
                    " Check log for details.");
        }

        reportProgress("Loading images...");
        StatsReporter statsReporter = new StatsReporter();
        if (!loadBufferedImages(statsReporter, workDir) ) {
            throw new RuntimeException("No images generated.");
        }

        prepareInputDescription(statsReporter);
View Full Code Here

        }
        outWriter.flush();
    }

    private void createResultReport() throws IOException {
        StatsReporter reporter = new StatsReporter();
        prepareHtmlSummary(reporter);
        prepareInputDescription(reporter);
        createCharts(reporter);

        resultManager.addReporter(reporter);
View Full Code Here

        private void maybeShowPopup(MouseEvent e) {
            if (e.isPopupTrigger()) {
                JPopupMenu popup = new JPopupMenu();
                final String graphicName = tabPageController.getLoadedGraphicName();
                StatsReporter reporter = tabPageController.getActiveReporter();
                if (!graphicName.isEmpty())  {
                    JMenuItem savePictureItem = createSaveGraphicMenuItem(reporter, graphicName);
                    popup.add(savePictureItem);

                    QChart chart = tabPageController.getActiveReporter().findChartByName(graphicName);
View Full Code Here

TOP

Related Classes of org.bioinfo.ngs.qc.qualimap.beans.StatsReporter

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.