I would like to extract the peptide sequence of the following: NM_021969.2 from the NCBI website as shown in this link: https://www.ncbi.nlm.nih.gov/nuccore/NM_021969.2
I was able to extract the nucleotide sequence using the following script, but I am unable to extract the following peptide sequence:
MSTSQPGACPCQGAASRPAILYALLSSSLKAVPRPRSRCLCRQH RPVQLCAPHRTCREALDVLAKTVAFLRNLPSFWQLPPQDQRRLLQGCWGPLFLLGLAQ DAVTFEVAEAPVPSILKKILLEEPSSSGGSGQLPDRPQPSLAAVQWLQCCLESFWSLE LSPKEYACLKGTILFNPDVPGLQAASHIGHLQQEAHWVLCEVLEPWCPAAQGRLTRVL
LTASTLKSIPTSLLGDLFFRPIIGDVDIAGLLGDMLLLR
Python script:
Entrez.email = 'myemail@gmail.com'
handle = Entrez.efetch(db='nuccore', id='NM_021969.2', rettype='fasta')
print(handle.read())
I would appreciate some help if anyone has succeeded.
Yuval
Thanks for your help, it solved my problem.
A small educational note: if an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one answer if they all work. If an answer was not really helpful or did not work, provide detailed feedback so others know not to use that answer.