The FunCoup API

The FunCoup API allows users to download or access data from the FunCoup database programmatically, without using the graphical interface of the website.

Downloading Networks as TSV Files

To download a full network file for a given species, use the following URL. Replace the text within brackets with the species name.

https://funcoup.org/download/network&FC6.0_<species>_full.gz

For example:

https://funcoup.org/download/network&FC6.0_E.coli_full.gz


To download a compact network file for a given species, use the following URL, replacing the text within brackets with the species name.

https://funcoup.org/download/network&FC6.0_<species>_compact.gz

For example:

https://funcoup.org/download/network&FC6.0_E.coli_compact.gz


Obtain Mapping Information for a Gene

The geneQuery API endpoint returns all mapping information included in the FunCoup database for a given gene. It requires a gene name and a species TaxID as input, and it provides a text-based list of all mappings for the queried gene.

https://funcoup.org/api/tsv/geneQuery/<taxid>&<geneId>/

For example:

https://funcoup.org/api/tsv/geneQuery/9606&MYC/


The returned list will contain the following headers:

#Keywords  internalGeneID  geneID  identifierType


Obtain Species Information

The species API endpoint provides information on all species that have a FunCoup network. The data can be retrieved in either TSV or JSON format, depending on the endpoint used.

For TSV format:

https://funcoup.org/api/tsv/species/


For JSON format:

https://funcoup.org/api/json/species/


The returned list will contain the following headers:

#Scientific_name  Common_name  NCBI_taxonomy  Origin


Obtain Network of Query Gene(s)

The network API endpoint retrieves a network of query genes based on various parameters. This data is returned in JSON format. The following URL parameters are required:

https://funcoup.org/api/json/network/<geneId>&<taxid>&<confidenceThreshold>&<directionThreshold>&<depth>&<nodesPerStep>&<expansionAlgorithm>&<prioritizeNeighbors>&<comparativeTaxid>&<individualEvidenceOnly>&<orthologsOnly>&/

For example:

https://funcoup.org/api/json/network/JUN&9606&0.9&1&1&15&group&on&''&on&on/

FunCoup 6 is using UniProt ID as primary identifiers. If you are using a different gene vocabulary (e.g. Gene Symbol, Ensembl, NCBI), you might want to first resolve query ambiguities using the gene API endpoint, and then use the network API endpoint as previously shown. This data is returned in JSON format. The following URL parameters are required:

https://funcoup.org/api/json/gene/<geneId>&<taxid>

For example:

https://funcoup.org/api/json/gene/JUN,MIR,FunCoup&9606/



Cytoscape App Integration

The FunCoup API is used by our Cytoscape app to retrieve and visualize network data. The app is available as a JAR file at our Bitbucket repository and can also be downloaded from the Cytoscape App Store.