I am working with FASTA files of protein. I want to locate the desired AA sequence in every clone of the protein fasta file using pyhton.
records=SeqIO.parse("protein.fasta", ''fasta'') #to extract protein sequences from FASTA file for record in records: output=record.sec print(output) #just to show how the output looks like. #I used ** to hightlight the desired area enter code here -->VVSREL**QALEA**IRQKDEEDABCKARFRGIFSH -->VVSRPQREEARJKLMIRQKDEED**KARFRG**IFSH -->VVSREL**QALEA**RIRDKARFRGIFSH enter code here f=open('amino_acids.txt', 'r') #to get the AA sequences from the text file or what is inside the file for i in f: #to show how this file looks like print(i) -->'QALEA', 'KARFRG', 'QALEAR','KAKAKA', 'PAKAR' #to match my AA sequences with the protein sequences for i in f: for j in output: if i in j: print('found') else: print('not fount') #output --> error --> error -->error How to locate the desired AA sequences in the protein fasta file. Any help will be appreciated.