Class HaplotypeBAMDestination
java.lang.Object
org.broadinstitute.hellbender.utils.haplotype.HaplotypeBAMDestination
- Direct Known Subclasses:
SAMFileDestination
Utility class that allows easy creation of destinations for the HaplotypeBAMWriters
-
Constructor Summary
ModifierConstructorDescriptionprotected
HaplotypeBAMDestination
(htsjdk.samtools.SAMFileHeader sourceHeader, Optional<String> haplotypeReadGroupID) Create a new HaplotypeBAMDestination -
Method Summary
Modifier and TypeMethodDescriptionabstract void
Write a read to the output specified by this destination.htsjdk.samtools.SAMFileHeader
Get the SAMFileHeader that is used for writing the output for this destination.Get the read group ID that is used by this writer when writing halpotypes as reads.Get the sample tag that is used by this writer when writing halpotypes as reads.
-
Constructor Details
-
HaplotypeBAMDestination
protected HaplotypeBAMDestination(htsjdk.samtools.SAMFileHeader sourceHeader, Optional<String> haplotypeReadGroupID) Create a new HaplotypeBAMDestination- Parameters:
sourceHeader
- SAMFileHeader used to seed the output SAMFileHeader for this destination.haplotypeReadGroupID
- read group ID used when writing haplotypes as reads. Empty ifHaplotypeBAMWriter.WriterType
== NO_HAPLOTYPES.
-
-
Method Details
-
add
Write a read to the output specified by this destination.- Parameters:
read
- the read to write out
-
getHaplotypeReadGroupID
Get the read group ID that is used by this writer when writing halpotypes as reads. IfHaplotypeBAMWriter.WriterType
is NO_HAPLOTYPES, then returns Optional.empty()- Returns:
- read group ID
-
getHaplotypeSampleTag
Get the sample tag that is used by this writer when writing halpotypes as reads.- Returns:
- sample tag
-
getBAMOutputHeader
public htsjdk.samtools.SAMFileHeader getBAMOutputHeader()Get the SAMFileHeader that is used for writing the output for this destination.- Returns:
- output SAMFileHeader
-