Add additional lines to the header @param header the header @param extraHeaderLines lines to add
(VcfHeader header, Collection<String> extraHeaderLines)
| 944 | * @param extraHeaderLines lines to add |
| 945 | */ |
| 946 | public static void addHeaderLines(VcfHeader header, Collection<String> extraHeaderLines) { |
| 947 | for (final String extraLine : extraHeaderLines) { |
| 948 | try { |
| 949 | header.addMetaInformationLine(extraLine); |
| 950 | } catch (final VcfFormatException e) { |
| 951 | throw new VcfFormatException("Additional header line '" + extraLine + "', " + e.getMessage()); // Add context information |
| 952 | } |
| 953 | } |
| 954 | } |
| 955 | |
| 956 | /** |
| 957 | * Generate the haplotype obtained by asserting the first ALT allele in a VCF record. This is intended |
no test coverage detected