public void AddCustomAnnotation(ISupplementaryAnnotationPosition sa) { // sanity check: SVs don't use supplementary annotations for now if (IsStructuralVariant) { return; } sa.SetIsAlleleSpecific(SuppAltAllele); if (SupplementaryAnnotationPosition == null) { SupplementaryAnnotationPosition = sa; return; } if (SupplementaryAnnotationPosition.CustomItems != null) { SupplementaryAnnotationPosition.CustomItems.AddRange(sa.CustomItems); } else { SupplementaryAnnotationPosition.CustomItems = sa.CustomItems; } }
/// <summary> /// sets the supplementary annotation allele /// </summary> public void SetSupplementaryAnnotation(ISupplementaryAnnotationPosition sa) { // sanity check: SVs don't use supplementary annotations for now if (IsStructuralVariant) { return; } sa.SetIsAlleleSpecific(SuppAltAllele); SupplementaryAnnotationPosition = sa; }