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!
1 answer
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.
Log in to answer this question.
What is your query ? What is the output you are looking for ?
Have you checked this help page for Uniprot API?