Class SAMFileDestination
java.lang.Object
org.broadinstitute.hellbender.utils.haplotype.HaplotypeBAMDestination
org.broadinstitute.hellbender.utils.haplotype.SAMFileDestination
Class used to direct output from a HaplotypeBAMWriter to a bam/sam file.
-
Constructor Summary
ConstructorDescriptionSAMFileDestination
(Path outPath, boolean createBamOutIndex, boolean createBamOutMD5, htsjdk.samtools.SAMFileHeader sourceHeader, Optional<String> haplotypeReadGroupID) Create a new file destination. -
Method Summary
Methods inherited from class org.broadinstitute.hellbender.utils.haplotype.HaplotypeBAMDestination
getBAMOutputHeader, getHaplotypeReadGroupID, getHaplotypeSampleTag
-
Constructor Details
-
SAMFileDestination
public SAMFileDestination(Path outPath, boolean createBamOutIndex, boolean createBamOutMD5, htsjdk.samtools.SAMFileHeader sourceHeader, Optional<String> haplotypeReadGroupID) Create a new file destination.- Parameters:
outPath
- path where output is written (doesn't have to be local)createBamOutIndex
- true to create an index file for the bamoutcreateBamOutMD5
- true to create an md5 file for the bamoutsourceHeader
- SAMFileHeader used to seed the output SAMFileHeader for this destination, must not be nullhaplotypeReadGroupID
- read group ID used when writing haplotypes as reads. Empty ifHaplotypeBAMWriter.WriterType
== NO_HAPLOTYPES.
-
-
Method Details
-
add
Write a read to the output file specified by this destination.- Specified by:
add
in classHaplotypeBAMDestination
- Parameters:
read
- the read to write out, must not be null
-