public class VCFUtils
extends java.lang.Object
| Constructor and Description |
|---|
VCFUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<VCFContigHeaderLine> |
makeContigHeaderLines(SAMSequenceDictionary refDict,
java.io.File referenceFile)
Create VCFHeaderLines for each refDict entry, and optionally the assembly if referenceFile != null
|
static java.util.Set<VCFHeaderLine> |
smartMergeHeaders(java.util.Collection<VCFHeader> headers,
boolean emitWarnings) |
static VCFHeader |
withUpdatedContigs(VCFHeader oldHeader,
java.io.File referenceFile,
SAMSequenceDictionary refDict)
Add / replace the contig header lines in the VCFHeader with the in the reference file and master reference dictionary
|
static java.util.Set<VCFHeaderLine> |
withUpdatedContigsAsLines(java.util.Set<VCFHeaderLine> oldLines,
java.io.File referenceFile,
SAMSequenceDictionary refDict) |
static java.util.Set<VCFHeaderLine> |
withUpdatedContigsAsLines(java.util.Set<VCFHeaderLine> oldLines,
java.io.File referenceFile,
SAMSequenceDictionary refDict,
boolean referenceNameOnly) |
public static java.util.Set<VCFHeaderLine> smartMergeHeaders(java.util.Collection<VCFHeader> headers, boolean emitWarnings) throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionpublic static VCFHeader withUpdatedContigs(VCFHeader oldHeader, java.io.File referenceFile, SAMSequenceDictionary refDict)
oldHeader - the header to updatereferenceFile - the file path to the reference sequence used to generate this vcfrefDict - the SAM formatted reference sequence dictionarypublic static java.util.Set<VCFHeaderLine> withUpdatedContigsAsLines(java.util.Set<VCFHeaderLine> oldLines, java.io.File referenceFile, SAMSequenceDictionary refDict)
public static java.util.Set<VCFHeaderLine> withUpdatedContigsAsLines(java.util.Set<VCFHeaderLine> oldLines, java.io.File referenceFile, SAMSequenceDictionary refDict, boolean referenceNameOnly)
public static java.util.List<VCFContigHeaderLine> makeContigHeaderLines(SAMSequenceDictionary refDict, java.io.File referenceFile)
refDict - reference dictionaryreferenceFile - for assembly name. May be null