public int PatternCount(string text, string pattern) { var dnaText = new DnaString(text); var dnaPattern = new DnaString(pattern); return(dnaText.PatternCount(dnaPattern)); }
public IEnumerable <string> ClumpFinding(string genome, int k, int windowLength, int times) { var dnaGenome = new DnaString(genome); IEnumerable <DnaString> slumps = dnaGenome.ClumpFinding(k, windowLength, times); return(slumps.Select(w => w.ToString())); }
public string ReverseComplement(string pattern) { var dnaPattern = new DnaString(pattern); DnaString dnaReverseComplement = dnaPattern.GetReverseComplement(); return(dnaReverseComplement.ToString()); }
public IEnumerable <int> PatternMatching(string pattern, string genome) { var dnaPattern = new DnaString(pattern); var dnaGenome = new DnaString(genome); return(dnaGenome.PatternMatching(dnaPattern)); }
public IEnumerable <string> FrequentWords(string text, int k) { var dnaText = new DnaString(text); IEnumerable <DnaString> words = dnaText.FrequentWords(k); return(words.Select(w => w.ToString())); }