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

Method parseHeader

src/main/java/com/rtg/vcf/VcfParser.java:66–70  ·  view source on GitHub ↗

Parse the header from a file. @param f the file @return the header @throws IOException if there is a problem reading the source

(File f)

Source from the content-addressed store, hash-verified

64 * @throws IOException if there is a problem reading the source
65 */
66 public VcfHeader parseHeader(File f) throws IOException {
67 try (Reader r = new InputStreamReader(FileUtils.createInputStream(f, false))) {
68 return parseHeader(r);
69 }
70 }
71
72 // Convenience method
73 VcfHeader parseHeader(Reader r) throws IOException {

Callers 8

testBadHdrMethod · 0.45
testHeader0Method · 0.45
testHeader4v2Method · 0.45
VcfReaderMethod · 0.45
makeMethod · 0.45
getHeaderMethod · 0.45

Calls 7

createInputStreamMethod · 0.95
addColumnHeaderLineMethod · 0.95
getVersionLineMethod · 0.95
readLineMethod · 0.65
closeMethod · 0.65
getMessageMethod · 0.45

Tested by 4

testBadHdrMethod · 0.36
testHeader0Method · 0.36
testHeader4v2Method · 0.36