/** * Compute the end position for this VariantContext from the alleles themselves * * assigns this builder the stop position computed. * * @param alleles the list of alleles to consider. The reference allele must be the first one * @param start the known start position of this event * @param endForSymbolicAlleles the end position to use if any of the alleles is symbolic. Can be -1 * if no is expected but will throw an error if one is found * @return this builder */ public VariantContextBuilder computeEndFromAlleles(final List<Allele> alleles, final int start, final int endForSymbolicAlleles) { stop(VariantContextUtils.computeEndFromAlleles(alleles, start, endForSymbolicAlleles)); return this; }
/** * Compute the end position for this VariantContext from the alleles themselves * * assigns this builder the stop position computed. * * @param alleles the list of alleles to consider. The reference allele must be the first one * @param start the known start position of this event * @param endForSymbolicAlleles the end position to use if any of the alleles is symbolic. Can be -1 * if no is expected but will throw an error if one is found * @return this builder */ public VariantContextBuilder computeEndFromAlleles(final List<Allele> alleles, final int start, final int endForSymbolicAlleles) { stop(VariantContextUtils.computeEndFromAlleles(alleles, start, endForSymbolicAlleles)); return this; }
/** * Compute the end position for this VariantContext from the alleles themselves * * assigns this builder the stop position computed. * * @param alleles the list of alleles to consider. The reference allele must be the first one * @param start the known start position of this event * @param endForSymbolicAlleles the end position to use if any of the alleles is symbolic. Can be -1 * if no is expected but will throw an error if one is found * @return this builder */ @Requires({"! alleles.isEmpty()", "start > 0", "endForSymbolicAlleles == -1 || endForSymbolicAlleles > 0" }) public VariantContextBuilder computeEndFromAlleles(final List<Allele> alleles, final int start, final int endForSymbolicAlleles) { stop(VariantContextUtils.computeEndFromAlleles(alleles, start, endForSymbolicAlleles)); return this; }