Bugfix for not setting header in AbstractVCFCodec
This commit is contained in:
parent
6ca71fe3b4
commit
ade1843818
|
|
@ -176,7 +176,8 @@ public abstract class AbstractVCFCodec extends AsciiFeatureCodec<VariantContext>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new VCFHeader(metaData, sampleNames);
|
this.header = new VCFHeader(metaData, sampleNames);
|
||||||
|
return this.header;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ public class VCFCodec extends AbstractVCFCodec {
|
||||||
throw new TribbleException.InvalidHeader("We never saw a header line specifying VCF version");
|
throw new TribbleException.InvalidHeader("We never saw a header line specifying VCF version");
|
||||||
}
|
}
|
||||||
headerStrings.add(line);
|
headerStrings.add(line);
|
||||||
this.header = super.parseHeaderFromLines(headerStrings, version);
|
super.parseHeaderFromLines(headerStrings, version);
|
||||||
if ( headerForRepairs != null )
|
if ( headerForRepairs != null )
|
||||||
this.header = repairHeader(this.header, headerForRepairs);
|
this.header = repairHeader(this.header, headerForRepairs);
|
||||||
return this.header;
|
return this.header;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue