Package org.pharmgkb.parser.vcf
Class VcfWriter
java.lang.Object
org.pharmgkb.parser.vcf.VcfWriter
- All Implemented Interfaces:
Closeable,AutoCloseable
Writes to VCF format from a
VcfSample, VcfPositions, and VcfMetadata.
For now, this class performs little validation of its own, relying on VcfParser instead. For that reason, it
is currently package-accessible only.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidwriteHeader(VcfMetadata metadata) voidwriteLine(VcfMetadata metadata, VcfPosition position, List<VcfSample> samples)
-
Method Details
-
writeHeader
-
writeLine
public void writeLine(@Nonnull VcfMetadata metadata, @Nonnull VcfPosition position, @Nonnull List<VcfSample> samples) -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-