I want to identify the keys from a dictionary (strings) in a DNA sequence(string or fasta).
How can I find the keys in the sequence and get? I've tried something like this:
def identification(ren, S):
patternkeys = 
for key in ren:
if S in key:
patterns = 
patterns = identification(ren, S)
ren is the dictionary and S the sequence
I need to get keys and values FOUND in the sequence.