gatk-3.8/java/src/org/broadinstitute/sting/gatk/io/StingSAMFileWriter.java

25 lines
692 B
Java
Raw Normal View History

package org.broadinstitute.sting.gatk.io;
import net.sf.samtools.SAMFileWriter;
import net.sf.samtools.SAMFileHeader;
/**
* A writer that will allow unsorted BAM files to be written
* and sorted on-the-fly.
*
* @author mhanna
* @version 0.1
*/
public interface StingSAMFileWriter extends SAMFileWriter {
/**
* Writes the given custom header to SAM file output.
* @param header The header to write.
*/
public void writeHeader(SAMFileHeader header);
/**
* Set Whether the BAM file to create is actually presorted.
* @param presorted True if the BAM file is presorted. False otherwise.
*/
public void setPresorted(boolean presorted);
}