Comment on page
How to format reaction media files for KBase to use in FBA and modeling analysis.
KBase offers several options for defining specific growth or culture media for metabolic modeling. Within the Narrative Interface, you can use the Edit Media tool to build media based on the hundreds of conditions available in KBase or import your own custom media as a TSV or Excel file using the instructions below.
If you choose to upload a custom media or use media from an external source, please ensure that it is formatted properly for use with KBase.
Media can be uploaded as a TSV (tab-separated values) or Excel file using four columns:
- Maxflux (maximum allowed uptake/excretion of compound)
- Minflux (minimum allowed uptake/excretion of compound)
- Concentration (concentration of compound in mol/L)
- Compound identifier (e.g., ModelSEED ID, KEGG ID, PubChem ID, or compound name such as “glucose”)
The concentration field is not used by any of the the metabolic modeling tools in KBase. It is best to account for these values accurately so that your media files will retain their utility pending updates.
The minflux and maxflux columns connect media to a flux balance analysis (FBA) metabolic model. The values in these columns are absolute units representing the range of possible fluxes for reactions that transport the media compounds into and out of the cell. A negative flux value corresponds to excretion (transport out of the cell), and a positive flux value corresponds to uptake (transport into the cell).
The combination of maximum and minimum flux will dictate whether uptake and/or excretion of a reagent is allowed. Assigning a positive number to minflux for a particular compound essentially forces uptake of that compound. Assigning a negative number to maxflux will force excretion of the compound.
Minimum and maximum flux are measured in mmol per gram cell dry weight per hour.
Note: When creating a media Excel file, the name of the worksheet that contains your media conditions must be named “MediaCompounds” or it will not upload. By default, the first sheet of any Excel file is called “Sheet1.” To rename it, find the worksheet tabs at the bottom left of the Excel file. Double-click on the default name and type in “MediaCompounds.”
For this example, you can click on either link to download a small media file onto your computer:
Example Excel file
Example TSV file
Using a file on your computer, open the Import tab within the Data Browser. Then drag & drop the media file to upload it to your Staging Area. Choose "Media" from the Import As... data type dropdown menu in your Staging Area. Click the upload icon next to the field that now says “Media.”
Selecting Media for import from the Staging Area
The “Import Media file (TSV/Excel) from Staging Area” App will be added to your Narrative.
Import Media file App
You can change the name that will be assigned to the Media Object. Then click the green "Run" button. After the import process has completed, the Media data object will appear in your Data Panel.