Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
        /// <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;
        }