fork(2) download
  1. import re
  2.  
  3. exon = list()
  4. res = [
  5. 'NVAKMFPQRKFT<STOP>TVQTLMRNGTLLERG<STOP>CCEVSP',
  6. 'QKRMDCNASV<STOP>TVTVQTLMQTL<STOP>TNTPKGG<STOP>',
  7. 'MEKGYADAE<STOP>RKTF<STOP>MTVRAGCCGI<STOP>MK'
  8. ]
  9.  
  10. for seq in res:
  11. exon.append(re.findall(r"(M.{2,}?)<STOP>", seq))
  12.  
  13. print(exon)
Success #stdin #stdout 0.03s 9516KB
stdin
Standard input is empty
stdout
[['MFPQRKFT', 'MRNGTLLERG'], ['MDCNASV', 'MQTL'], ['MEKGYADAE', 'MTVRAGCCGI']]