public final String getField() { return headerLine.getID(); }
public Flag(final VCFCompoundHeaderLine headerLine, final Map<String, Integer> dict) { super(headerLine, dict, BCF2Type.INT8); if (!headerLine.isFixedCount() || headerLine.getCount() != 0) throw new IllegalStateException( "Flag encoder only supports atomic flags for field " + getField()); }
/** * Get the number of elements, assuming this field has a constant number of elements. * * @return */ public int numElements() { return headerLine.getCount(); }
/** * Get the number of elements, assuming this field has context-determined number of elements. * * @return */ public int numElements(final VariantContext vc) { return headerLine.getCount(vc); }
protected final VCFHeaderLineCount getCountType() { return headerLine.getCountType(); }