Class VCFCompoundHeaderLine

    • Method Detail

      • getDescription

        public String getDescription()
      • isFixedCount

        public boolean isFixedCount()
      • getCount

        public int getCount()
      • getCount

        public int getCount​(VariantContext vc)
        Get the number of values expected for this header field, given the properties of VariantContext vc If the count is a fixed count, return that. For example, a field with size of 1 in the header returns 1 If the count is of type A, return vc.getNAlleles - 1 If the count is of type R, return vc.getNAlleles If the count is of type G, return the expected number of genotypes given the number of alleles in VC and the max ploidy among all samples. Note that if the max ploidy of the VC is 0 (there's no GT information at all, then implicitly assume diploid samples when computing G values. If the count is UNBOUNDED return -1
        Parameters:
        vc -
        Returns:
      • setNumberToUnbounded

        public void setNumberToUnbounded()
      • toStringEncoding

        protected String toStringEncoding()
        make a string representation of this header line
        Overrides:
        toStringEncoding in class VCFHeaderLine
        Returns:
        a string representation
      • equals

        public boolean equals​(Object o)
        returns true if we're equal to another compound header line
        Overrides:
        equals in class VCFHeaderLine
        Parameters:
        o - a compound header line
        Returns:
        true if equal
      • equalsExcludingDescription

        public boolean equalsExcludingDescription​(VCFCompoundHeaderLine other)