예제 #1
0
파일: Tigr.cs 프로젝트: gumik/SCTIGR
		public Tigr(int merLength, int maxOverhang, int minOverlap, float minSimilarity, string[] sequences)
		{
			this.sequences = sequences;
			this.merLength = merLength;
			this.maxOverhang = maxOverhang;
			this.minOverlap = minOverlap;
			this.minSimilarity = minSimilarity;
			profile = new Profile();
		}
예제 #2
0
        public SmithWaterman(Profile profile, string sequence)
        {
            MatchScore = 2;
            MismatchScore = -1;
            InsertionScore = -2;
            DeletionScore = -2;

            this.profile = profile;
            this.sequence = sequence;
        }
예제 #3
0
파일: Test.cs 프로젝트: gumik/SCTIGR
 public static void AssemblyGoodAlignmentAdded(Profile profile)
 {
     Console.WriteLine(string.Format("AssemblyGoodAlignmentAdded: \n{0}", profile));
     for (var c = 0; c < profile.Length; ++c)
     {
         Console.Write(profile[c]);
     }
     Console.WriteLine();
     //Console.ReadKey();
 }
예제 #4
0
파일: Test.cs 프로젝트: gumik/SCTIGR
        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));
            }
        }
예제 #5
0
파일: Test.cs 프로젝트: gumik/SCTIGR
        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);
            }
        }