Beispiel #1
0
 public override void RunScan()
 {
     int numberOfSubsequences = scanSequence.CountDistinctSubsequences(@"ggg");
     var answerPhrase = "The subsequence \"GGG\" was found " + numberOfSubsequences + " times in the given DNA segment and the risk to acquiring Tyberius syndrome is ";
     answerPhrase += (numberOfSubsequences < 3) ? "not elevated." : "significantly elevated.";
     this.scanResult = new TextResult(answerPhrase);
 }
Beispiel #2
0
 public override void RunScan()
 {
     Match matchOfSubsequence = scanSequence.FindFirstSubsequence(@"ctag");
     var answer = "";
     if (matchOfSubsequence.Success)
     {
         answer = "The subsequence " + matchOfSubsequence.Value + " was found at position " + matchOfSubsequence.Index + " at first.";
     }
     else
     {
         answer = "The subsequence was not found.";
     }
     scanResult = new TextResult(answer);
 }
Beispiel #3
0
 public override void RunScan()
 {
     Match matchOfSubsequence = scanSequence.FindFirstSubsequence(@"cag[cg][^t]{2}");
     var answer = "";
     if (matchOfSubsequence.Success)
     {
         answer = "The subsequence " + matchOfSubsequence.Value + " was found at position " + matchOfSubsequence.Index + ". This means the person should have brown eyes.";
     }
     else
     {
         answer = "No matching subsequence was found. This means the person should have no brown eyes.";
     }
     scanResult = new TextResult(answer);
 }
Beispiel #4
0
 public override void RunScan()
 {
     Match matchOfSubsequence = scanSequence.FindFirstSubsequence(@"[ag]{4}[ct]{4}");
     var answer = "";
     if (matchOfSubsequence.Success)
     {
         answer = "The subsequence " + matchOfSubsequence.Value + " was found at position " + matchOfSubsequence.Index + ". This shows evidence for the correlation.";
     }
     else
     {
         answer = "No matching subsequence was found. No evidence for the correlation was found.";
     }
     scanResult = new TextResult(answer);
 }