BIOSERVICES: access to biological web services programmatically¶

- Python_version_available
BioServices is tested for Python 3.7, 3.8, 3.9, 3.10
- Contributions
Please join https://github.com/cokelaer/bioservices
- Issues
- How to cite
Cokelaer et al. BioServices: a common Python package to access biological Web Services programmatically Bioinformatics (2013) 29 (24): 3241-3242
- Documentation
Bioservices is a Python package that provides access to many Bioinformatices Web Services (e.g., UniProt) and a framework to easily implement Web Services wrappers (based on WSDL/SOAP or REST protocols).
The primary goal of BioServices is to use Python as a glue language to provide a programmatic access to several Bioinformatics Web Services. By doing so, elaboration of new applications that combine several of the wrapped Web Services is fostered.
One of the main philosophy of BioServices is to make use of the existing biological databases (not to re-invent new databases) and to alleviates the needs for expertise in Web Services for the developers/users.
BioServices provides access to about 40 Web Services.
Contributors¶
Maintaining BioServices would not have been possible without users and contributors. Each contribution has been an encouragement to pursue this project. Thanks to all:
Quick example¶
Here is a small example using the UniProt Web Service to search for the zap70 specy in human organism:
>>> from bioservices import UniProt
>>> u = UniProt(verbose=False)
>>> data = u.search("zap70+and+taxonomy_id:9606", frmt="tsv", limit=3,
... columns="id,length,accession, gene_names")
>>> print(data)
Entry name Length Entry Gene names
ZAP70_HUMAN 619 P43403 ZAP70 SRK
B4E0E2_HUMAN 185 B4E0E2
RHOH_HUMAN 191 Q15669 RHOH ARHH TTF
Note
major changes of UniProt API changed all columns names in June 2022. The code above is valid for bioservices versions >1.10. Earlier version used:
>>> data = u.search("zap70+and+taxonomy:9606", frmt="tab", limit=3,
... columns="entry name,length,id, genes")
Note that columns names have changed, the frmt was changed from tab to tsv and taxonomy is now taxonomy_id. Names correspondences can be found in:
u._legacy_names
More examples and tutorials are available in the On-line documentation
Current services¶
Here is the list of services available and their testing status.
Note
Contributions to implement new wrappers are more than welcome. See BioServices github page to join the development, and the Developer guide on how to implement new wrappers.
Bioservices command¶
In version 1.8.2, we included a bioservices command. For now it has only one subcommand to download a NCBI accession number and possibly it genbank or GFF file (if available):
bioservices download-accession --accession K01711.1 --with-gbk
Changelog¶
Version |
Description |
---|---|
1.11.1 |
|
1.11.0 |
|
1.10.4 |
|
1.10.3 |
|
1.10.2 |
|
1.10.1 |
|
1.10.0 |
|
1.9.0 |
|
1.8.4 |
|
1.8.3 |
|
1.8.2 |
|
1.8.1 |
|
1.8.0 |
|
1.4.X |
|
1.3.X |
|
1.2.X |
|
1.1.X |
|
1.0.0: |
|
0.9.X: |
|
Warning
Some of the services may be down. BioServices developers are not responsible for the maintenance or failure of underlying services. Generally speaking (and by experience) the services are up most of the time but failure may occur because the site is under maintenance or too many requests have been sent. Another common reason is the fact that the API of the web services has changed: If so, BioServices need to be updated. You may contribute or report such API changes on our Issue page
Installation¶
BioServices is available on PyPi, the Python package repository. The following command should install BioServices and its dependencies automatically provided you have pip on your system:
pip install bioservices
If not, please see the external pip installation page or pip installation entry. You may also find information in the troubleshootings page section about known issues.
Regarding the dependencies, BioServices depends on the following packages: BeautifulSoup4 (for parsing XML), SOAPpy and suds (to access to SOAP/WSDL services; suds is used by ChEBI only for which SOAPpy fails to correctly fetch the service) and easydev. All those packages should be installed automatically when using pip installer. Since version 1.6.0, we also make use of pandas and matplotlib to offer some extra functionalities.
User guide¶
- 1. Quick Start
- 2. Tutorials
- 3. Combining BioServices with external tools
- 4. Developer Guide
- 5. Gallery
- 6. NoteBooks
- 7. Utilities
- 8. Services
- 8.1. ArrayExpress
- 8.2. Biocontainers
- 8.3. BiGG
- 8.4. BioDBnet
- 8.5. BioGrid
- 8.6. BioMart
- 8.7. BioModels
- 8.8. ChEBI
- 8.9. ChEMBL
- 8.10. COG
- 8.11. ENA
- 8.12. EUtils
- 8.13. GeneProf
- 8.14. QuickGO
- 8.15. Kegg
- 8.16. HGNC
- 8.17. Intact (complex)
- 8.18. MUSCLE
- 8.19. MyGeneInfo
- 8.20. NCBIblast
- 8.21. OmniPath Commons
- 8.22. Panther
- 8.23. Pathway Commons
- 8.24. PDB/PDBe modules
- 8.25. PRIDE module
- 8.26. PSICQUIC
- 8.27. Rhea
- 8.28. Reactome
- 8.29. Readseq
- 8.30. UniChem
- 8.31. UniProt
- 8.32. DBFetch
- 8.33. Wikipathway
- 9. Applications and extra tools
- 10. References to BioServices on the Web
- 11. FAQS
- 12. Contributors