Class SortingVariantContextWriter
java.lang.Object
htsjdk.variant.variantcontext.writer.SortingVariantContextWriter
- All Implemented Interfaces:
VariantContextWriter,Closeable,AutoCloseable
Deprecated.
9/2017, this class is completely untested and unsupported, there is no replacement at this time
if you use this class please file an issue on github or it will be removed at some point in the future
this class writes VCF files, allowing records to be passed in unsorted (up to a certain genomic distance away)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intDeprecated.protected IntegerDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionSortingVariantContextWriter(VariantContextWriter innerWriter, int maxCachingStartDistance) Deprecated.SortingVariantContextWriter(VariantContextWriter innerWriter, int maxCachingStartDistance, boolean takeOwnershipOfInner) Deprecated.create a local-sorting VCF writer, given an inner VCF writer to write to -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(VariantContext vc) Deprecated.add a record to the filebooleanDeprecated.voidclose()Deprecated.attempt to close the VCF file; we need to flush the queue firstprotected voidDeprecated.protected voidDeprecated.voidDeprecated.Sets the VCF header so that data blocks can be written without writing the header Exactly one of writeHeader() or setHeader() should be called when using a writertoString()Deprecated.Gets a string representation of this object.voidwriteHeader(VCFHeader header) Deprecated.Writes the header
-
Field Details
-
mostUpstreamWritableLoc
Deprecated. -
BEFORE_MOST_UPSTREAM_LOC
protected static final int BEFORE_MOST_UPSTREAM_LOCDeprecated.- See Also:
-
-
Constructor Details
-
SortingVariantContextWriter
public SortingVariantContextWriter(VariantContextWriter innerWriter, int maxCachingStartDistance, boolean takeOwnershipOfInner) Deprecated.create a local-sorting VCF writer, given an inner VCF writer to write to- Parameters:
innerWriter- the VCFWriter to write tomaxCachingStartDistance- the maximum start distance between records that we'll cachetakeOwnershipOfInner- Should this Writer close innerWriter when it's done with it
-
SortingVariantContextWriter
Deprecated.
-
-
Method Details
-
noteCurrentRecord
Deprecated. -
checkError
public boolean checkError()Deprecated.- Returns:
- true if the underlying stream is a java.io.PrintStream and its checkError returned true, used for pipelines
-
writeHeader
Deprecated.Description copied from interface:VariantContextWriterWrites the header- Specified by:
writeHeaderin interfaceVariantContextWriter- Parameters:
header- header
-
close
public void close()Deprecated.attempt to close the VCF file; we need to flush the queue first- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceVariantContextWriter
-
add
Deprecated.add a record to the file- Specified by:
addin interfaceVariantContextWriter- Parameters:
vc- the Variant Context object
-
setHeader
Deprecated.Description copied from interface:VariantContextWriterSets the VCF header so that data blocks can be written without writing the header Exactly one of writeHeader() or setHeader() should be called when using a writer- Specified by:
setHeaderin interfaceVariantContextWriter- Parameters:
header- VCF header
-
toString
Deprecated.Gets a string representation of this object. -
emitSafeRecords
protected void emitSafeRecords()Deprecated.
-