Example #1
0
        public static List <DiCalc> DinucCalcOut(string _seq)
        {
            string seq = _seq.ToLower();
            var    di  = new DinuCalc();

            var diList = di.DinucCalc(seq);

            return(diList);
        }
Example #2
0
        public static double DinucCalcFrqDiffSumOut(string _seq)
        {
            string seq      = _seq.ToLower();
            double diFrqSum = 0;
            var    di       = new DinuCalc();

            var diList = di.DinucCalc(seq);

            foreach (var item in diList)
            {
                diFrqSum += Math.Abs(item.dinucFrq[2]);
            }
            return(diFrqSum);
        }
Example #3
0
        public static void DinucCalcFrqDiffSum(string _seq)
        {
            string seq      = _seq.ToLower();
            double diFrqSum = 0;
            var    di       = new DinuCalc();

            var diList = di.DinucCalc(seq);

            foreach (var item in diList)
            {
                diFrqSum += Math.Abs(item.dinucFrq[2]);
            }
            Console.WriteLine("\nDinuc frq diff sum: " + diFrqSum.ToString("0.0000"));
        }
Example #4
0
        public static void DinucCalcDiffSum(string _seq)
        {
            string seq        = _seq.ToLower();
            int    diCountSum = 0;
            var    di         = new DinuCalc();

            var diList = di.DinucCalc(seq);

            foreach (var item in diList)
            {
                diCountSum += Math.Abs(item.dinucCount[2]);
            }
            Console.WriteLine("\nDinuc diff sum: " + diCountSum.ToString());
        }
Example #5
0
        public static void DinucCalcPrint(string _seq)
        {
            string seq = _seq.ToLower();

            var di     = new DinuCalc();
            var diList = di.DinucCalc(seq);

            foreach (var item in diList)
            {
                Console.Write(item.dinuc + "\t");
            }
            Console.WriteLine("\n");

            foreach (var item in diList)
            {
                Console.Write(item.dinucCount[0] + "\t");
            }
            Console.WriteLine();
            foreach (var item in diList)
            {
                Console.Write(item.dinucCount[1] + "\t");
            }
            Console.WriteLine();
            foreach (var item in diList)
            {
                Console.Write(item.dinucCount[2] + "\t");
            }
            Console.WriteLine();

            foreach (var item in diList)
            {
                Console.Write(item.dinucFrq[0].ToString("0.0000") + "\t");
            }
            Console.WriteLine();
            foreach (var item in diList)
            {
                Console.Write(item.dinucFrq[1].ToString("0.0000") + "\t");
            }
            Console.WriteLine();
            foreach (var item in diList)
            {
                Console.Write(item.dinucFrq[2].ToString("0.0000") + "\t");
            }
            Console.WriteLine("\n");
        }