Beispiel #1
0
        public static void SM()
        {
            var sequence = "AC TGTTTT";
            var profile = new Profile();
            profile.AddSequence("GGGGACTG", 0);

            var sm = new SmithWaterman(profile, sequence);
            sm.InsertionScore = -2;
            sm.DeletionScore = -2;
            sm.MismatchScore = -1;
            sm.MatchScore = 2;
            sm.Calculate();
            sm.PrintResult();
            var seq = sm.GetBest();

            foreach (var i in seq)
            {
                Console.Write(string.Format("({0},{1}) ", i.Item1, i.Item2));
            }
        }
Beispiel #2
0
        public static void ProfileTest()
        {
            var profile = new Profile();

            while (true)
            {
                var sequence = Console.ReadLine();
                var begin = int.Parse(Console.ReadLine());

                profile.AddSequence(sequence, begin);
                Console.WriteLine(profile);
            }
        }