Implement GreedyMotifSearch with Pseudocounts solved by 1033

July 29, 2015, 12:30 a.m. by Rosalind Team

We encountered GreedyMotifSearch in “Implement GreedyMotifSearch”. In this problem, we will power it up with pseudocounts.

Implement GreedyMotifSearch with Pseudocounts

Given: Integers k and t, followed by a collection of strings Dna.

Return: A collection of strings BestMotifs resulting from running GreedyMotifSearch(Dna, k, t) with pseudocounts. If at any step you find more than one Profile-most probable k-mer in a given string, use the one occurring first.

Sample Dataset

3 5
GGCGTTCAGGCA
AAGAATCAGTCA
CAAGGAGTTCGC
CACGTCAATCAC
CAATAATATTCG

Sample Output

TTC
ATC
TTC
ATC
TTC

Extra Dataset

Please login to solve this problem.