Get number of hits programatically for a advanced query search in UniprotKb
1
0
Entering edit mode
7.6 years ago

Hey! I have gone through a lot of biopython and bioperl codes but I just cannot find out a program that can take my text-based query and return me all the sequences concerning that query. If anyone has any kind of code relating to this, please do share. Any kind of tutorial pdf or any type of documentation will also be appreciated. Thank you!

Biopython Bioperl UniprotKb Sequence retrieval • 1.5k views
ADD COMMENT
2
Entering edit mode

What is your query ? What is the output you are looking for ?

ADD REPLY
0
Entering edit mode

Have you checked this help page for Uniprot API?

ADD REPLY
0
Entering edit mode
7.6 years ago

The URL for programmatic access has already been mentioned: http://www.uniprot.org/help/programmatic_access. If you just need the number of hits (as mentioned in the subject of your post):

If you are accessing UniProt programmatically and are just interested in the number of results returned by your query, but not in downloading or listing all the hits, you can check the X-Total-Results header like in the PERL code example "Download all UniProt sequences for a given organism in FASTA format" in the above help page (cf http://www.uniprot.org/help/entry_count as of release 2017_04 due out April 12th).

If in doubt, please contact the UniProt helpdesk.

ADD COMMENT

Login before adding your answer.

Traffic: 1639 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6