Beispiel #1
0
        /// <summary>
        /// Determines whether a read satisfies the conditions to be discarded.
        /// i.e. Does it meet the minimum mean quality score requirements?
        /// </summary>
        /// <param name="seqObj">A sequence object</param>
        /// <returns>True if it does not meet the minimum mean and thus
        /// will be discarded. False, otherwise.</returns>
        public override bool CanDiscard(ISequence seqObj)
        {
            var myMean = QualityScoreAnalyzer.GetMeanFromBytes(
                ((QualitativeSequence)seqObj).QualityScores.ToArray()
                );

            if (myMean < MeanQualityThreshold)
            {
                return(true);
            }
            return(false);
        }