public class VCFStandardHeaderLines extends Object
INFOand
FORMATfields. Provides simple mechanisms for 1) registering standard lines, 2) looking them up, and 3) adding them to headers.
Constructor | Description |
---|---|
VCFStandardHeaderLines() |
Modifier and Type | Method | Description |
---|---|---|
static Set<String> |
addStandardFormatLines(Set<VCFHeaderLine> headerLines,
boolean throwErrorForMissing,
String... IDs) |
|
static Set<String> |
addStandardFormatLines(Set<VCFHeaderLine> headerLines,
boolean throwErrorForMissing,
Collection<String> IDs) |
Adds header lines for each of the format fields in IDs to header, returning the set of
IDs without standard descriptions, unless throwErrorForMissing is true, in which
case this situation results in a TribbleException |
static Set<String> |
addStandardInfoLines(Set<VCFHeaderLine> headerLines,
boolean throwErrorForMissing,
String... IDs) |
|
static Set<String> |
addStandardInfoLines(Set<VCFHeaderLine> headerLines,
boolean throwErrorForMissing,
Collection<String> IDs) |
Adds header lines for each of the info fields in
IDs to header, returning the set of
IDs without standard descriptions, unless throwErrorForMissing is true, in which
case this situation results in a TribbleException . |
static VCFFormatHeaderLine |
getFormatLine(String ID) |
Returns the standard format line for
ID . |
static VCFFormatHeaderLine |
getFormatLine(String ID,
boolean throwErrorForMissing) |
Returns the standard format line for
ID . |
static VCFInfoHeaderLine |
getInfoLine(String ID) |
Returns the standard info line for
ID . |
static VCFInfoHeaderLine |
getInfoLine(String ID,
boolean throwErrorForMissing) |
Returns the standard info line for
ID . |
static VCFHeader |
repairStandardHeaderLines(VCFHeader header) |
Walks over the VCF header and repairs the standard VCF header lines in it, returning a freshly
allocated
VCFHeader with standard VCF header lines repaired as necessary. |
public static VCFHeader repairStandardHeaderLines(VCFHeader header)
VCFHeader
with standard VCF header lines repaired as necessary.public static Set<String> addStandardFormatLines(Set<VCFHeaderLine> headerLines, boolean throwErrorForMissing, Collection<String> IDs)
IDs
without standard descriptions, unless throwErrorForMissing
is true, in which
case this situation results in a TribbleException
public static Set<String> addStandardFormatLines(Set<VCFHeaderLine> headerLines, boolean throwErrorForMissing, String... IDs)
public static VCFFormatHeaderLine getFormatLine(String ID, boolean throwErrorForMissing)
ID
.
If none exists, return null or throw an exception, depending on throwErrorForMissing
.public static VCFFormatHeaderLine getFormatLine(String ID)
ID
.
If none exists, throw an TribbleException
public static Set<String> addStandardInfoLines(Set<VCFHeaderLine> headerLines, boolean throwErrorForMissing, Collection<String> IDs)
IDs
to header, returning the set of
IDs without standard descriptions, unless throwErrorForMissing
is true, in which
case this situation results in a TribbleException
.public static Set<String> addStandardInfoLines(Set<VCFHeaderLine> headerLines, boolean throwErrorForMissing, String... IDs)
public static VCFInfoHeaderLine getInfoLine(String ID, boolean throwErrorForMissing)
ID
.
If none exists, return null
or throw a TribbleException
, depending on throwErrorForMissing
.public static VCFInfoHeaderLine getInfoLine(String ID)
ID
.
If none exists throw a TribbleException
.