org.broadinstitute.hellbender.tools.walkers.variantrecalling.VariantRecallerResultWriter Maven / Gradle / Ivy
The newest version!
package org.broadinstitute.hellbender.tools.walkers.variantrecalling;
import htsjdk.samtools.CigarElement;
import htsjdk.samtools.CigarOperator;
import htsjdk.samtools.SAMFileHeader;
import htsjdk.samtools.util.Locatable;
import htsjdk.samtools.util.Tuple;
import htsjdk.variant.variantcontext.Allele;
import htsjdk.variant.variantcontext.VariantContext;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils;
import org.broadinstitute.hellbender.exceptions.GATKException;
import org.broadinstitute.hellbender.tools.walkers.haplotypecaller.AssemblyResultSet;
import org.broadinstitute.hellbender.utils.SimpleInterval;
import org.broadinstitute.hellbender.utils.genotyper.AlleleLikelihoods;
import org.broadinstitute.hellbender.utils.genotyper.LikelihoodMatrix;
import org.broadinstitute.hellbender.utils.read.GATKRead;
import org.broadinstitute.hellbender.utils.read.FlowBasedRead;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.*;
public class VariantRecallerResultWriter {
final PrintWriter pw;
boolean first = true;
final boolean debugFormat = false;
protected VariantRecallerResultWriter(final File file) {
try {
pw = new PrintWriter(file);
} catch (IOException e) {
throw new GATKException("Unable to open output file: " + file.getAbsolutePath(), e);
}
}
protected void close() {
pw.close();
}
protected void add(final Locatable loc, final List © 2015 - 2025 Weber Informatics LLC | Privacy Policy