Using Regex To Search Until Desired Pattern
I am using the following regex: orfre = '^(?:...)*?((ATG)(...){%d,}?(?=(TAG|TAA|TGA)))' % (aa) I basically want to find all sequences that start with ATG followed by triplets (e.g
Solution 1:
Supplementary note: if you want to check the six frames available in one sequence, don't forget to check also the complementary chain:
comp_chain = chain[::-1]
(--> extended slices)
Transliterating latter A's for T's and G's for C's.
Post a Comment for "Using Regex To Search Until Desired Pattern"