Differences

This shows you the differences between two versions of the page.

Link to this comparison view

- Both sides previous revision Previous revision
Next revision
- biogridrest [2012/09/28 19:20] biogridadmin
+ Previous revision
+ biogridrest [2020/09/13 17:02] (current) biogridadmin [BioGRID REST Service]
@@ Line -1,80 +1,106 @@ removed created
 ====== BioGRID REST Service ======
 ===Due to hardware issues ​Interaction data in BioGRID can be accessed via the BioGRID ​REST servicehas moved to a temporary addressPlease replace 'Interactions in various formats can be fetched from the BioGRID REST Service over HTTPS, programmatically or in a browser, at 
 **https://webservice.thebiogrid.org' with '​sce-bio-c02577.bio.ed.ac.uk:​8080/BiogridRestService'​ in the URLs given below**We hope to return to the original address soonYou can access interactions using both POST and GET operations depending on your application requirements===
 
 === Get Your Access Key ===
 To access the BioGRID REST webservice, you will need a unique access key for your application. You can get one by filling out the simple form located **[[https://​webservice.thebiogrid.org|here]]**. This key must be included in all queries to the webservice in the form of accesskey=[ACCESSKEY].
 
 Interaction data in BioGRID can be accessed via the BioGRID REST service. Interactions in various formats can be fetched from the BioGRID REST Service over HTTP, programmatically or in a browser, ​ at=== Code Examples === 
 http://​webservice.thebiogrid.org/​resources/​interactions/​ 
 This URL will retrieve the first 10,000 interactions ​For example code (written ​in BioGRID, ordered by the BioGRID Interaction Id as found in .tab2 files. Single interactions can be retrieved by appending this URL with a Biogrid Interaction ID (e.g. http://​webservice.thebiogrid.org/​resources/​interactions/​103Python. The results list returned can be filtered by appending ?​parameter1=value1&​ parameter2=value2 etc. to the URL. A full description of possible parameters is given in the table below.  
 A formal description ​demonstrating basic usage of the REST serviceServicein Web Application Description Language (WADL), can be found at httpplease visit our [[https://webservicegithub.thebiogrid.orgcom/application.wadl. The BioGRID/BIOGRID-RESTservice is updated to the latest release of BioGRID on the 2nd of each month and the BioGRID database version being accessed can be determined with the URL: 
 http://​webservice.thebiogrid.org/​resources/​version ​-EXAMPLES|github repository]].
 
 In addition to BioGRID interaction data====== Access Points ======= 
 A formal description of the REST servicein Web Application Description Language (WADL), can be found at **https://​webservice.thebiogrid.org/​application.wadl**.  
  
 === /interactionsfrom the IMEx databases have been included ​/<INT ID> - Fetching Single Interactions ​ === 
 Single interactions can be retrieved by appending this URL with a Biogrid Interaction ID (see e.g. **https://​webservice.thebiogrid.org/​interactions/​103?​accesskey=[ACCESSKEY]**).  
  
 === /​interactions/​ - Fetching Multiple Interactions === 
 The URL **https://​webservice.thebiogrid.org/​interactions/?​accesskey=[imex_import|Import of IMEx ACCESSKEY]** will retrieve the first 10,​000 ​interactions ​into in BioGRID, ordered by the BioGRID Interaction Id as found in **[[biogrid_tab_version_2.0|.tab2]]** files. Results can be modified and filtered using the options in our REST Service**[[#​list_of_parameters|list of parameters]]**. 
  
 === /organisms/ - Fetching Supported Organisms List === 
 The URL **https://​webservice.thebiogrid.org/​organisms/?​accesskey=[ACCESSKEY]** will retrieve the list of organism IDs and names supported by the REST taxId option. This call only supports the accessKey and format parameters (can be tab2 or json)as an (e.g. **https://​webservice.thebiogrid.org/​organisms/?​accesskey=[ACCESSKEY]&​format=json**). 
  
 === /​identifiers/​ - Fetching Supported Additional Identifier Types === 
 The URL **https://​webservice.thebiogrid.org/​identifiers/?​accesskey=[ACCESSKEY]** will retrieve the list of identifier type names supported by the REST additionalIdentifierTypes ​option for retrieval in . This call only supports ​the accessKey and format parameters (can be tab2 or json)(e.g. **https://​webservice.thebiogrid.org/​identifiers/?​accesskey=[ACCESSKEY]&​format=json**). 
  
 === /evidence/ - Fetching Supported Experimental Evidence === 
 The URL **https://​webservice.thebiogrid.org/​evidence/?​accesskey=[ACCESSKEY]** will retrieve the list of evidence names supported by the REST evidenceList option. This call only supports the accessKey and format parameters (can be tab2 or json)(e.g. **https://​webservice.thebiogrid.org/​evidence/?​accesskey=[ACCESSKEY]&​format=json**). 
  
 === /version/ - Fetching REST Version Number === 
 The BioGRID ​REST service ​datais updated to the latest release of BioGRID on the 4th of each month and the BioGRID database version being accessed can be determined with the URL: 
 **https://​webservice.thebiogrid.org/​version?​accesskey=[ACCESSKEY]**.  
   
 ====== List of Parameters ​ ====== 
  
 === Filtering Results === 
 The results list returned can be filtered by appending ?​parameter1=value1&​parameter2=value2 etc. to the URLparameter “sourceDatabaseList” has . A full description of possible parameters is given in the **[[#​list_of_parameters|table below]]**. You can also utilize our full list of **[[#​examples|example queries]]** to give you an idea of how to get started. 
  
 ^Parameter^Type^Default^Valid Values^Description^ 
 |accessKey|string|NONE|Only 32 character Alphanumeric strings|All rest access must supply ​default ​valid accessKey to prevent spamming of the service. Access Keys are free and openly **[[https://​webservice.thebiogrid.org/​|available here]]**. | 
 |start|int|0|0-2147483647|Query results are numbered from 0. Results fetched will start at this value e.g. start = 50 will skip the the first 50 results. Ignored if using "​count"​ in the format parameter.| 
 |max|int|10000|1-10000|Number ​of “BioGRID”results to fetch; this will be ignored if greater than 10,but 000, i.e. pagination using several requests is required to retrieve ​ more than 10,000 interactions. Ignored ​if using "​count"​ in the format parameter.| 
 |interSpeciesExcluded|boolean|FALSE|true,​ false|If ‘true’, interactions with interactors from different species will be excluded.| 
 |selfInteractionsExcluded|boolean|FALSE|true,​ false|If ‘true’, interactions with one interactor will be excluded.| 
 |evidenceList|string|empty|Pipe-separated list of evidence codes from **[[#​evidence_-_fetching_supported_experimental_evidence|here]]**|Any interaction evidence with its Experimental System in the list will be excluded from the results unless includeEvidence is set to “BioGRIDtrue.|MINT 
 |INTACTincludeEvidence|DIP” ​boolean|FALSE|true,​ false|If set to true, any interaction evidence with its Experimental System in the query evidenceList ​will retrieve ​be included in the result| 
 |geneList|string|empty|Pipe-separated list of gene names or identifiers.|Interactions between genes in this list will be fetched. This parameter is ignored if one of searchIds, searchNames,​ searchSynonyms is not ‘true’ and additionalIdentifierTypes is empty.| 
 |searchIds|boolean|FALSE|true,​ false|If ‘true’, the interactor ​ ENTREZ_GENE,​ ORDERED LOCUS and SYSTEMATIC_NAME (orf) will be examined for a match with the geneList .| 
 |searchNames|boolean|FALSE|true,​ false|If ‘true’, the interactor OFFICIAL_SYMBOL will be examined for a match with the geneList.| 
 |searchSynonyms|boolean|FALSE|true,​ false|If ‘true’, the interactor SYNONYM will be examined for a match with the geneList.| 
 |searchBiogridIds|boolean|FALSE|true,​ false|If ‘true’, the entries in '​GENELIST'​ will be compared to BIOGRID internal IDS which are provided in all Tab2 formatted files.| 
 |additionalIdentifierTypes|string|empty|Pipe-separated list of identifier types from **[[#​identifiers_-_fetching_supported_additional_identifier_types|here]]**|Identifier types on this list are examined for a match with the geneList. Some identifier types search multiple types simultaneously. UNIPROT or UNIPROTKB will search SWISS-PROT/​TREMBL/​UNIPROT-ACCESSION/​UNIPROT-ISOFORM. REFSEQ will search REFSEQ-RNA-GI,​ REFSEQ-RNA-ACCESSION,​ REFSEQ-PROTEIN-GI,​ REFSEQ-PROTEIN-ACCESSION-VERSIONED,​ REFSEQ-PROTEIN-ACCESSION,​ REFSEQ-LEGACY. WORMBASE will search WORMBASE and WORMBASE-OLD. ENSEMBL will search ENSEMBL, ENSEMBL GENE, ENSEMBL PROTEIN, ENSEMBL RNA.| 
 |excludeGenes|boolean|FALSE|true,​ false|If ‘true’, ​interactions ​containing genes in the geneList will be excluded ​from all databasesthe resultsSource database origin can Ignored if one of searchIds, searchNames,​ searchSynonyms is not ‘true’ and additionalIdentifierTypes is empty.| 
 |includeInteractors|boolean|TRUE|true,​ false|If ‘true’, in addition to interactions between genes on the geneList, interactions will also be found fetched which have only one interactor on the geneList i.e. the geneList’s first order interactors will be included| 
 |includeInteractorInteractions|boolean|FALSE|true,​ false|If ‘true’ interactions between the geneList’s first order interactors will be included. Ignored if includeInteractors is ‘false’ or if excludeGenes is set to ‘true’.| 
 |pubmedList|string|empty string|Pipe-separated list of pubmed IDs|Interactions will be fetched whose Pubmed Id is/ is not in this list, depending on the “Source Databases” column ​value of excludePubmeds.|  
 |excludePubmeds|boolean|FALSE|true,​ false|If ‘false’,​ interactions with Pubmed ID in pubmedList will be included in the retrieved data and results; if ‘true’ they will be excluded.| 
 |htpThreshold|int|2147483647 (maximum 32-bit integer)|0-2147483647|Interactions whose Pubmed ID has more than this number of interactions will be excluded from the results. Ignored if excludePubmeds is ‘false’.| 
 |throughputTag|string|"​any"​|"​any","​low","​high"​|If set to 'low or '​high',​ only interactions with 'Low throughput'​ or 'High throughput'​ in the '​throughput'​ field will be returned. Interactions with both 'Low throughput'​ and 'High throughput'​ will be returned by either value.| 
 |taxId|string|Source Database IdentifiersAll|Pipe-separated list of NCBI taxonomy identifiers or "​All"​. Get full list of supported ids **[[#​organisms_-_fetching_supported_organisms_list|here]]**|Only genes from these organisms will be searched with reference to gene identifiers or names. | 
 |includeHeader|boolean|FALSE|true,​ false|If ‘true’, the first line of the result will be a BioGRID ​column ​(if header, appropriate for the format ​parameter ​(‘count’ ​format ​=has no header).| 
 |format|string|“tab2”|“tab1”,​”tab2,​”extendedTab2”,​”count”,​ "​json",​ "​jsonExtended"​|‘tab1’ and ‘tab2’ will return data in .tab or .tab2 format respectively. '​json'​ will return data in json a json formatted object. ‘extendedTab2’ and '​jsonExtended'​ will return data in .tab2 and json file formats respectively with extra fields for "​Source Database Identifiers",​ "​Number of Interactions per Publication"​ and "​Additional Identifiers"​. For more information on file formats, visit our **[[https://​wiki.thebiogrid.org/​doku.php/​downloads|file format listing]]**.| 
 |translate|boolean|FALSE|true,​false|If '​true',​ the rest service will show a small snippet above your results detailing how your input parameters were translated for use in returning your data. This is set) allows mapping ​helpful in troubleshooting why you may or may not be getting ​back to the interaction ​results expected. For example, if you enter a typo for a field such as "​searchNamez",​ no result will be translated, and thus this parameter will be ignored. | 
  
 ====== Error Handling ====== 
 If you make a mistake ​in accessing ​the original databaseREST service, you will be redirected to a standardized HTML error page such as a 401 or 400 page, depending on the problemIMEx interaction files are downloaded ​In addition, all errors ​from their respective websites and integrated into the BioGRID ​REST service ​to coinicide ​are accompanied by output in JSON format ​with each monthly BioGRID releasethe following structure.These additional interactions are only available through ​ 
   - **STATUS** - This will be either Error or Warning depending on the BioGRid REST Service ​severity of the problem. 
   - **MESSAGES** - A list of one or more messages detailing the error and are not currently present ​possible corrective measures. 
   - **TYPE** - A simple reiteration of the HTML error type in the BioGRID download filesheader for the overall page. 
  
 ====== Examples  ​======
 
 === Interactions for human MDM2 gene: ===
 
 http**https://​webservice.thebiogrid.org/resources/​interactions?​searchNames=true&​geneList=MDM2&​includeInteractors=true&​includeInteractorInteractions=false&​taxId=9606&​accesskey=[ACCESSKEY]**
 
 === Interactions for human MDM2 gene and interactions between all interactors of MDM2: ===
 
 http**https://​webservice.thebiogrid.org/resources/​interactions/?​searchNames=true&​geneList=MDM2&​taxId=9606&​includeInteractors=true&​includeInteractorInteractions=true&​accesskey=[ACCESSKEY]**
 
 === First 10 interactions for human MDM2 gene: ===
 
 http**https://​webservice.thebiogrid.org/resources/​interactions/?​searchNames=true&​geneList=MDM2&​includeInteractors=true&​includeInteractorInteractions=false&​taxId=9606&​start=0&​max=10&​accesskey=[ACCESSKEY]**
 
 === Interactions between S. cerevisiae CDC27, APC1 and APC2: ===
 
 **[[httphttps://​webservice.thebiogrid.org/resources/​interactions/?​searchNames=true&​geneList=cdc27%7Capc1%7Capc2&​taxId=4932559292&​accesskey=[ACCESSKEY]|httphttps://​webservice.thebiogrid.org/resources/​interactions/?​searchNames=true&​geneList=cdc27|apc1|apc2&​taxId=4932559292&​accesskey=[ACCESSKEY]]]**
 
 === Interactions from pubmed IDs 18316726 and 17662948: ===
 
 **[[httphttps://​webservice.thebiogrid.org/resources/​interactions/?​pubmedList=18316726%7C17662948&​accesskey=[ACCESSKEY]|httphttps://​webservice.thebiogrid.org/resources/​interactions/?​pubmedList=18316726|17662948]] 
  
 &​accesskey=== Interactions between CDC27, APC1 and APC2 from publications with 50 or less interactions:​ === 
  
 [[http://​webservice.thebiogrid.org/​resources/​interactions/?​searchNames=true&​geneList=cdc27%7Capc1%7Capc2&​htpThreshold=50&​excludePubmeds=true|http://​webservice.thebiogrid.org/​resources/​interactions/?​searchNames=true&​geneList=cdc27|apc1|apc2&​htpThreshold=50&​excludePubmeds=trueACCESSKEY]]]**
 
 === Interactions between CDC27, APC1 and APC2 excluding ‘Affinity Capture-MS’ and ‘Two-hybrid’ data: ===
 
 **[[httphttps://​webservice.thebiogrid.org/resources/​interactions/?​searchNames=true&​geneList=cdc27%7Capc1%7Capc2&​evidenceList=Affinity Capture-MS%7CTwo-hybrid&​accesskey=[ACCESSKEY]|httphttps://​webservice.thebiogrid.org/resources/​interactions/?​searchNames=true&​geneList=cdc27|apc1|apc2&​evidenceList=Affinity Capture-MS|Two-hybrid&​accesskey=[ACCESSKEY]]]**
 
 === Interactions ​from pubmed ID18316726between genes with REFSEQ IDs NP_001119587 (TP53) or NP_002383 (MDM2)excluding those containing HTLF: in jsonExtended format ​===
 
 http**[[https://​webservice.thebiogrid.org/resources/​interactions/?​pubmedListadditionalIdentifierTypes=18316726REFSEQ&searchNamesgeneList=trueNP_001119587%7CNP_002383&​format=jsonExtended&​accesskey=[ACCESSKEY]|https://​webservice.thebiogrid.org/​interactions/?​additionalIdentifierTypes=REFSEQ&​geneList=HLTFNP_001119587|NP_002383&​format=jsonExtended&excludeGenesaccesskey=true[ACCESSKEY]]]**
 
 === Interactions ​between genes with GENBANK_DNA_GI 82502895 ​involving Entrez Gene IDs 6783 (TP53SULT1E1)or 158261704 ​, 6820 (MDM2SULT2B1), in extendedTab2 format with a header: ​and 55791 (LRIF1) ​===
 
 **[[httphttps://​webservice.thebiogrid.org/resources/​interactions/?​additionalIdentifierTypes=GENBANK_DNA_GI&​geneList=825028956783%7C6820%7C1582617047C55791&formatsearchids=extendedTab2true&includeHeaderincludeInteractors=true&​accessKey=[ACCESSKEY]|httphttps://​webservice.thebiogrid.org/resources/​interactions/?​additionalIdentifierTypes=GENBANK_DNA_GI&​geneList=825028956783|6820|15826170455791&formatsearchids=extendedTab2true&includeHeaderincludeInteractors=true&​accessKey=[ACCESSKEY]]]**
 
 === Interactions involving SGD IDs S000004354 (STE11) and S000003664 (PBS2) ===
 
 ===== List of Parameters ​ ===== 
  
 ^Parameter^Type^Default^Valid Values^Description^ 
 |start|int|0|0-2147483647|Query results are numbered from 0. Results fetched will start at this value e.g. start = 50 will skip the the first 50 results.| 
 |max|int|10000|1-10000|Number of results to fetch; this will be ignored if greater than 10,000, i.e. pagination using several requests is required to retrieve ​ more than 10,000 interactions.| 
 |interSpeciesExcluded|boolean|FALSE|true,​ false|If ‘true’, interactions with interactors from different species will be excluded.| 
 |selfInteractionsExcluded|boolean|FALSE|true,​ false|If ‘true’, interactions with one interactor will be excluded.| 
 |evidenceList|string|empty|Pipe-separated list of evidence codes from http**[[https://wikiwebservice.thebiogrid.org/​doku.phpinteractions/experimental_systems|Any interaction evidence with its Experimental System in the list will be excluded from the results unless includeEvidence is set to true.| 
 |includeEvidence|boolean|FALSE|true,​ false|If set to true, any interaction evidence with its Experimental System in the evidenceList will be included in the result| 
 |geneList|string|empty|Pipe-separated list of gene names or identifiers.|Interactions between genes in this list will be fetched. This parameter is ignored if one of searchIds, searchNames,​ searchSynonyms is not ‘true’ and ?additionalIdentifierTypesis empty.| 
 |searchIds|boolean|FALSE|true,​ false|If ‘true’, the interactor ​ ENTREZ_GENE and SYSTEMATIC_NAME (orf) will be examined for a match with the =SGD&geneList.| 
 |searchNames|boolean|FALSE|=S000004354%7CS000003664&​includeInteractors=true, false&​accesskey=[ACCESSKEY]|If ‘true’, the interactor OFFICIAL_SYMBOL will be examined for a match with the geneList.| 
 |searchSynonyms|boolean|FALSE|true,​ false|If ‘true’, the interactor SYNONYM will be examined for a match with the geneList.| 
 |additionalIdentifierTypes|string|empty|Pipe-separated list of identifier types from httphttps://wikiwebservice.thebiogrid.org/​doku.phpinteractions/identifiers|Identifier types on this list are examined for a match with the geneList.| 
 |excludeGenes|boolean|FALSE|true,​ false|If ‘true’, interactions containing genes in the geneList will be excluded from the results. Ignored if one of searchIds, searchNames,​ searchSynonyms is not ‘true’ and ?additionalIdentifierTypesis empty.| 
 |includeInteractors|boolean|FALSE|true,​ false|If ‘true’, in addition to interactions between genes on the =SGD&geneList, interactions will also be fetched which have only one interactor on the geneList i.e. the geneList’s first order interactors will be included=S000004354| 
 |includeInteractorInteractions|boolean|TRUE|true,​ false|If ‘true’ interactions between the geneList’s first order interactors will be included. Ignored if S000003664&​includeInteractorsis ‘false’ or if excludeGenes is set to ‘=true’.| 
 |pubmedList|string|empty string|Pipe-separated list of pubmed IDs|Interactions will be fetched whose Pubmed Id is/ is not in this list, depending on the value of excludePubmeds.|  
 |excludePubmeds|boolean|FALSE|true,​ false|If ‘false’,​ interactions with Pubmed ID in pubmedList will be included in the results; if ‘true’ they will be excluded.| 
 |htpThreshold|int|2147483647 (maximum 32-bit integer)|0-2147483647|Interactions whose Pubmed ID has more than this number of interactions will be excluded from the results. Ignored if excludePubmeds is ‘false’.| 
 |throughputTag|string|"​any"​|"​any","​low","​high"​|If set to 'low or '​high',​ only interactions with 'Low throughput'​ or 'High throughput'​ in the '​throughput'​ field will be returned. Interactions with both 'Low throughput'​ and 'High throughput'​ will be returned by either value.| 
 |taxId|string|“All”|Any NCBI taxonomy identifier or "​All"​|Only interactions with at least one interactor with this NCBI taxonomy id will be included in the results.| 
 |includeHeader|boolean|FALSE|true,​ false|If ‘true’, the first line of the result will be a BioGRID column header, appropriate for the format parameter (‘count’ format has no header).| 
 |sourceDatabaseList|string|“BioGRID”|Pipe-separated list of database names, currently including BioGRID, INTACT, MINT, DIP|Only interactions with Source Database on this list will be returned.| 
 |sourceDatabaseIdList|string|empty|Pipe-separated list of source database identifiers|Interactions with a source database interaction ID in the list will be included in the results. The source database for the identifier must also be selected using sourceDatabaseList.| 
 |format|string|“tab2”|“tab1”,​”tab2,​”extendedTab2”,​”count”|‘tab1’ and ‘tab2’ will return data in .tab or .tab2 format respectively. ‘extendedTab2’ will return data in .tab2 file format with extra fields fields for "​Source Database Identifiers",​ "​Number of Interactions per Publication"​ and "​Additional Identifiers"​. "​Source Database Identifiers"​ are listed in order corresponding to the values in "​Source Databases"​ e.g if an interaction has %%BIOGRID|INTACT|MINT in Source_Database,​ it might have 821622|EBI-1792672|MINT-1999291%%| 
 |enableCaching|boolean|false|true,​ false|If set to true, a header is added to the HTTP response, '​Cache-Control:​ max-age&​accesskey=86400',​ which allows repeat queries performed within a day to use a cached copy of the results, allowing faster access to data. WARNING: The BioGRID REST service updates to the new version at 12pm GMT on the 2nd of each month, meaning that you may receive '​old'​ data for up to a day for previously performed queries - even if http://​webservice.thebiogrid.org/​resources/​version indicates the new version is being used.| 
  
  
  [ACCESSKEY]]]**
 
biogridrest.1348874456.txt.gz · Last modified: 2017/08/08 12:52 (external edit)