public static int Resistente() { string linesens = MetodiBioinf.ReadRes(); int lengthresistente = linesens.Length; return(lengthresistente); }
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); }
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); }
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); }