This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Retrieve sequences from uniprot

Dear all, I would like to retrieve sequences + isoforms from Uniprot

Here my code :

import requests params = {"query": "P00750", "format": "fasta"} response = requests.get("http://www.uniprot.org/uniprot/", params) print (response.text)

But unfortunaltely it is giving me one sequence, I would like to add ?include=yes

Any idea ?

Mohamed

uniprot sequences retrieve

params = {"query": "P00750", "format": "fasta", "include": "yes"}

1 answer

Following version of your code returns sequences+isoforms:

import requests
params = {"query": "P00750", "format": "fasta", "include": "yes"}
response = requests.get("http://www.uniprot.org/uniprot/", params=params)
print (response.text)

Log in to answer this question.