Linking Your Website to BioCyc.org Objects
We encourage interested parties to create links to BioCyc objects from other web sites. You may link to a BioCyc object directly by BioCyc object ID, or indirectly by a substring or EC number search.
Linking by Object ID
Linking by BioCyc object ID is the best strategy when you wish to hard-code a link to a specific object page. The easiest way to get the object ID is to just go to the the web page that you want to link to and copy the URL from there. The URL format is:
For gene and compound pages, there is a new URL format (the older format above is still acceptable and will redirect to this newer URL):
You can also specify a gene for the object ID to instruct the genome browser to expand to a particular gene:
To obtain a spreadsheet file containing mappings to BioCyc object IDs, go to SmartTables→Special SmartTables, and choose the table you want (All compounds, All genes, All reactions, etc.). The table may already contain the ids you wish to map to (e.g. the All genes table includes accession ids). If not, add a Database Links property column, and select the database you want links for (note that links to UniProt are from gene products, not the genes themselves, so from the All genes SmartTable, you will first want to select the Product column before adding the Database Links property). Once you have the links you need in the table, select Export to Spreadsheet File from the Operations menu, and specify Frame ID as the output format (alternatively, you can add the Object ID property column to your table, and then export using any format you want).
Indirect linking is the best strategy when you do not know the BioCyc object ID. This might be the case if a query is being generated dynamically, rather than as a hard-coded link. Indirect queries may return: (a) no objects, in which case a message appears to that effect, (b) one object, in which case the object is displayed, or (c) more than one object, in which case a list of matching objects is displayed. The number of objects returned by an indirect query may change as the data in the EcoCyc KB changes.
There are currently four types of indirect queries: queries by substring, queries by EC number, queries by UniProt identifier and queries by Accession number.
The URL format for substring and EC number queries is identical:
where <ORGID> is as above, and <type> is one of COMPOUND, REACTION, ENZYME, GENE, or PATHWAY for substring searches, and either REACTION or ENZYME for EC number searches. <query-string> is either the substring or the EC number to search for. If your substring contains spaces, replace the spaces in the URL with +'s (you may also omit spaces and hyphens altogether, as they will not affect substring matching).
The format of the URL for UniProt identifier queries is:
where <ORGID> is as above, and <query-string> is the UniProt-id to search for.
The format of the URL for Accession queries is:
where <ORGID> is as above, and <query-string> is the Accession number to search for.
The following example URLs show the different ways of linking to entries in EcoCyc and MetaCyc.
Object ID Examples
Indirect Linking Examples