public class VCFStandardHeaderLines extends Object
Constructor and Description |
---|
VCFStandardHeaderLines() |
Modifier and Type | Method and Description |
---|---|
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> |
addStandardFormatLines(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 Set<String> |
addStandardInfoLines(Set<VCFHeaderLine> headerLines,
boolean throwErrorForMissing,
String... IDs) |
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)
header
- public static Set<String> addStandardFormatLines(Set<VCFHeaderLine> headerLines, boolean throwErrorForMissing, Collection<String> IDs)
IDs
- public static Set<String> addStandardFormatLines(Set<VCFHeaderLine> headerLines, boolean throwErrorForMissing, String... IDs)
headerLines
- throwErrorForMissing
- IDs
- addStandardFormatLines(java.util.Set, boolean, java.util.Collection)
public static VCFFormatHeaderLine getFormatLine(String ID, boolean throwErrorForMissing)
ID
- throwErrorForMissing
- public static VCFFormatHeaderLine getFormatLine(String ID)
ID
- public static Set<String> addStandardInfoLines(Set<VCFHeaderLine> headerLines, boolean throwErrorForMissing, Collection<String> IDs)
IDs
- public static Set<String> addStandardInfoLines(Set<VCFHeaderLine> headerLines, boolean throwErrorForMissing, String... IDs)
IDs
- addStandardFormatLines(java.util.Set, boolean, java.util.Collection)
public static VCFInfoHeaderLine getInfoLine(String ID, boolean throwErrorForMissing)
ID
- throwErrorForMissing
- public static VCFInfoHeaderLine getInfoLine(String ID)
ID
-