Exemple #1
0
 public void AddBaseQualites(int position, AlleleType alleleType, DirectionType directionType, double baseQuality, int anchorType)
 {
     if (IsPositionInRegion(position))
     {
         _sumOfAlleleBaseQualities[position - StartPosition, (int)alleleType, (int)directionType, anchorType] += baseQuality;
     }
 }
Exemple #2
0
 public void AddAlleleCount(int position, AlleleType alleleType, DirectionType directionType, int anchorType)
 {
     if (IsPositionInRegion(position))
     {
         _alleleCounts[position - StartPosition, (int)alleleType, (int)directionType, anchorType]++;
     }
 }
Exemple #3
0
        public double GetSumOfAlleleBaseQualites(int position, AlleleType alleleType, DirectionType directionType)
        {
            if (!IsPositionInRegion(position))
            {
                throw new ArgumentException(string.Format("Position {0} is not in region '{1}'.", position, Name));
            }

            return(_sumOfAlleleBaseQualities[position - StartPosition, (int)alleleType, (int)directionType]);
        }
Exemple #4
0
        public int GetAlleleCount(int position, AlleleType alleleType, DirectionType directionType)
        {
            if (!IsPositionInRegion(position))
            {
                throw new ArgumentException(string.Format("Position {0} is not in region '{1}'.", position, Name));
            }

            return(_alleleCounts[position - StartPosition, (int)alleleType, (int)directionType]);
        }
Exemple #5
0
        public double GetSumOfAlleleBaseQualites(int position, AlleleType alleleType, DirectionType directionType, int minAnchor = 0, int?maxAnchor = null, bool fromEnd = false, bool symmetric = false)
        {
            if (!IsPositionInRegion(position))
            {
                throw new ArgumentException(string.Format("Position {0} is not in region '{1}'.", position, Name));
            }
            var totCount = AlleleCountHelper.GetAnchorAdjustedTotalQuality(minAnchor, fromEnd, WellAnchoredIndex, NumAnchorIndexes,
                                                                           _sumOfAlleleBaseQualities, position - StartPosition, (int)alleleType, (int)directionType, _numAnchorTypes, maxAnchor, symmetric);

            return(totCount);
        }
        public double GetSumOfAlleleBaseQualities(int position, AlleleType alleleType, DirectionType directionType, int minAnchor = 0, int?maxAnchor = null, bool fromEnd = false, bool symmetric = false)
        {
            var region = GetBlock(position, false);

            return(region == null ? 0 : region.GetSumOfAlleleBaseQualites(position, alleleType, directionType, minAnchor, maxAnchor, fromEnd));
        }
        private void AddAlleleBaseQuality(int position, AlleleType alleleType, DirectionType directionType, double baseQuality, int anchorType)
        {
            var block = GetBlock(position);

            block.AddBaseQualites(position, alleleType, directionType, baseQuality, anchorType);
        }
        private void AddAlleleCount(int position, AlleleType alleleType, DirectionType directionType, int anchorType)
        {
            var block = GetBlock(position);

            block.AddAlleleCount(position, alleleType, directionType, anchorType);
        }
        public int GetAlleleCount(int position, AlleleType alleleType, DirectionType directionType, int minAnchor = 0, int?maxAnchor = null, bool fromEnd = false, bool symmetric = false)
        {
            var region = GetBlock(position, false);

            return(region == null ? 0 : region.GetAlleleCount(position, alleleType, directionType, minAnchor, maxAnchor, fromEnd, symmetric));
        }
        public int GetAlleleCount(int position, AlleleType alleleType, DirectionType directionType)
        {
            var region = GetBlock(position, false);

            return(region == null ? 0 : region.GetAlleleCount(position, alleleType, directionType));
        }
Exemple #11
0
 public AlleleCount(AlleleType alleleType)
 {
     AlleleType = alleleType;
 }
Exemple #12
0
        public double GetSumOfAlleleBaseQualities(int position, AlleleType alleleType, DirectionType directionType)
        {
            var region = GetBlock(position, false);

            return(region?.GetSumOfAlleleBaseQualites(position, alleleType, directionType) ?? 0);
        }