BioGRID REST Service - Version 2.0

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 http://webservice.thebiogrid.org/interactions/. You can access interactions using both POST and GET operations depending on your application requirements. To access the BioGRID REST service, you will need a unique access key for your application. You can get one by filling out the simple form located here.

Fetching Single Interactions

The URL http://webservice.thebiogrid.org/interactions/ will retrieve the first 10,000 interactions 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/interactions/103).

Filtering Results

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 of the REST service, in Web Application Description Language (WADL), can be found at http://webservice.thebiogrid.org/application.wadl.

Updates and Version

The BioGRID REST service 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/version.

Retrieving IMEx Interactions

In addition to BioGRID interaction data, interactions from the IMEx databases have been included (see Import of IMEx interactions into BioGRID REST Service) as an option for retrieval in the REST service data. The URL parameter “sourceDatabaseList” has a default value of “BioGRID”, but if set to “BioGRID|MINT|INTACT|DIP” the query will retrieve interactions from all databases. Source database origin can be found in the “Source Databases” column of the retrieved data and the “Source Database Identifiers” column (if the parameter format=extendedTab2 is set) allows mapping back to the interaction in the original database. IMEx interaction files are downloaded from their respective websites and integrated into the REST service to coinicide with each monthly BioGRID release. These additional interactions are only available through the BioGRid REST Service and are not currently present in the BioGRID download files.

Examples

Interactions for human MDM2 gene:

Interactions for human MDM2 gene and interactions between all interactors of MDM2:

First 10 interactions for human MDM2 gene:

Interactions between S. cerevisiae CDC27, APC1 and APC2:

Interactions from pubmed IDs 18316726 and 17662948:

Interactions between CDC27, APC1 and APC2 from publications with 50 or less interactions:

Interactions between CDC27, APC1 and APC2 excluding ‘Affinity Capture-MS’ and ‘Two-hybrid’ data:

Interactions from pubmed ID 18316726, excluding those containing HTLF:

Interactions between genes with GENBANK_DNA_GI 82502895 (TP53) or 158261704 (MDM2), in extendedTab2 format

List of Parameters

ParameterTypeDefaultValid ValuesDescription
startint00-2147483647Query results are numbered from 0. Results fetched will start at this value e.g. start = 50 will skip the the first 50 results.
maxint100001-10000Number 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.
interSpeciesExcludedbooleanFALSEtrue, falseIf ‘true’, interactions with interactors from different species will be excluded.
selfInteractionsExcludedbooleanFALSEtrue, falseIf ‘true’, interactions with one interactor will be excluded.
evidenceListstringemptyPipe-separated list of evidence codes from http://wiki.thebiogrid.org/doku.php/experimental_systemsAny interaction evidence with its Experimental System in the list will be excluded from the results unless includeEvidence is set to true.
includeEvidencebooleanFALSEtrue, falseIf set to true, any interaction evidence with its Experimental System in the evidenceList will be included in the result
geneListstringemptyPipe-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.
searchstringnamesnames, ids, synonymsIf set to names values passed in geneList will be searched against OFFICIAL_SYMBOLS and SYSTEMATIC NAMES for matches. If set to ids values passed in geneList will be searched against ENTREZ GENE and BIOGRID ids for matches. If set to synonyms values passed in geneList will be searched against SYNONYM/ALIASES for matches. This entry is ignored if geneList is empty of non-existant.
additionalIdentifierTypesstringemptyPipe-separated list of identifier types from http://wiki.thebiogrid.org/doku.php/identifiers to search for matches in geneList. This value can be used in combination with search. For example, search=names&additionalIdentifierTypes=SWISSPROT will search entries in geneList against OFFICIAL_SYMBOLS, SYSTEMATIC_NAMES, and SWISSPROT IDs.
excludeGenesbooleanFALSEtrue, falseIf ‘true’, interactions containing genes in the geneList will be excluded from the results. Ignored if one of searchIds, searchNames, searchSynonyms is not ‘true’ and additionalIdentifierTypes is empty.
includeInteractorsbooleanFALSEtrue, falseIf ‘true’, in addition to interactions between genes on the 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
includeInteractorInteractionsbooleanTRUEtrue, falseIf ‘true’ interactions between the geneList’s first order interactors will be included. Ignored if includeInteractors is ‘false’ or if excludeGenes is set to ‘true’.
pubmedListstringempty stringPipe-separated list of pubmed IDsInteractions will be fetched whose Pubmed Id is/ is not in this list, depending on the value of excludePubmeds.
excludePubmedsbooleanFALSEtrue, falseIf ‘false’, interactions with Pubmed ID in pubmedList will be included in the results; if ‘true’ they will be excluded.
htpThresholdint2147483647 (maximum 32-bit integer)0-2147483647Interactions whose Pubmed ID has more than this number of interactions will be excluded from the results. Ignored if excludePubmeds is ‘false’.
throughputTagstring“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.
taxIdstring“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.
includeHeaderbooleanFALSEtrue, falseIf ‘true’, the first line of the result will be a BioGRID column header, appropriate for the format parameter (‘count’ format has no header).
sourceDatabaseListstring“BioGRID”Pipe-separated list of database names, currently including BioGRID, INTACT, MINT, DIPOnly interactions with Source Database on this list will be returned.
sourceDatabaseIdListstringemptyPipe-separated list of source database identifiersInteractions 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.
formatstring“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
enableCachingbooleanfalsetrue, falseIf set to true, a header is added to the HTTP response, 'Cache-Control: max-age=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.
 
biogridrest_version2.0.txt · Last modified: 2017/08/08 12:52 (external edit)