Search in sources :

Example 6 with StandardCovariateList

use of org.broadinstitute.hellbender.utils.recalibration.covariates.StandardCovariateList in project gatk by broadinstitute.

the class BaseRecalibratorEngineSparkWrapper method saveTextualReport.

// saves to output
public static void saveTextualReport(String output, SAMFileHeader header, RecalibrationTables rt, RecalibrationArgumentCollection recalArgs, AuthHolder auth) throws IOException {
    OutputStream oStream = BucketUtils.createFile(output);
    QuantizationInfo qi = new QuantizationInfo(rt, recalArgs.QUANTIZING_LEVELS);
    if (recalArgs.FORCE_PLATFORM != null) {
        recalArgs.DEFAULT_PLATFORM = recalArgs.FORCE_PLATFORM;
    }
    StandardCovariateList covariates = new StandardCovariateList(recalArgs, header);
    try (PrintStream reportStream = new PrintStream(oStream)) {
        RecalUtils.outputRecalibrationReport(reportStream, recalArgs, qi, rt, covariates);
    }
}
Also used : PrintStream(java.io.PrintStream) OutputStream(java.io.OutputStream) StandardCovariateList(org.broadinstitute.hellbender.utils.recalibration.covariates.StandardCovariateList)

Aggregations

StandardCovariateList (org.broadinstitute.hellbender.utils.recalibration.covariates.StandardCovariateList)6 File (java.io.File)2 UserException (org.broadinstitute.hellbender.exceptions.UserException)2 GATKVariant (org.broadinstitute.hellbender.utils.variant.GATKVariant)2 SAMFileHeader (htsjdk.samtools.SAMFileHeader)1 SAMSequenceDictionary (htsjdk.samtools.SAMSequenceDictionary)1 IOException (java.io.IOException)1 OutputStream (java.io.OutputStream)1 PrintStream (java.io.PrintStream)1 ArrayList (java.util.ArrayList)1 Arrays (java.util.Arrays)1 List (java.util.List)1 Collectors (java.util.stream.Collectors)1 IntStream (java.util.stream.IntStream)1 ContextShard (org.broadinstitute.hellbender.engine.ContextShard)1 ReadContextData (org.broadinstitute.hellbender.engine.ReadContextData)1 ReferenceDataSource (org.broadinstitute.hellbender.engine.ReferenceDataSource)1 ReferenceMemorySource (org.broadinstitute.hellbender.engine.ReferenceMemorySource)1 ReferenceMultiSource (org.broadinstitute.hellbender.engine.datasources.ReferenceMultiSource)1 ReadFilter (org.broadinstitute.hellbender.engine.filters.ReadFilter)1