flux_to_map | R Documentation |
flux_to_map
takes a table file or dataframe as well as a template map in SVG format to visualize metabolic flux values in their metabolic context.
flux_to_map(
df,
template = NULL,
result.nm = NULL,
pal = c("G", "R", "O", "B", "BYR", "BW", "YR", "PuRd"),
title = "",
export = TRUE,
inkscape_path = "C:/Program Files/Inkscape/bin/inkscape.exe",
export_dpi = 300,
export_width = 2281,
export_height = 2166,
FBA = FALSE
)
df |
A dataframe containing fluxes and standard deviations. |
template |
A template SVG file containing the metabolic map. |
result.nm |
The name of the output SVG file. |
pal |
The color palette for the flux arrows. G, green; R, red; O, orange; BYR, blue-yellow-red; BW, black-white (grayscale); YR, yellow-red; PuRd, purple-red. |
title |
The title of the output plot. |
export |
A logical value indicating whether to export the plot as a PNG and PDF file. |
inkscape_path |
The local path to the 'inkscape.exe' file. Required if |
export_dpi |
The dpi of the exported PNG and PDF file. |
export_width |
The width of the exported PNG and PDF file. The width of the template SVG can be inspected after opening it in InkScape. |
export_height |
The height of the exported PNG and PDF file. The height of the template SVG can be inspected after opening it in InkScape. |
FBA |
A logical value indicating whether the dataframe contains FBA results. If TRUE, standard deviations are ignored. |
A metabolic map with fluxes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.