Exemple #1
0
        public static int Sensibile()
        {
            string linesens        = MetodiBioinf.ReadSens();
            int    lengthsensibile = linesens.Length;

            return(lengthsensibile);
        }
Exemple #2
0
        public static int Resistente()
        {
            string linesens         = MetodiBioinf.ReadRes();
            int    lengthresistente = linesens.Length;

            return(lengthresistente);
        }
Exemple #3
0
        public static string Uguale()
        {
            string res  = MetodiBioinf.ReadRes();
            string sens = MetodiBioinf.ReadSens();
            long   p    = MetodiBioinf.Diverso();
            string u    = "";

            for (int i = 0; i < p; i++)
            {
                u += sens[i];
            }
            return(u);
        }
Exemple #4
0
        public static int Diverso()
        {
            string res  = MetodiBioinf.ReadRes();
            string sens = MetodiBioinf.ReadSens();

            for (int i = 0; i < Math.Min(sens.Length, res.Length); i++)
            {
                if (sens[i] != res[i])
                {
                    return(i);
                }
            }
            return(-1);
        }
Exemple #5
0
        public static int Stringhe()
        {
            string res  = MetodiBioinf.ReadRes();
            string sens = MetodiBioinf.ReadSens();
            int    d    = 0;

            for (int i = 0; i < Math.Min(sens.Length, res.Length); i++)
            {
                if (sens[i] != res[i])
                {
                    d++;
                }
            }
            return(d);
        }