コード例 #1
0
ファイル: AlternateAllele.cs プロジェクト: YuJiang01/Nirvana
        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;
            }
        }
コード例 #2
0
ファイル: AlternateAllele.cs プロジェクト: YuJiang01/Nirvana
        /// <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;
        }