How to retrieve protein sequence from gene ID and output a fasta file
I want to receive the protein sequence of the following gene IDs and output a fasta file with the sequences with its identifier.
handle = Entrez.esearch(db="gene", term="primate[Orgn] AND TNF[Gene Name]", idtype="acc", retmax='50', ) record = Entrez.read(handle) idlist = record['IdList'] print(idlist)
But I am not sure where to go from here. Any help would be appreciated.
• 18 views