TransPi icon indicating copy to clipboard operation
TransPi copied to clipboard

Uniprot Metazoan database not downloaded due to changes in UniProt REST API

Open IdoBar opened this issue 1 year ago • 2 comments

The precheck_TransPi.sh script fails to download the UniProt Metazoa database due to changes to the API. This is what comes back from the download command:

$ curl -o uniprot_metazoa_33208.fasta.gz "https://www.uniprot.org/uniprot/?query=taxonomy:33208&format=fasta&compress=yes&include=no"
$ cat uniprot_metazoa_33208.fasta.gz
Search result downloads have now moved to https://rest.uniprot.org. Please consult https://www.uniprot.org/help/api for guidance on changes.

I tried implementing the changes suggested by the new API guide with the command below, but it doesn't download anything.

curl -o uniprot_metazoa_33208.fasta.gz  "https://rest.uniprot.org/uniprotkb/search?query=organism_id%3A33208&format=fasta&compressed=true"

Thanks, Ido

IdoBar avatar Aug 15 '22 02:08 IdoBar