MCPcopy Create free account
hub / github.com/RealTimeGenomics/rtg-tools / addHeaderLines

Method addHeaderLines

src/main/java/com/rtg/vcf/VcfUtils.java:946–954  ·  view source on GitHub ↗

Add additional lines to the header @param header the header @param extraHeaderLines lines to add

(VcfHeader header, Collection<String> extraHeaderLines)

Source from the content-addressed store, hash-verified

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

Callers 3

processMethod · 0.95
mainExecMethod · 0.95
mainExecMethod · 0.95

Calls 2

getMessageMethod · 0.45

Tested by

no test coverage detected